blob: 288e08505cf782d85fcab04ee335ff1893636a47 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<?php
# collectd version
$CONFIG['version'] = 4;
# collectd's datadir
$CONFIG['datadir'] = '/var/lib/collectd/rrd';
# rrdtool executable
$CONFIG['rrdtool'] = '/usr/bin/rrdtool';
# rrdtool special options
$CONFIG['rrdtool_opts'] = '';
# category of hosts to show on main page
#$CONFIG['cat']['category1'] = array('host1', 'host2');
# default plugins to show on host page
$CONFIG['overview'] = array('load', 'cpu', 'memory', 'swap');
# example of filter to show only the if_octets of eth0 on host page
# (interface must be enabled in the overview config array)
#$CONFIG['overview_filter']['interface'] = array('ti' => 'eth0', 't' => 'if_octets');
# default plugins time range
$CONFIG['time_range']['default'] = 86400;
$CONFIG['time_range']['uptime'] = 31536000;
# show load averages on overview page
$CONFIG['showload'] = true;
$CONFIG['term'] = array(
'2hour' => 3600 * 2,
'8hour' => 3600 * 8,
'day' => 86400,
'week' => 86400 * 7,
'month' => 86400 * 31,
'quarter'=> 86400 * 31 * 3,
'year' => 86400 * 365,
);
# show graphs in bits or bytes
$CONFIG['network_datasize'] = 'bytes';
# browser cache time for the graphs (in seconds)
$CONFIG['cache'] = 90;
# default width/height of the graphs
$CONFIG['width'] = 400;
$CONFIG['heigth'] = 175;
# default width/height of detailed graphs
$CONFIG['detail-width'] = 800;
$CONFIG['detail-heigth'] = 350;
# collectd's unix socket (unixsock plugin)
# enabled: 'unix:///var/run/collectd-unixsock'
# disabled: NULL
$CONFIG['socket'] = NULL;
# load local configuration
if (file_exists(dirname(__FILE__).'/config.local.php'))
include_once 'config.local.php';
?>
|