Add Go agent preview

This commit is contained in:
benya
2026-06-05 02:35:45 +03:00
parent b13fc37cc4
commit 7414171a94
3 changed files with 694 additions and 1 deletions
+25 -1
View File
@@ -1,6 +1,6 @@
# OpenWrt RMM Agent
MVP shell agent for OpenWrt.
Production MVP shell agent for OpenWrt, plus an experimental Go agent preview.
The agent uses outbound HTTP polling:
@@ -40,6 +40,30 @@ DEVICE_TOKEN="..."
sh ./agent/openwrt/rmm-agent.sh
```
## Go Agent Preview
The Go agent lives at:
```text
agent/go/cmd/rmm-agent
```
It is protocol-compatible with the server for enrollment, heartbeat, inventory, metrics, command polling, command result reporting, lock handling, backoff, graceful shutdown, and result spooling.
The Go agent is not the production command runner yet. It intentionally reports queued commands as failed with a clear message until the shell allowlist is migrated command by command.
Build locally:
```sh
go build -o ./tmp/rmm-agent-go ./agent/go/cmd/rmm-agent
```
Run once against an existing config:
```sh
./tmp/rmm-agent-go -config /etc/rmm-agent.conf -once
```
## OpenWrt Package
Package skeleton: