blob: 0429735cde0a018443b48cd3be819f7cbb5abf8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
# Collectd Load plugin
require_once 'conf/common.inc.php';
require_once 'type/Default.class.php';
require_once 'inc/collectd.inc.php';
## LAYOUT
# load/load.rrd
$obj = new Type_Default($CONFIG, $_GET);
$obj->data_sources = array('shortterm', 'midterm', 'longterm');
$obj->ds_names = array(
'shortterm' => ' 1 min',
'midterm' => ' 5 min',
'longterm' => '15 min',
);
$obj->colors = array(
'shortterm' => '00ff00',
'midterm' => '0000ff',
'longterm' => 'ff0000',
);
$obj->rrd_title = 'System load';
$obj->rrd_vertical = 'System load';
$obj->rrd_format = '%.2lf';
collectd_flush($obj->identifiers);
$obj->rrd_graph();
|