muninlite/plugins/uptime

12 lines
297 B
Text
Raw Permalink Normal View History

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