Nocward
Nocward Monitoring
Nocward Monitoring Getting started 5 min read

Installation

Install Monitoring on an Ubuntu or Debian server with Docker using the installer - requirements, the one-time setup code, the first account, HTTPS and the files it creates.

Last updated 13 November 2026

There are two ways to install Monitoring:

  • On a server you already have (Ubuntu or Debian with Docker) - the installer described on this page;
  • From the installation ISO - a new virtual machine or physical server, no internet needed. See Install from the ISO.

Requirements

Small network A few thousand devices
CPU 2 vCPU 4 vCPU or more
Memory 4 GB 8 GB or more
Disk 50 GB SSD Grows with devices, interfaces and history
OS Ubuntu Server 22.04 / 24.04 LTS or Debian 12 / 13, with Docker Engine and the Compose plugin

See Performance and capacity for measured sizing of large networks.

Network access the server needs:

Direction Port Purpose
Server → devices UDP 161 SNMP polling
Server → devices ICMP Ping on every poll cycle
Server → devices UDP 623 / TCP 443 / API port IPMI, Redfish, HTTP API polling (when used)
Devices → server UDP 162 SNMP traps
Devices → server UDP/TCP 514 Syslog
Devices → server UDP 2055, 6343, 4739 NetFlow, sFlow, IPFIX (when used)
Users → server TCP 443 (and 80) Web interface, Nocward app, remote collectors and agents

1. Run the installer

Copy the Monitoring release to the server, unpack it and run the installer as root from the release folder:

sudo ./ops/install.sh

The installer:

  1. copies the application to /opt/netmon (it refuses to overwrite an existing installation - use Software updates for that);
  2. generates every secret - database passwords, the session signing secret and a one-time setup code - into root-only files;
  3. builds the images and starts the database, the database migrations, the API and the web interface (the first start of an empty database can take several minutes on a slow disk);
  4. enables the helper services on the host: resource sizing (netmon-autosize.timer), the high availability agent (netmon-ha-agent.service), the collector image export for collectors on other servers (netmon-collector-dist.timer) and the server’s own figures for the Dashboard’s System health widgets (netmon-host-stats.timer);
  5. prints the web address and the setup code, and waits for the first account.

2. Create the first account

Open https://<server address>/ in a browser. The certificate is self-signed until you set up HTTPS (step 4), so the browser warns once.

On a new installation the page shows Create your account: enter the setup code the installer printed, the name of your organization, a username and a password (at least 8 characters). This account is the administrator of the first organization. The setup code works only once - it is spent as soon as the account exists, so nobody else on the network can claim the server first.

If you no longer have the code, read it on the server:

sudo cat /opt/netmon/setup-code

3. The collector starts by itself

As soon as the account exists, the installer creates the main collector’s API key and starts the collector. Nothing to configure. If you stopped the installer before creating the account (Ctrl+C), finish it later:

sudo /opt/netmon/ops/install.sh --finish

Check that everything runs:

cd /opt/netmon && docker compose ps
docker logs --tail 20 netmon-collector

4. HTTPS

The web interface listens on ports 80 and 443 with a self-signed certificate. For a trusted certificate, put a reverse proxy in front of it (for example nginx, Caddy or HAProxy with Let’s Encrypt) and forward / to this server.

Then tell the API the proxy’s address, so the sign-in limit and the audit log see the real client addresses instead of the proxy’s:

# /opt/netmon/api/.env - comma-separated, keep 127.0.0.1
FORWARDED_ALLOW_IPS=127.0.0.1,192.0.2.20
cd /opt/netmon && docker compose up -d api

A trusted certificate is needed for the Nocward Agent and the Nocward app. Collectors on other servers also work with the server’s own self-signed certificate: their install command carries its certificate pin.

5. Back up the encryption key

Copy /opt/netmon/keys/secret.key to a safe place outside the server and outside the backup directory. Stored device passwords, SNMP communities and tokens are encrypted with it; without it a database backup cannot give them back. See Security and secrets.

What the installer created

Path Contents
/opt/netmon/.env Database superuser password (database container only)
/opt/netmon/api/.env API settings: application and maintenance database roles, session secret, FORWARDED_ALLOW_IPS, the setup code
/opt/netmon/api/.env.admin Superuser credentials, used only by the one-shot migrate service
/opt/netmon/collector/.env The main collector’s API address and key
/opt/netmon/keys/secret.key Encryption key for stored secrets
/opt/netmon/backups/ Database backups
/opt/netmon/scripts/ Your own collector script checks

All configuration files are readable by root only. The running API never holds the database superuser password: migrations run in the separate migrate service, and backups and maintenance use a restricted role.

Optional: e-mail

To send e-mail notifications, two-factor codes and scheduled reports, add your SMTP relay to /opt/netmon/api/.env and run docker compose up -d api:

SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=nms@example.com
SMTP_PASSWORD=...
SMTP_FROM_ADDRESS=nms@example.com

Next steps

Was this page helpful?

Have an idea for the product itself? Suggest an idea