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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
<?php
# collectd version
$CONFIG['version'] = 5;
# collectd's datadir
$CONFIG['datadir'] = '../apt-panopticon/rrd';
# location of the types.db file
$CONFIG['typesdb'][] = 'conf/types.db';
# rrdtool executable
$CONFIG['rrdtool'] = '/usr/bin/rrdtool';
# rrdtool special command-line options
$CONFIG['rrdtool_opts'] = array(
'-c', 'BACK#000000',
'-c', 'CANVAS#000000',
# '-c', 'SHADEA#0000FF',
# '-c', 'SHADEB#FFFF00',
'-c', 'FONT#FFFFFF',
# '-c', 'GRID#FF00FF',
# '-c', 'MGRID#880000',
'-c', 'AXIS#FFFFFF',
'-c', 'FRAME#FFFFFF',
'-c', 'ARROW#FFFFFF'
);
# category of hosts to show on main page
#$CONFIG['cat']['category1'] = array('host1', 'host2');
# category of hosts based on regular expression
#$CONFIG['cat']['Mailservers'] = '/mail\d+/';
# default plugins to show on host page
#$CONFIG['overview'] = array('load', 'cpu', 'memory', 'swap');
$CONFIG['overview'] = array('FTP', 'HTTP', 'HTTPS', 'RSYNC', 'Speed');
# allowed other plugins to show on host page
$CONFIG['allowed'] = array();
# 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 * 7;
$CONFIG['time_range']['uptime'] = 31536000;
# show load averages and used memory on overview page
$CONFIG['showload'] = false;
$CONFIG['showmem'] = false;
$CONFIG['showtime'] = false;
$CONFIG['term'] = array(
'2hour' => 3600 * 2,
'8hour' => 3600 * 8,
'day' => 86400,
'week' => 86400 * 7,
'fortnight' => 86400 * 7 * 2,
'month' => 86400 * 31,
'quarter' => 86400 * 31 * 3,
'year' => 86400 * 365,
'2year' => 86400 * 365 * 2,
);
# show graphs in bits or bytes
$CONFIG['network_datasize'] = 'bytes';
# "png", "svg", "canvas" or "hybrid" (canvas on detail page, png on the others) graphs
$CONFIG['graph_type'] = 'hybrid';
# For canvas graphs, use 'async' or 'sync' fetch method
$CONFIG['rrd_fetch_method'] = 'async';
# use the negative X-axis in I/O graphs
$CONFIG['negative_io'] = false;
# add XXth percentile line + legend to network graphs
# false = disabled; 95 = 95th percentile
$CONFIG['percentile'] = false;
# create smooth graphs (rrdtool -E)
$CONFIG['graph_smooth'] = true;
# draw min/max spikes in a lighter color in graphs with type default
$CONFIG['graph_minmax'] = false;
# The URL that provides RRD files for the "canvas" graph type. Examples:
# 'rrd/{file}' is replaced by 'rrd/example.com/load/load.rrd'
# 'rrd.php?path={file_escaped}' becomes 'rrd.php?path=host%3Fload%3Fload.rrd'
$CONFIG['rrd_url'] = 'rrd.php?path={file_escaped}';
# browser cache time for the graphs (in seconds)
$CONFIG['cache'] = 90;
# page refresh (in seconds)
$CONFIG['page_refresh'] = '';
# default width/height of the graphs
$CONFIG['width'] = 400;
$CONFIG['height'] = 175;
# default width/height of detailed graphs
$CONFIG['detail-width'] = 800;
$CONFIG['detail-height'] = 350;
# max width/height of a graph (to prevent from OOM)
$CONFIG['max-width'] = $CONFIG['detail-width'] * 2;
$CONFIG['max-height'] = $CONFIG['detail-height'] * 2;
# collectd's unix socket (unixsock plugin)
# enabled: 'unix:///var/run/collectd-unixsock'
# enabled (rrdcached): 'unix:///var/run/rrdcached.sock'
# disabled: NULL
$CONFIG['socket'] = NULL;
# flush rrd data to disk using "collectd" (unixsock plugin)
# or a "rrdcached" server
$CONFIG['flush_type'] = 'collectd';
# system default timezone when not set
$CONFIG['default_timezone'] = 'UTC';
# load local configuration
if (file_exists(dirname(__FILE__).'/config.local.php'))
include_once 'config.local.php';
|