mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-11-16 00:28:32 +01:00
44628e78cc
Source: https://sourceforge.net/p/muninlite/patches/8/ Author: Craig Gallek See patch "110-fix-uptime-days" in OpenWrt.
10 lines
266 B
Text
10 lines
266 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"
|
|
}
|
|
fetch_uptime() {
|
|
awk '{printf "uptime.value %.2f",$1/86400; print ""}' /proc/uptime
|
|
}
|