diff options
| author | Pim van den Berg | 2010-10-04 14:50:53 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2010-10-04 14:50:53 +0200 |
| commit | ebcc489d12493a5ee4807126325e284bb10f9469 (patch) | |
| tree | c0704811144d3fcfb4a61202846d4d0682355e91 /plugin/bind.php | |
| parent | plugin/processes: support for monitoring specific processes (diff) | |
| download | apt-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.
Diffstat (limited to 'plugin/bind.php')
| -rw-r--r-- | plugin/bind.php | 20 |
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 | |||
| 5 | require_once 'conf/common.inc.php'; | ||
| 6 | require_once 'type/GenericStacked.class.php'; | ||
| 7 | require_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 | |||
| 18 | collectd_flush($obj->identifiers); | ||
| 19 | $obj->rrd_graph(); | ||
| 20 | |||
