How amidaware/rmmagent works
Tactical RMM Agent is an endpoint-management agent: it checks in with the management backend, then receives remote work and returns results. Its runtime also reports monitoring checks and supports endpoint inventory, Windows administration, software/update management, and interactive terminals. The README only identifies the agent and its build command; the sampled sources expose some control and reporting paths, but not all dispatch wiring, so uncertain subsystem links are omitted or marked unverified.
Main entry points: agent.go Agent core · rpc.go NATS RPC dispatch · wmi_windows.go WMI inventory · main.go CLI entrypoint
Components 19
Agent runtime
- CLI entrypoint
main.go - Agent core
agent/agent.go - Platform runtime
agent/agent_unix.go - Windows runtime
agent/agent_windows.go - Agent data types
shared/types.go
Remote operations
- NATS RPC dispatch
agent/rpc.go - Script execution
agent/agent_windows.go - Terminal sessions
agent/agent.go
Monitoring and inventory
- Monitoring checks
agent/checks.go - WMI inventory
agent/wmi_windows.go
Windows management
- Windows services
agent/services_windows.go - Windows event logs
agent/eventlog_windows.go - Windows registry
agent/registry_windows.go - Update workflow
agent/patches_windows.go - Windows Update API
agent/wua_windows.go - Installed software
agent/software_windows_amd64.go
Other components
- RMM operator
- RMM API
- NATS broker
Connections 24
- RMM operator → RMM API: requests management
README.md - CLI entrypoint → Agent core: initializes
main.go - CLI entrypoint → NATS RPC dispatch: runs RPC mode
main.go - Agent core → RMM API: sends API requests
agent/agent.go - Agent core → Agent data types: uses data types
agent/agent.go - Agent core → NATS broker: configures NATS
agent/agent.go - NATS RPC dispatch → NATS broker: connects and dispatches
agent/rpc.go - NATS RPC dispatch → RMM API: posts operation results
agent/rpc.go - NATS RPC dispatch → Script execution: runs scripts
agent/rpc.go - NATS RPC dispatch → Terminal sessions: starts sessions
agent/rpc.go - NATS RPC dispatch → Update workflow: requests update checks
agent/rpc.go - Update workflow → Windows Update API: queries and installs
agent/patches_windows.go - Monitoring checks → RMM API: fetches and reports checks
agent/checks.go - WMI inventory → WMI inventory: collects host inventory
agent/wmi_windows.go - NATS RPC dispatch → Windows services: may dispatch service work
- NATS RPC dispatch → Windows event logs: may dispatch event-log work
- NATS RPC dispatch → Windows registry: may dispatch registry work
- Agent core → Monitoring checks: schedules check execution
- Agent core → WMI inventory: uses inventory
- Agent core → Windows services: uses service controls
- Agent core → Windows event logs: uses event logs
- Agent core → Installed software: reports installed software
- Platform runtime → Agent core: provides Unix behavior
- Windows runtime → Agent core: provides Windows behavior