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