Ports
| Port | Protocol | Direction | Purpose |
|---|---|---|---|
| 80, 443 | TCP | Users, phones, remote collectors, agents → server | Web interface; the API is served under /api/ |
| 8100 | TCP | Local only | API (behind the web interface) |
| 8102 | TCP | Local only | API pool for the web interface |
| 5544 | TCP | Local only (and standby → primary on an HA pair) | PostgreSQL / TimescaleDB |
| 8199 | TCP | Local only | Update agent control interface |
| 161 | UDP | Collector → devices | SNMP polling |
| ICMP | Collector → devices | Ping on every poll cycle | |
| 623 | UDP | Collector → devices | IPMI |
| 162 | UDP | Devices → collector | SNMP traps |
| 514 | UDP, TCP | Devices → collector | Syslog |
| 2055 | UDP | Devices → collector | NetFlow v5 |
| 6343 | UDP | Devices → collector | sFlow v5 |
| 4739 | UDP | Devices → collector | IPFIX |
| 51900 and up | UDP | Remote routers → server | WireGuard VPN tunnels (one port per tunnel) |
| 500, 4500, ESP | UDP, IP 50 | Remote routers ↔ server | IPsec VPN tunnels |
| VRRP | IP 112 | Between the two servers | High availability virtual address |
A remote collector needs only outbound HTTPS to the Monitoring server; nothing connects to it, except the devices’ traps, syslog and flows on the ports above. The server’s certificate may be publicly trusted or the server’s own self-signed one: then the collector trusts it by the certificate pin from its install command (API_PIN, see the collector settings below).
Containers
| Container | Role |
|---|---|
netmon-postgres |
Database |
netmon-migrate |
Database migrations; runs once at start and exits |
netmon-api |
API and background workers |
netmon-collector |
Polling, listeners, service checks, diagnostics, VPN |
netmon-frontend |
Web interface |
nocward-collector |
A collector installed on another server |
cd /opt/netmon && docker compose ps
docker logs --tail 50 netmon-collector
Host services
| Service | Role |
|---|---|
nocward-updater |
Update agent (when installed) |
netmon-autosize.timer |
Resource sizing from the server’s cores and memory |
netmon-ha-agent.service |
Carries out high availability actions from the web interface |
netmon-collector-dist.timer |
Exports the collector image for one-command installs on other servers |
netmon-host-stats.timer |
Every 30 seconds, records containers, disks and database growth for the Dashboard’s System health widgets |
netmon-firstboot.service |
First boot of a server installed from the ISO |
Files
| Path | Contents |
|---|---|
/opt/netmon/docker-compose.yml |
Service definitions |
/opt/netmon/.env |
Database superuser password and optional resource limits |
/opt/netmon/api/.env |
API settings |
/opt/netmon/api/.env.admin |
Database superuser credentials for the migrate service only |
/opt/netmon/collector/.env |
Main collector settings |
/opt/netmon/keys/secret.key |
Encryption key for stored secrets - back it up separately |
/opt/netmon/setup-code |
One-time setup code, until the first account exists |
/opt/netmon/backups/ |
Database backups; organizations/ holds backups of deleted organizations |
/opt/netmon/scripts/ |
Collector script checks (mode 755) |
/opt/netmon/postgres-data/ |
Database files |
/opt/netmon/host-stats/ |
The server’s own figures for the System health widgets (read only by the API) |
/etc/nocward-collector/collector.env |
Key of a collector installed on another server (root only) |
/etc/nocward-agent/agent.env |
Nocward Agent settings on a Linux host |
API settings (api/.env)
| Variable | Default | Meaning |
|---|---|---|
POSTGRES_APP_PASSWORD, POSTGRES_MAINT_PASSWORD |
generated | Restricted roles the application and maintenance run as |
JWT_SECRET |
generated | Signs sign-in sessions |
SETUP_TOKEN |
generated | The one-time setup code for the first account |
FORWARDED_ALLOW_IPS |
127.0.0.1 |
Reverse proxies whose client address headers are trusted |
SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SMTP_FROM_ADDRESS, SMTP_USE_TLS |
unset, 587, -, -, -, true | E-mail for notifications, 2FA codes and reports |
BOOTSTRAP_TENANT_NAME, BOOTSTRAP_ADMIN_USERNAME, BOOTSTRAP_ADMIN_PASSWORD |
unset | Create the first organization and admin without the web interface (headless installs) |
EVENTS_ACCEPT_UNKNOWN |
true | Keep traps/syslog from unknown senders |
NOCWARD_SECRET_KEY |
unset | Encryption key, instead of the key file |
NOCWARD_UPDATER_TOKEN |
unset | Lets the web interface talk to the update agent |
Set in /opt/netmon/.env (read by docker-compose.yml):
| Variable | Default | Meaning |
|---|---|---|
API_WORKERS |
2 | API worker processes |
API_UI_WORKERS |
1 | Separate API pool for the web interface; 0 = none |
Resource limits are set by Performance and capacity; you do not need to edit them by hand.
Collector settings (collector/.env)
| Variable | Default | Meaning |
|---|---|---|
API_BASE_URL |
required | Where the API is: http://127.0.0.1:8100 on the server, https://nms.example.com/api for a remote collector |
API_KEY |
required | A collector API key |
API_PIN |
unset | Remote collector only: the server’s certificate pin (sha256//...) from the install command. A certificate is accepted when it is publicly valid for the name or its public key matches the pin. |
POLL_INTERVAL_SECONDS |
60 | Poll cycle when no interval is set in the web interface |
POLL_MAX_CONCURRENCY |
200 | Devices polled in parallel |
DEVICE_REFRESH_SECONDS |
60 | How often the device list is reloaded |
TRAP_LISTEN_PORT, SYSLOG_LISTEN_PORT |
162, 514 | 0 turns a listener off |
NETFLOW_LISTEN_PORT, SFLOW_LISTEN_PORT, IPFIX_LISTEN_PORT |
2055, 6343, 4739 | Flow listeners |
EVENTS_PUSH_SECONDS |
5 | How often events are sent to the API |
SCAN_SNMP_COMMUNITY |
public | Community tried by Network Scan when none is given |
CONFIG_BACKUP_INTERVAL_SECONDS |
21600 | SSH configuration backup interval |
INVENTORY_INTERVAL_SECONDS |
21600 | Model, serial and firmware reading |
MAC_TABLE_POLL_SECONDS, ARP_POLL_SECONDS |
900, 900 | Switch MAC tables and router ARP tables (find endpoint, IPAM) |
DHCP_POLL_SECONDS |
300 | DHCP server scopes |
QOS_POLL_SECONDS |
300 | Cisco class-based QoS |
REDFISH_POLL_SECONDS |
120 | Redfish BMCs |
SERVICE_CHECK_CONCURRENCY |
32 | Service checks run in parallel |
WIRELESS_REFRESH_SECONDS |
2 | airMAX station polling |
VPN_REFRESH_SECONDS |
60 | VPN tunnel reconciliation |
Apply changes with docker compose up -d --force-recreate collector (or api).