Nocward
Nocward Monitoring
Nocward Monitoring Concepts 4 min read

How Monitoring works

The collector, the API, the database and the web interface - how data travels from a device to a chart, an alert and a finding, and how collectors, organizations and a high availability pair fit in.

Last updated 13 November 2026

Components

Component Container or service What it does
Collector netmon-collector Polls devices (SNMP, ping, IPMI, Redfish, HTTP API), receives traps, syslog and flows, runs service checks, diagnostics and network scans, terminates VPN tunnels. Written in Go for speed and low memory.
API netmon-api Receives what collectors and agents send, stores it, detects findings, evaluates alert rules, sends notifications, and serves the web interface and the Nocward app.
Migrations netmon-migrate Runs once at every start or update to bring the database schema up to date, then exits.
Database netmon-postgres PostgreSQL with TimescaleDB - time-series tables for metrics plus the configuration. Listens on the server itself only (and to the standby of a high availability pair).
Web interface netmon-frontend The application you use in the browser; also forwards /api/ to the API.
Update agent (optional) nocward-updater service on the host Applies signed updates with backup and rollback.
Host helpers netmon-autosize.timer, netmon-ha-agent.service, netmon-collector-dist.timer, netmon-host-stats.timer Resource sizing, high availability actions, the collector image for collectors on other servers, and the server’s own figures for the System health widgets.
Nocward Agent (optional) On monitored hosts Pushes host and application metrics from Windows and Linux machines.
Nocward app (optional) Android phones Alerts, devices and tools on the phone.

The data flow

  1. The collector asks the API for the list of devices to poll and refreshes it every minute - a device you add is picked up automatically.
  2. Each device is polled on its own schedule - every 60 seconds by default, or the interval set for its organization, group or the device itself. A poll reads interfaces, spanning tree, LLDP/CDP neighbours, BGP peers, vendor metrics, optical levels, wireless stations and so on, and pings the device.
  3. The collector sends the results to the API’s ingest endpoints, authenticated with a collector API key. The collector never has database credentials.
  4. The API writes the samples into time-series tables and records each device’s poll status (success, last error).
  5. Background workers in the API evaluate the data: alert rules (device down, thresholds, service checks), loop detection, business services, the app-push staleness check, retention and housekeeping. With several API worker processes, one of them is elected leader for these jobs.
  6. Alerts are written to an outbox and delivered to the notification channels, with retries.
  7. The web interface and the Nocward app read everything through the API and refresh live.

Traps, syslog and flows travel the other way: devices send them to a collector’s listening ports, the collector matches each to a device and forwards them in batches.

Automatic device recognition

When the collector first reaches a device over SNMP, it reads its sysObjectID - a vendor- and model-specific identifier - and, where vendors share one, its system description and a few extra SNMP values. It then applies every built-in or custom profile that matches, the most specific first. A Cisco switch gets the general Cisco profile plus any model-specific one; a device no profile knows still gets the generic profiles (interfaces, system, host resources, UPS-MIB, ENTITY-SENSOR-MIB). You never attach a template by hand. See Vendor profiles.

Collecting from a remote network

A collector has to reach the devices. For a branch office, a second data center or a customer site you can:

  • install another collector there - on any Linux server with one command, or from the collector ISO. It polls only what is assigned to it and sends everything to the main server over HTTPS; nothing connects to it from outside. See Collectors on other servers;
  • or open a VPN tunnel from the Monitoring server itself (WireGuard, GRE over IPsec or IPsec) - see VPN tunnels.

Organizations

Every account belongs to an organization, created with the first account. A normal installation has exactly one. Organizations are separated strictly at the database level (row-level security): every query runs inside one organization and cannot read another’s rows. With Enterprise, MSP mode runs several customer organizations on one installation, each with its own devices, users, collectors and data.

High availability

With Enterprise, two servers can run one installation: the primary serves everything, the standby keeps a streaming copy of the database and takes over when the primary fails. Users, collectors and agents use a virtual address that always points at the primary. See High availability.

Was this page helpful?

Have an idea for the product itself? Suggest an idea