mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 05:42:13 +01:00
11 lines
297 B
Text
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
|
|
}
|