From e7b54cf7ef457f9a7358efb7c99ab4c44631d925 Mon Sep 17 00:00:00 2001 From: Aurélien ROUGEMONT Date: Mon, 18 Apr 2011 20:02:00 +0200 Subject: plugin: add contextswitch plugin --- plugin/contextswitch.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 plugin/contextswitch.php diff --git a/plugin/contextswitch.php b/plugin/contextswitch.php new file mode 100644 index 0000000..ddb3276 --- /dev/null +++ b/plugin/contextswitch.php @@ -0,0 +1,27 @@ +data_sources = array('contextswitches'); +$obj->ds_names = array( + 'contextswitches' => 'Context switches', +); +$obj->colors = array( + 'contextswitches' => '0000f0', +); +$obj->width = $width; +$obj->heigth = $heigth; +$obj->rrd_title = 'Context switches'; +$obj->rrd_vertical = 'switch per second Bits'; +$obj->rrd_format = '%4.0lf'; + +collectd_flush($obj->identifiers); +$obj->rrd_graph(); -- cgit v1.1