Linux
banshee/linux-collection/linux/ssh/
uptime
Time since boot of a Linux by SSH, and a recent reboot.
by banshee1 installation2 versions
v2Latest
Published on October 28, 2026. One naming convention across collections; documentation completed.
Uptime of a Linux, by SSH
Returns the time since boot, in hours. A reboot shows as a time since boot shorter than the threshold of "Recent reboot".
Versions
Generic: /proc/uptime is written by the kernel the same way on Alpine, Debian and Fedora.
How it works
The collector runs cat /proc/uptime and reads its first figure, the seconds since boot.
- Nothing is written on the target.
Prerequisites
- an SSH account for monitoring, without write rights;
- the fingerprint of the server's host key, set in
protocol:ssh:fingerprint(not needed when the Security settings trust the first SSH fingerprint presented).
Outputs
| Name | Label | Unit | Per instance |
|---|---|---|---|
uptime | Time since boot | h | no |
Watches
| Name | Title | Kind | Defaults | Checked by default |
|---|---|---|---|---|
rebooted | Recent reboot | below a threshold, on uptime | warning below 0.5 h; no critical | yes |
Limits
- A reboot shorter than the interval of the probe is only seen if the threshold is longer than the interval.
- In a container, the time is the host's.