aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2014-01-02 14:18:11 -0800
committerPim van den Berg2014-01-02 14:18:11 -0800
commit4ee37f6aaa45cd799f6cecd2d0a20649aa5515d4 (patch)
tree05e6a1f0a9a18c8b4482e33a463869b8f86dc520
parentMerge pull request #40 from oohlaf/apcupsd (diff)
parentNginx plugin changed DS types (diff)
downloadapt-panopticon_cgp-4ee37f6aaa45cd799f6cecd2d0a20649aa5515d4.zip
apt-panopticon_cgp-4ee37f6aaa45cd799f6cecd2d0a20649aa5515d4.tar.gz
apt-panopticon_cgp-4ee37f6aaa45cd799f6cecd2d0a20649aa5515d4.tar.bz2
apt-panopticon_cgp-4ee37f6aaa45cd799f6cecd2d0a20649aa5515d4.tar.xz
Merge pull request #41 from oohlaf/nginx
Nginx plugin changed DS types
-rw-r--r--plugin/nginx.php15
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
19switch($obj->args['type']) 21switch($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(