muninlite/plugins/uptime
2020-02-12 04:38:07 +01:00

11 lines
297 B
Text

config_uptime() {
echo "graph_title Uptime"
echo "graph_args --base 1000 -l 0 "
echo "graph_vlabel uptime in days"
echo "graph_category system"
echo "uptime.label uptime"
echo "uptime.draw AREA"
}
fetch_uptime() {
awk '{printf "uptime.value %.2f",$1/86400; print ""}' /proc/uptime
}