Skip to content

Commit ebcc489

Browse files
committed
plugin: add bind plugin
Very basic support for bind.
1 parent 7cf5076 commit ebcc489

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

plugin/bind.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

0 commit comments

Comments
 (0)