From d24eea595474f559627ea1ef85a7f2065bc7e92d Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 10 Oct 2010 12:29:59 +0200 Subject: plugin: add cpufreq plugin --- plugin/cpufreq.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plugin/cpufreq.php diff --git a/plugin/cpufreq.php b/plugin/cpufreq.php new file mode 100644 index 0000000..ef2162b --- /dev/null +++ b/plugin/cpufreq.php @@ -0,0 +1,22 @@ +data_sources = array('value'); +$obj->width = $width; +$obj->heigth = $heigth; +$obj->generate_colors(); +$obj->rrd_title = 'CPU frequency scaling'; +$obj->rrd_vertical = 'Mhz'; +$obj->rrd_format = '%5.1lf%s'; + +collectd_flush($obj->identifiers); +$obj->rrd_graph(); -- cgit v1.1