aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/bind.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/bind.php')
-rw-r--r--plugin/bind.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugin/bind.php b/plugin/bind.php
new file mode 100644
index 0000000..2ba5bc7
--- /dev/null
+++ b/plugin/bind.php
@@ -0,0 +1,20 @@
1<?php
2
3# Collectd bind plugin
4
5require_once 'conf/common.inc.php';
6require_once 'type/GenericStacked.class.php';
7require_once 'inc/collectd.inc.php';
8
9
10$obj = new Type_GenericStacked($CONFIG);
11$obj->width = $width;
12$obj->heigth = $heigth;
13$obj->generate_colors();
14
15$obj->rrd_title = sprintf('%s/%s', $obj->args['pinstance'], $obj->args['type']);
16$obj->rrd_format = '%5.1lf%s';
17
18collectd_flush($obj->identifiers);
19$obj->rrd_graph();
20