aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorbobonlog2014-03-03 16:43:31 -0800
committerbobonlog2014-03-03 16:43:31 -0800
commit2d405766ed0b51b0841ece58da392cd6a6d301be (patch)
tree6d0b237fba871577a2f91eb6e9e5ea2c4e365029
parenthost.php: remove immediate end tag in fieldset (diff)
downloadapt-panopticon_cgp-2d405766ed0b51b0841ece58da392cd6a6d301be.zip
apt-panopticon_cgp-2d405766ed0b51b0841ece58da392cd6a6d301be.tar.gz
apt-panopticon_cgp-2d405766ed0b51b0841ece58da392cd6a6d301be.tar.bz2
apt-panopticon_cgp-2d405766ed0b51b0841ece58da392cd6a6d301be.tar.xz
Create dbi.php
-rw-r--r--plugin/dbi.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugin/dbi.php b/plugin/dbi.php
new file mode 100644
index 0000000..cd650f2
--- /dev/null
+++ b/plugin/dbi.php
@@ -0,0 +1,18 @@
1<?php
2
3# Collectd dbi plugin
4
5require_once 'conf/common.inc.php';
6require_once 'type/Default.class.php';
7require_once 'inc/collectd.inc.php';
8
9
10
11$obj = new Type_Default($CONFIG);
12
13
14$obj->rrd_title = sprintf('%s', $obj->args['pinstance'], $obj->args['type']);
15$obj->rrd_format = '%5.1lf%s';
16
17collectd_flush($obj->identifiers);
18$obj->rrd_graph();