Skip to content

Installing a Collector

This page covers installing a collector on its own — for a new site, an extra network segment, or to replace a collector. (Self-hosted instances already start with one collector built in; you only need this when adding more.)

  1. In GridNMS, go to Configure → Collectors and select Add collector.
  2. Copy the instance address and the one-time join token it shows — both appear in the install snippets below.

Make sure the collector machine has outbound HTTPS (443) to your GridNMS instance.

The recommended option for most sites. Use host networking so the collector sees the real source IP of syslog and SNMP traps:

Terminal window
docker run -d --name gridnms-collector --restart unless-stopped \
--network host \
-e GRIDNMS_TUNNEL_URL="https://<your-instance>/api/tunnel/ws" \
-e GRIDNMS_JOIN_TOKEN="<your-join-token>" \
-e GRIDNMS_STATE_DIR=/var/lib/gridnms \
-v gridnms-collector-state:/var/lib/gridnms \
gridnms/collector:latest

The collector appears as online on the Collectors page within a few seconds.

  1. On Configure → Collectors, confirm the collector shows online.
  2. Assign the networks it should watch — see Networks & Sites.
  3. Point your devices’ syslog and SNMP traps at the collector’s address if you want to collect them — first read Getting the Real Source IP.
  • Updates happen automatically over the collector’s existing connection — nothing to do.
  • To remove a collector, delete it on Configure → Collectors, then stop the container or quit the desktop app on the host.

Quitting the app and dragging it to the Trash (macOS) or running the uninstaller (Windows) removes the application, but leaves behind a local data folder — the collector’s saved state, queued messages, and identity. To fully purge a machine, remove that folder too.

  1. Quit GridNMS Collector (and remove it from System Settings → General → Login Items if it’s there).

  2. Drag GridNMS Collector from Applications to the Trash.

  3. Delete the leftover data and cache folders. Open Terminal and run:

    Terminal window
    rm -rf ~/Library/Application\ Support/io.gridnms.collector \
    ~/Library/Caches/io.gridnms.collector \
    ~/Library/WebKit/io.gridnms.collector \
    ~/Library/Saved\ Application\ State/io.gridnms.collector.savedState \
    ~/Library/Preferences/io.gridnms.collector.plist \
    ~/Library/Logs/io.gridnms.collector

The main folder is ~/Library/Application Support/io.gridnms.collector — that’s where the collector keeps its state and message queue. The others are cache and window-state files macOS creates automatically.

Trouble getting a collector online? See Troubleshooting.