From ee57a2d084226fd98a63204af2e2d7204e2502d6 Mon Sep 17 00:00:00 2001 From: Manuel CISSÉ Date: Tue, 23 Feb 2010 17:59:10 +0100 Subject: add hddtemp plugin --- plugin/hddtemp.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 plugin/hddtemp.php (limited to 'plugin') diff --git a/plugin/hddtemp.php b/plugin/hddtemp.php new file mode 100644 index 0000000..ff073cb --- /dev/null +++ b/plugin/hddtemp.php @@ -0,0 +1,24 @@ +.rrd + +$obj = new Type_Default($CONFIG); +$obj->ds_names = array('temperature' => 'Temperature'); +$obj->width = $width; +$obj->heigth = $heigth; +$obj->generate_colors(); +$obj->rrd_title = 'HDD Temperature'; +$obj->rrd_vertical = '°C'; +$obj->rrd_format = '%.1lf'; + +collectd_flush($obj->identifiers); +$obj->rrd_graph(); + +?> -- cgit v1.1