diff options
author | bobonlog | 2014-03-03 16:43:31 -0800 |
---|---|---|
committer | bobonlog | 2014-03-03 16:43:31 -0800 |
commit | 2d405766ed0b51b0841ece58da392cd6a6d301be (patch) | |
tree | 6d0b237fba871577a2f91eb6e9e5ea2c4e365029 | |
parent | host.php: remove immediate end tag in fieldset (diff) | |
download | apt-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.php | 18 |
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 | |||
5 | require_once 'conf/common.inc.php'; | ||
6 | require_once 'type/Default.class.php'; | ||
7 | require_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 | |||
17 | collectd_flush($obj->identifiers); | ||
18 | $obj->rrd_graph(); | ||