diff options
Diffstat (limited to '')
-rw-r--r-- | plugin/nginx.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugin/nginx.php b/plugin/nginx.php index b6723fc..9d51a8e 100644 --- a/plugin/nginx.php +++ b/plugin/nginx.php | |||
@@ -8,6 +8,8 @@ require_once 'inc/collectd.inc.php'; | |||
8 | 8 | ||
9 | ## LAYOUT | 9 | ## LAYOUT |
10 | # nginx/ | 10 | # nginx/ |
11 | # nginx/connections-accepted.rrd | ||
12 | # nginx/connections-handled.rrd | ||
11 | # nginx/nginx_connections-active.rrd | 13 | # nginx/nginx_connections-active.rrd |
12 | # nginx/nginx_connections-reading.rrd | 14 | # nginx/nginx_connections-reading.rrd |
13 | # nginx/nginx_connections-waiting.rrd | 15 | # nginx/nginx_connections-waiting.rrd |
@@ -18,6 +20,19 @@ $obj = new Type_Default($CONFIG); | |||
18 | 20 | ||
19 | switch($obj->args['type']) | 21 | switch($obj->args['type']) |
20 | { | 22 | { |
23 | case 'connections': | ||
24 | $obj->order = array('accepted', 'handled'); | ||
25 | $obj->ds_names = array( | ||
26 | 'accepted' => 'Accepted', | ||
27 | 'handled' => 'Handled', | ||
28 | ); | ||
29 | $obj->colors = array( | ||
30 | 'accepted' => 'ff0000', | ||
31 | 'handled' => '0000ff', | ||
32 | ); | ||
33 | $obj->rrd_title = sprintf('nginx connections'); | ||
34 | $obj->rrd_vertical = 'Connections/s'; | ||
35 | break; | ||
21 | case 'nginx_connections': | 36 | case 'nginx_connections': |
22 | $obj->order = array('active', 'reading', 'waiting', 'writing'); | 37 | $obj->order = array('active', 'reading', 'waiting', 'writing'); |
23 | $obj->ds_names = array( | 38 | $obj->ds_names = array( |