Articles setup, LINUX, updated 2026-10-23

Linux agent: a verdict from the host itself

The Oversight Linux agent is a single small program that runs on a Linux host, watches it continuously and decides for itself whether anything is wrong. It serves that verdict over HTTP: nothing wrong, or what is wrong and how badly. Oversight reads it with a Linux agent sensor.

The agent does the judging on the host because it knows the host far better than a threshold in a template can: whether a filesystem was writable an hour ago, which network ports have ever had a link, whether a service is quietly crash-looping. So a sensor on it needs two rules, not two hundred. It is read only by design, runs as an unprivileged user, has no way to run commands, and nothing it serves is a secret or a process list.

It is for bare-metal servers and ordinary virtual machines. Proxmox hosts, guests and containers are better watched through their own APIs.

What it alarms on

The agent samples the host every 10 seconds, whether anyone asks or not, and keeps one verdict: green when nothing is wrong, amber when something is heading that way or needs a look, red when something is broken now. With it comes what is wrong, area by area, worst first, in plain words, so an alert reads md0 degraded, 1 of 2 members missing rather than saying a value crossed a line.

These are the checks, the words each one uses, and the limits it alarms at unless the host is told otherwise:

AreaCheckWhat the alert saysLimits, with their defaults
storagemd_failedmd2 degraded, 1 of 8 members missing, md2 inactivenone
md_rebuildmd2 rebuilding, 40%none
disk_offlinesdc offline since 14:02none
disk_slowsdc slow: w_await 12x its md2 siblings for 14 minnone
disk_latencysdc w_await 320ms for 12 minamber 50, red 200 (ms, SSD and NVMe); amber_rotational 250, red_rotational 1000 (ms, spinning disks)
iscsiiSCSI iqn.2026-01.uk.example:lun1 offline since 14:02none
multipathmpatha 1 of 2 paths downnone
nfs_slow/mnt/nfs write 800ms for 6 minamber 500, red 2000 (ms)
nfs_timeouts/mnt/nfs 12 major timeouts in 10 minnone
io_stallevery task stalled on I/O 10% of the last minute, for 22 minamber 10, red 30 (%)
lv_suspendedvg0-data suspended since 14:02none
filesystemfs_missing/srv not mounted, /srv has /dev/sdb1 mounted, fstab expects /dev/sdc1, swap /dev/sda2 not activenone
fs_readonly/srv read-only since 14:02none
fs_unresponsive/mnt/nfs not responding since 14:02none
fs_full/srv 92% full, /srv inodes 91% usedamber 90, red 95 (%)
fs_filling/srv full in about 9 h at the last hour's ratehours 12
memoryoomOOM killer killed 2 processes in the last hour, last at 14:02none
mem_pressureevery task stalled on memory 6% of the last minute, for 7 minamber 5, red 20 (%)
swappingswapping in 2.4 MB/s for 6 minamber 1 (MB/s)
mem_lowmemory 3.2% available (1.0 GB of 31.3 GB) for 6 minamber 5 (% available)
processesdstate14 processes in uninterruptible sleep (D) for 6 minamber 10, red 50 (processes)
zombies34 zombies, up 12 in 30 minamber 20 (zombies)
pidsthreads at 85% of pid_max (27853 of 32768)amber 80, red 95 (%)
servicesunit_failedphp-fpm.service failed since 14:02none
unit_restartingphp-fpm.service restarted 7 times in 15 minamber 3 (restarts in 15 minutes)
port_losttcp/3306 not listening since 14:02none
networklink_downeth1 link down since 14:02none
bond_degradedbond0 1 of 2 members downnone
link_speedeth0 at 100 Mb/s, was 1 Gb/s, eth0 at half duplexnone
net_errorseth0 3.2 errors a second for 6 minamber 1 (errors a second)
tcp_retransTCP retransmitting 6.3% of segments for 11 minamber 5 (%)
conntrackconntrack table 84% full (220200 of 262144)amber 80, red 95 (%)
cpuloadload 2.4 per CPU (8 CPUs) for 16 min, which adds largely processes waiting on I/O, see io_stall when that is the causeamber 2, red 4 (per CPU)
stealCPU steal 24% for 16 min, the hypervisor is oversubscribedamber 20 (%)
host_timeclock not synchronised for 11 min, clock 2.3 s out for 11 minamber 1 (seconds)
fdsopen files at 85% of the system limit (891289 of 1048576)amber 80, red 95 (%)
temperaturePackage id 0 92C, maximum 90Cnone, the hardware's own limits are used
rebootedrebooted at 14:02none
gpu_lostgpu0 (0000:01:00.0) gone from the driver since 14:02none

One check can bring on another. A storage stall also leaves processes waiting (dstate) and raises the load (load), so a backup server may need those eased as well as io_stall. Change the one the alert names first, and the others only if they raise too.

For the first 5 minutes after the host boots, nothing raises except the amber rebooted, so mounts and services that take a minute to arrive after a restart do not page anyone. Anything still wrong when the 5 minutes are up raises at once. Most checks must also hold for a while before they raise, and be clear as long again before they drop, so a backup window or a burst does not flap the sensor. Some compare with what the agent has seen since it started, such as a filesystem that was writable or a link that was up; restarting the agent starts that memory afresh.

The limits are set on the host itself, check by check. A check can be switched off, or one disk, mount, interface, service or port left out of every check, for the backup server that spends its nights with the disks flat out. Nothing in Oversight can change the agent's settings.

A check that cannot run on a particular host, such as the pressure checks on a kernel booted without them, is listed as unavailable rather than raising an alarm.

Figures for charts

Beside the verdict, the agent serves figures for charting. None of them raises an alarm by itself, since the verdict has already judged them.

  • Host: CPU busy, iowait and steal, load per CPU, processes, stuck processes and zombies, file handles, clock offset, the hottest temperature sensor, and the kernel and boot id, so a reboot or a kernel update taking effect can be caught as a change.
  • Memory: available memory, swap use and swap-in, major faults, memory stall and OOM kills. On a ZFS host the cache above its minimum counts as available, as it really is.
  • Disk: read and write latency, queue depth and throughput for each physical disk, and the worst disk across the host, which survives disks being renamed after a reboot.
  • Storage: every md array, with mdstat's own picture of which slot is missing, and any LVM volume, filesystem or NFS mount while something is wrong with it.
  • Network: traffic, errors, drops, speed and link for each interface, TCP retransmissions and connection tracking.
  • GPU: NVIDIA GPUs that drop out of the driver or report a PCIe fatal error. A GPU is never judged on how busy it is: one running models sits at 100% or 0%, and both are normal.

In Oversight

Oversight reads the agent with a Linux agent sensor, which is ready as soon as it is saved: the verdict is read for you, red is CRIT and amber WARN, and a refused connection is CRIT too, so a token problem never looks like a healthy host. The alert carries the agent's own words, such as php-fpm.service failed since 14:02. Anything finer, such as making every storage problem CRIT, or sending storage problems to a different team from everything else, is a rule on that one area.

How it is reached

The agent listens on one address and port on the host, over HTTP, and answers only a probe that presents its bearer token, from an address it has been told to allow. It refuses to listen beyond the host with neither set. Where it must be reached across the internet, a reverse proxy in front of it provides TLS.

Installing it is one command, as root. It checks the build against its published checksum, creates an unprivileged system user for the agent and asks only which address to listen on. The same command upgrades it later, and leaves its settings alone.

On a Synology

The agent knows when it is on a Synology and reports the DSM version and model. It installs the same way, and DSM's differences are handled for it. It runs under DSM's own service manager, which restarts it if it stops. DSM's system and swap arrays, mirrored across every bay, are judged by their members rather than their slots, so empty bays do not alarm. Checks DSM cannot support, such as failed services on DSM 6, which has no systemd, show as unavailable. An eSATA or USB disk plugged into the unit is watched like any other disk. A DSM update can remove the agent's service; installing again puts it back with its settings kept.

Installation and configuration are for signed-in customers. Sign in to see them.