A collector is the part of Monitoring that reads the devices: SNMP, ping, scans, service checks, syslog, SNMP traps and flow exports. Every installation has a main collector next to the server. Put another one where the devices are - a site, a data center, a customer network the server cannot reach - and it sends everything to the server over HTTPS. Nothing connects to it from outside.
Main or site collector
When you create a collector you choose its role:
| Role | Polls |
|---|---|
| Remote site collector | Only what is assigned to it. Everything else stays with the main collector. |
| Main collector of this organization | Everything of the organization that is not assigned to a site collector - use it for a customer organization whose devices only a collector inside its network can reach. |
Which role to choose:
- An organization’s first or only collector: Main. It polls everything, with nothing to assign.
- A branch the main collector cannot reach: Remote site. It polls only the devices assigned to it (Edit device → Collector).
- A typical layout is one Main collector plus one Remote site collector per branch.
The name is only a label for you. It does not have to match the company’s name: the organization comes from where the command was made. The server’s host name is added by itself, for example skyfiber-main (collector-vm1).
Which install to use: the collector ISO (Debian, about 0.9 GB) at customer sites with little or no internet; a clean Debian or Ubuntu server plus the one command where internet is available.
Install with one command
Settings → Access and audit: name, role and Make install command. Connected collectors appear under API Keys.
Requirements on a clean Debian or Ubuntu server (x86_64):
- HTTPS to the Monitoring server - always. A publicly trusted certificate (Let’s Encrypt, a company CA) works as usual, and so does the server’s own self-signed certificate - see The server’s certificate.
curl. A minimal Debian often lacks it:sudo apt install -y curl.- Docker, or access to the distribution’s package mirror: when Docker is missing, the command installs it from the distribution’s packages. With Docker already installed, no internet is needed.
-
In Monitoring, open Settings → Access and audit → Install a collector on another server. For a customer organization, the provider can also use Install collector on its row under Settings → General → Organizations - see Organizations.
-
Give it a name (for example
branch-north), choose its role and press Make install command. -
Press Copy and run the command on the new server as root. It works once, within an hour. Always copy it from the panel - never type it. It looks like this:
{ curl -fsSL https://nms.example.com/api/collector/install.sh || curl -fsSLk --pinnedpubkey 'sha256//...' https://nms.example.com/api/collector/install.sh; } | sudo sh -s -- --server https://nms.example.com --token nce_... --pin 'sha256//...'
The token works once, for one hour. If it has expired, make a new command.
The command downloads the collector image from your Monitoring server and checks its SHA-256, trades the token for the collector’s own API key - written to /etc/nocward-collector/collector.env, readable by root only, never printed - and starts the nocward-collector container. Within a minute the collector appears under Settings → Access and audit → API Keys.
The server always hands out the collector version it runs itself, so a new collector matches the server. Running the command again with a new token replaces the collector.
The server’s certificate
Collectors always verify the Monitoring server - verification is never turned off.
- With a publicly trusted certificate, the collector checks it the usual way.
- With the server’s own self-signed certificate - the default after an ISO install - the install command carries the server’s certificate pin (
--pin 'sha256//...'). The collector trusts exactly that key and refuses a server with any other key.
If you later replace the server’s certificate with one that has a different key and is not publicly trusted, make a new install command so the collector gets the new pin. Browsers still warn about a self-signed certificate, so for the web interface a real certificate is still recommended - collectors don’t need one.
Install from the collector ISO
Warning
On a server installed from the collector ISO, do not run the curl command. Everything is already on the medium: use the console wizard or sudo nocward-collector-setup - you can paste the whole command into it.
For a new virtual machine or physical server without internet access there is a collector installation ISO - Ubuntu Server 24.04 LTS (minimal, about 4.4 GB) or Debian 13 (about 0.9 GB). Every package and the collector image are on the medium. Verify the download with SHA256SUMS and SHA256SUMS.gpg exactly as for the Monitoring ISO.
| ISO | Installs | Size | Files |
|---|---|---|---|
| nocward-collector-1.0.0-debian13-amd64.iso - recommended | Debian 13 | 0.99 GB | SHA256SUMS · SHA256SUMS.gpg · nocward-release.asc |
| nocward-collector-1.0.0-amd64.iso - alternative | Ubuntu Server 24.04 LTS | 4.40 GB | SHA256SUMS · SHA256SUMS.gpg · nocward-release.asc |
SHA-256: 316a86066159efffa329f1881c5cb8ed77f1e33afa8c84a944b68be444f02397 (Debian 13), 8b466b30e193ff6328072eacc58218f82ac40f4a2d202d27b722491e6f46538c (Ubuntu). The setup downloads the collector version your Monitoring server runs.
Requirements: 2 vCPU, 2 GB RAM, a 20 GB disk, one network card that reaches the Monitoring server over HTTPS (a public or the server’s own self-signed certificate). UEFI or BIOS; on Hyper-V a generation 2 VM with Secure Boot set to Microsoft UEFI Certificate Authority.
-
Boot from the ISO and choose Install Nocward Collector.
-
The installer asks for the network (DHCP or a static address), the admin account (name, server name, password) and the disk.
-
The system restarts and finishes by itself. Then the setup wizard appears on the console.
-
In Monitoring, make an install command as described above, but don’t run it. In the wizard’s first field, paste the whole command - the server address, the token and the pin are taken from it. Or enter the server address and the install token one by one; the wizard asks for the pin only when the server’s certificate is not publicly trusted. The panel lists server, token and pin under the command for this. Pasting is easiest over SSH:
ssh <admin>@<collector address> sudo nocward-collector-setupor without questions:
sudo nocward-collector-setup --server https://nms.example.com --token nce_... --pin 'sha256//...'Leave out
--pinwhen the server has a publicly trusted certificate. -
The console shows Connected to https://nms.example.com and the collector appears under API Keys.
To connect it to another server, or after its key was revoked, run sudo nocward-collector-setup again with a new token.
The installed system has SSH without root login and with three tries per connection, fail2ban, a firewall that opens only SSH and the collector’s listeners, and automatic security updates.
Set up by hand
On a Linux server with Docker you can also run the collector from the release’s ops/remote-collector/ folder:
-
Settings → Access and audit → API Keys: enter a name, tick Remote site collector, create the key and copy it.
-
Copy the collector image from the main server:
# on the Monitoring server docker save netmon-collector:latest | gzip > netmon-collector.tar.gz # on the site server docker load < netmon-collector.tar.gz -
In the
remote-collectorfolder, copycollector.env.exampletocollector.env, setAPI_BASE_URL=https://nms.example.com/apiandAPI_KEY, and rundocker compose up -d.
Assign work to a collector
Once there is more than one collector, the forms show a Collector choice:
- Devices - in Add device and Edit device. To move many at once, use the bulk action in the Devices list. A scan run on a site’s collector adds the devices it finds to that collector.
- Service checks, wireless and SDN controllers, virtualization platforms - the same choice in their forms.
- Troubleshooting tools - pick the collector to run from; MAC table and SNMP walk always run on the device’s own collector.
Revoking a site collector’s key hands its devices back to the main collector. VPN tunnels always end on the main server.
Point the site’s devices at it
Syslog, SNMP traps and flow exports from the site’s devices go to the site collector’s own address (UDP 514, 162, 2055/4739/6343); they are matched to devices on the server as usual.
Remove a collector
On the collector’s server:
docker rm -f nocward-collector && rm -rf /etc/nocward-collector
Then revoke its key under Settings → Access and audit → API Keys.