1 <?php // vim:fenc=utf-8:filetype=php:ts=4
3 * Configuration file for Collectd graph browser
6 // Array of paths when collectd's rrdtool plugin writes RRDs
7 $config['datadirs'] = array('/var/lib/collectd/rrd/');
8 // Width of graph to be generated by rrdgraph
9 $config['rrd_width'] = 600;
10 // Height of graph to be generated by rrdgraph
11 $config['rrd_height'] = 120;
12 // List of supported timespans (used for period drop-down list)
13 $config['timespan'] = array(
14 array('name'=>'hour', 'label'=>'past hour', 'seconds'=>3600),
15 array('name'=>'day', 'label'=>'past day', 'seconds'=>86400),
16 array('name'=>'week', 'label'=>'past week', 'seconds'=>604800),
17 array('name'=>'month', 'label'=>'past month', 'seconds'=>2678400),
18 array('name'=>'year', 'label'=>'past year', 'seconds'=>31622400));
19 // Interval at which values are collectd (currently ignored)
20 $config['rrd_interval'] = 10;
21 // Average rows/rra (currently ignored)
22 $config['rrd_rows'] = 2400;
23 // Additional options to pass to rrdgraph
24 $config['rrd_opts'] = array();
25 // Predefined set of colors for use by collectd_draw_rrd()
26 $config['rrd_colors'] = array(
27 'h_1'=>'F7B7B7', 'f_1'=>'FF0000', // Red
28 'h_2'=>'B7EFB7', 'f_2'=>'00E000', // Green
29 'h_3'=>'B7B7F7', 'f_3'=>'0000FF', // Blue
30 'h_4'=>'F3DFB7', 'f_4'=>'F0A000', // Yellow
31 'h_5'=>'B7DFF7', 'f_5'=>'00A0FF', // Cyan
32 'h_6'=>'DFB7F7', 'f_6'=>'A000FF', // Magenta
33 'h_7'=>'FFC782', 'f_7'=>'FF8C00', // Orange
34 'h_8'=>'DCFF96', 'f_8'=>'AAFF00', // Lime
35 'h_9'=>'83FFCD', 'f_9'=>'00FF99',
36 'h_10'=>'81D9FF', 'f_10'=>'00B2FF',
37 'h_11'=>'FF89F5', 'f_11'=>'FF00EA',
38 'h_12'=>'FF89AE', 'f_12'=>'FF0051',
39 'h_13'=>'BBBBBB', 'f_13'=>'555555',
42 * URL to collectd's unix socket (unixsock plugin)
43 * enabled: 'unix:///var/run/collectd/collectd-unixsock'
46 $config['collectd_sock'] = null;
48 * Path to TTF font file to use in error images
49 * (fallback when file does not exist is GD fixed font)
51 $config['error_font'] = '/usr/share/fonts/corefonts/arial.ttf';
54 * Constant defining full path to rrdtool
56 define('RRDTOOL', '/usr/bin/rrdtool');