aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/varnish.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/varnish.php')
-rw-r--r--plugin/varnish.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/plugin/varnish.php b/plugin/varnish.php
index 4de4463..8099691 100644
--- a/plugin/varnish.php
+++ b/plugin/varnish.php
@@ -26,19 +26,8 @@ $obj = new Type_Default($CONFIG);
26$obj->width = $width; 26$obj->width = $width;
27$obj->heigth = $heigth; 27$obj->heigth = $heigth;
28$obj->rrd_format = '%5.1lf%s'; 28$obj->rrd_format = '%5.1lf%s';
29switch($obj->args['pinstance']) { 29$obj->rrd_title = sprintf('%s (%s)', ucfirst($obj->args['pinstance']), $obj->args['category']);
30 case 'default-backend': 30$obj->rrd_vertical = 'hits';
31 $obj->rrd_title = 'backend'; 31
32 $obj->rrd_vertical = 'hits';
33 break;
34 case 'default-cache':
35 $obj->rrd_title = 'cache';
36 $obj->rrd_vertical = 'hits';
37 break;
38 case 'default-connections':
39 $obj->rrd_title = 'connections';
40 $obj->rrd_vertical = 'hits';
41 break;
42}
43collectd_flush($obj->identifiers); 32collectd_flush($obj->identifiers);
44$obj->rrd_graph(); 33$obj->rrd_graph();