aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorPim van den Berg2010-12-17 21:02:02 +0100
committerPim van den Berg2010-12-17 21:09:36 +0100
commit00f45eb3aecdf139f5982dfe11cdec8a5bd6907f (patch)
treecf699962c33441c6598d6c2cee8a22e7de3ef30e /plugin
parentplugin/apache: pinstance was not shown in title (diff)
downloadapt-panopticon_cgp-00f45eb3aecdf139f5982dfe11cdec8a5bd6907f.zip
apt-panopticon_cgp-00f45eb3aecdf139f5982dfe11cdec8a5bd6907f.tar.gz
apt-panopticon_cgp-00f45eb3aecdf139f5982dfe11cdec8a5bd6907f.tar.bz2
apt-panopticon_cgp-00f45eb3aecdf139f5982dfe11cdec8a5bd6907f.tar.xz
plugin/apache: add support for lighttpd
States are ordered by the order of handling a request, connect on top. Reference: http://redmine.lighttpd.net/wiki/1/Docs:InternalHTTPStates
Diffstat (limited to 'plugin')
-rw-r--r--plugin/apache.php50
1 files changed, 49 insertions, 1 deletions
diff --git a/plugin/apache.php b/plugin/apache.php
index 667d052..73fe70e 100644
--- a/plugin/apache.php
+++ b/plugin/apache.php
@@ -68,7 +68,31 @@ switch ($obj->args['type']) {
68 require_once 'type/GenericStacked.class.php'; 68 require_once 'type/GenericStacked.class.php';
69 $obj = new Type_GenericStacked($CONFIG); 69 $obj = new Type_GenericStacked($CONFIG);
70 $obj->data_sources = array('count'); 70 $obj->data_sources = array('count');
71 $obj->order = array('open', 'idle_cleanup', 'finishing', 'logging', 'closing', 'dnslookup', 'keepalive', 'sending', 'reading', 'starting', 'waiting'); 71 $obj->order = array(
72 'open',
73 'idle_cleanup',
74 'finishing',
75 'logging',
76 'closing',
77 'dnslookup',
78 'keepalive',
79 'sending',
80 'reading',
81 'starting',
82 'waiting',
83
84 'connect',
85 'hard_error',
86 'close',
87 'response_end',
88 'write',
89 'response_start',
90 'handle_request',
91 'read_post',
92 'request_end',
93 'read',
94 'request_start',
95 );
72 $obj->ds_names = array( 96 $obj->ds_names = array(
73 'open' => 'Open (empty)', 97 'open' => 'Open (empty)',
74 'waiting' => 'Waiting', 98 'waiting' => 'Waiting',
@@ -81,6 +105,18 @@ switch ($obj->args['type']) {
81 'logging' => 'Logging', 105 'logging' => 'Logging',
82 'finishing' => 'Finishing', 106 'finishing' => 'Finishing',
83 'idle_cleanup' => 'Idle cleanup', 107 'idle_cleanup' => 'Idle cleanup',
108
109 'connect' => 'Connect (empty)',
110 'close' => 'Close',
111 'hard_error' => 'Hard error',
112 'read' => 'Read',
113 'read_post' => 'Read POST',
114 'write' => 'Write',
115 'handle_request' => 'Handle request',
116 'request_start' => 'Request start',
117 'request_end' => 'Request end',
118 'response_start' => 'Response start',
119 'response_end' => 'Response end',
84 ); 120 );
85 $obj->colors = array( 121 $obj->colors = array(
86 'open' => 'e0e0e0', 122 'open' => 'e0e0e0',
@@ -94,6 +130,18 @@ switch ($obj->args['type']) {
94 'logging' => 'a000a0', 130 'logging' => 'a000a0',
95 'finishing' => '008080', 131 'finishing' => '008080',
96 'idle_cleanup' => 'ffff00', 132 'idle_cleanup' => 'ffff00',
133
134 'connect' => 'e0e0e0',
135 'close' => '008080',
136 'hard_error' => 'ff0000',
137 'read' => 'ff00ff',
138 'read_post' => '00e000',
139 'write' => '000080',
140 'handle_request' => '0080ff',
141 'request_start' => 'ffb000',
142 'request_end' => '0000ff',
143 'response_start' => 'ffff00',
144 'response_end' => 'a000a0',
97 ); 145 );
98 $obj->rrd_title = sprintf('Webserver Scoreboard%s', 146 $obj->rrd_title = sprintf('Webserver Scoreboard%s',
99 !empty($obj->args['pinstance']) ? ' ('.$obj->args['pinstance'].')' : ''); 147 !empty($obj->args['pinstance']) ? ' ('.$obj->args['pinstance'].')' : '');