aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2010-10-04 14:50:53 +0200
committerPim van den Berg2010-10-04 14:50:53 +0200
commitebcc489d12493a5ee4807126325e284bb10f9469 (patch)
treec0704811144d3fcfb4a61202846d4d0682355e91
parentplugin/processes: support for monitoring specific processes (diff)
downloadapt-panopticon_cgp-ebcc489d12493a5ee4807126325e284bb10f9469.zip
apt-panopticon_cgp-ebcc489d12493a5ee4807126325e284bb10f9469.tar.gz
apt-panopticon_cgp-ebcc489d12493a5ee4807126325e284bb10f9469.tar.bz2
apt-panopticon_cgp-ebcc489d12493a5ee4807126325e284bb10f9469.tar.xz
plugin: add bind plugin
Very basic support for bind.
-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