muninlite/plugins/uptime
runesk 7c8bd1e394 Import
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@1 35caa317-6b62-4e8a-81c0-b04f0c356266
2007-06-11 15:45:16 +00:00

12 lines
284 B
Plaintext

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)
}