mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
12 lines
284 B
Text
12 lines
284 B
Text
|
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"
|
||
|
echo "uptime.cdef uptime,86400,/"
|
||
|
}
|
||
|
fetch_uptime() {
|
||
|
echo "uptime.value" $(cut -d\ -f1 /proc/uptime)
|
||
|
}
|