From 8555394637c2040b89435b526f38ddfa6741dbf4 Mon Sep 17 00:00:00 2001 From: Manuel CISSÉ Date: Tue, 23 Feb 2010 11:10:57 +0100 Subject: add uptime plugin --- plugin/uptime.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 plugin/uptime.php diff --git a/plugin/uptime.php b/plugin/uptime.php new file mode 100644 index 0000000..4c7db39 --- /dev/null +++ b/plugin/uptime.php @@ -0,0 +1,29 @@ +data_sources = array('value'); +$obj->ds_names = array( + 'value' => 'seconds', +); +$obj->colors = array( + 'value' => '0000f0', +); +$obj->width = $width; +$obj->heigth = $heigth; +$obj->rrd_title = 'Uptime'; +$obj->rrd_vertical = 'Seconds'; +$obj->rrd_format = '%.1lf'; + +collectd_flush($obj->identifiers); +$obj->rrd_graph(); + +?> -- cgit v1.1