aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/dbi.php
blob: cd650f2a1bbea6f117d84bb3581a8d3ff164dd80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

# Collectd dbi plugin

require_once 'conf/common.inc.php';
require_once 'type/Default.class.php';
require_once 'inc/collectd.inc.php';



$obj = new Type_Default($CONFIG);


$obj->rrd_title = sprintf('%s', $obj->args['pinstance'], $obj->args['type']);
$obj->rrd_format = '%5.1lf%s';

collectd_flush($obj->identifiers);
$obj->rrd_graph();