Linux load over SSH (ssh_load)
Reads /proc/loadavg over SSH and reports the 1, 5 and 15 minute load averages, and the five-minute load divided by the number of processor cores.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
load1 | Load average (1 minute) | none | none |
load5 | Load average (5 minutes) | none | none |
load15 | Load average (15 minutes) | none | none |
load_per_core | Load per core (5 minutes) | none | warning above 1.5, error above 3 |
If the number of cores cannot be read, load_per_core is unknown and the other three are still reported.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
port | 22 | TCP port of the SSH server. |
Suggested interval: 60 seconds. Credential: SSH (ssh_password or ssh_key).
On the target
A Linux host with an SSH server and an unprivileged account. The command run is cat /proc/loadavg; getconf _NPROCESSORS_ONLN 2>/dev/null || grep -c '^processor' /proc/cpuinfo. The host key is recorded on first use, as described for ssh_disk.
Failures
| Message | Meaning |
|---|---|
/proc/loadavg did not contain three load figures (is the target a Linux host?) (kind protocol) | The target accepted the login but is not Linux, or its shell printed something unexpected. |
reading /proc/loadavg failed on the target (exit status N): ... (kind protocol) | The command failed. |
| Host key changed, rejected credential, unusable key, missing credential, timeouts | As for ssh_disk. |