muninlite/plugins/uptime

11 lines
266 B
Text
Raw Normal View History

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