aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-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();