blob: 78520c535f5c5702a5e66aae4370a596340eb4cd (
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
|
<?php
# Collectd Load plugin
require_once 'conf/common.inc.php';
require_once 'type/Default.class.php';
## LAYOUT
# load/load.rrd
$obj = new Type_Default($CONFIG, $_GET);
$obj->data_sources = array('shortterm', 'midterm', 'longterm');
$obj->legend = 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';
$obj->rrd_graph();
|