Netlens keeps a time series of what it measures in its own small database file, metrics.db, next to netlens.db: the response time and availability of every device (from the scans) and of every service check. Full detail is kept for 7 days, 5-minute values for 90 days and hourly values (lowest, average, highest) for 2 years, so a graph can show anything from 6 hours to a year. A backup carries a trimmed copy of it (the last day in full, 14 days at 5 minutes and all the hourly values), so a restore brings the graphs and the growth trend back; the first start after an update fills it from the uptime history that already exists.
Health monitoring adds what a ping cannot tell you. On a device’s page choose Set up health monitoring and pick how to ask it:
| Method | For | Reads |
|---|---|---|
| SNMP v1, v2c and v3 | switches, routers, NAS boxes, printers, UPS units, Windows with the SNMP service, Linux with snmpd |
processor, memory, swap, disks (used and free), traffic, load, errors and link state per interface (port), temperatures (net-snmp), uptime, printer supplies, UPS battery and runtime |
| SSH | Linux and other systems with /proc |
processor, load, memory, swap, disks, traffic per interface, temperatures, uptime |
| WinRM | Windows computers (any edition with Windows Remote Management, which Windows can switch on with one command) | the same readings as SSH to Windows, over WinRM with HTTPS (port 5986), NTLM or Basic login. One fixed, read-only PowerShell script; the form shows the lines that switch WinRM over HTTPS on |
| SSH to Windows | Windows 10/11 and Server 2019+ with the OpenSSH server (an optional Windows feature) | processor, memory, swap, disks, traffic per adapter, uptime. Netlens recognises Windows by itself and runs one read-only PowerShell command; nothing is installed |
Nothing is installed on the device and only read requests are sent: SNMP GET / GETNEXT / GETBULK, or one short shell command over SSH that reads /proc, /sys and df. An ordinary (non-root) SSH account is enough. The SSH host key is remembered the first time and shared with the web terminal. The login is stored encrypted (see Stored passwords). Test shows what the device answers before you save. Windows can be read through WinRM (built in), through its OpenSSH server, or through the SNMP service; there is no agent. The step-by-step setup of a low-privilege Windows account (groups and WMI rights) is in WINDOWS-MONITORING.md. SNMPv3 uses a user name with authentication (MD5, SHA, SHA-256, SHA-512) and optionally encryption (AES or DES); create a read-only user on the device.
Warnings: a reading has to stay past its limit for a few rounds in a row (processor 5, others 2-3) before anything is said, so a short peak is not an alarm. Defaults: processor 90 / 98 %, memory 90 / 97 %, disk 85 / 95 % full, temperature 80 / 90 °C, printer supplies and UPS battery below 15 / 5 % and 50 / 25 %, and a UPS running on battery. Change them on Monitoring → Health, or for one device only on its Health tab under Limits for this device (a NAS that runs at 90 % by design). Switch ports also get Port busy (85 / 95 % of the link speed) and Port errors (1 / 10 per second) limits. The events Health warning, Health critical and Health normal go through the notification channels, respect maintenance windows, and show on the dashboard. /metrics carries the readings as netlens_host_*.
Storage health. A degraded or failed disk set raises a warning or a critical alert (Storage problem): Linux software RAID (/proc/mdstat) and ZFS pools (zpool) over SSH, the physical disks of Windows over WinRM or SSH, and the RAID groups and disks (with temperatures) of a Synology over SNMP. The device’s Health tab shows a Storage tile. SMART values are not read, because they need root on the host.
Ports. A switch (or any device with three or more interfaces) gets a Ports table on its Health tab with the link state, traffic in and out, how full the link is and errors; click a port for its graphs. A cable that is unplugged shows as down without an alarm; ports that were switched off on purpose are left out.
Running out soon. From the growth of the last weeks Netlens works out when each monitored disk will be full (a steady disk gets no date, one big file is not a trend, and a disk needs three days of history first). The dashboard card Running out soon lists them, and a notification (Disk filling up, Disk almost full) is sent once when a disk is on course to fill within 14 days (3 days for the critical one). The 14 days can be changed with the setting forecast.alert_days.
Dashboard. The Health card shows a heat-map with one tile per monitored device (coloured by its worst level, with bars for processor, memory and the fullest disk); with more than 24 devices the healthy ones shrink to small squares.
More from SNMP devices
For a switch, router, NAS or server the Hardware sensors group reads temperatures, fan speeds and voltages and raises Fan or power supply problem when a fan stops or a power supply fails; Vendor-specific readings adds APC UPS and MikroTik values. Devices can also push events to Netlens themselves: see Device messages: SNMP traps and syslog.
Busy processors that are expected
A processor that is busy because of Windows Defender, an update, a backup or a scan that runs every night does not raise a warning: see Expected busy periods. The same Health page has a Link down limit for bonded connections and network cards.
Zoom, compare and correlate
The graphs can be zoomed by dragging, share one cursor, take another measurement (of any device) laid over them, and be correlated with each other. See Graphs: zoom, compare and correlate.