From 17341689a4a65dcb95684d6e2aec12216f76ffeb Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 21 Mar 2010 13:52:04 +0100 Subject: add apache plugin --- plugin/apache.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 plugin/apache.php (limited to 'plugin/apache.php') diff --git a/plugin/apache.php b/plugin/apache.php new file mode 100644 index 0000000..1dc3540 --- /dev/null +++ b/plugin/apache.php @@ -0,0 +1,51 @@ +data_sources = array('count'); +$obj->order = array('open', 'idle_cleanup', 'finishing', 'logging', 'closing', 'dnslookup', 'keepalive', 'sending', 'reading', 'starting', 'waiting'); +$obj->ds_names = array( + 'open' => 'Open (empty) ', + 'waiting' => 'Waiting ', + 'starting' => 'Starting up ', + 'reading' => 'Reading request', + 'sending' => 'Sending reply ', + 'keepalive' => 'Keepalive ', + 'dnslookup' => 'DNS Lookup ', + 'closing' => 'Closing ', + 'logging' => 'Logging ', + 'finishing' => 'Finishing ', + 'idle_cleanup' => 'Idle cleanup ', +); +$obj->colors = array( + 'open' => 'e0e0e0', + 'waiting' => 'ffb000', + 'starting' => 'ff00ff', + 'reading' => '0000ff', + 'sending' => '00e000', + 'keepalive' => '0080ff', + 'dnslookup' => 'ff0000', + 'closing' => '000080', + 'logging' => 'a000a0', + 'finishing' => '008080', + 'idle_cleanup' => 'ffff00', +); +$obj->width = $width; +$obj->heigth = $heigth; + +$obj->rrd_title = sprintf('Scoreboard of %s', $obj->args['pinstance']); +$obj->rrd_vertical = 'Slots'; +$obj->rrd_format = '%5.1lf'; + +collectd_flush($obj->identifiers); +$obj->rrd_graph(); + +?> -- cgit v1.1