-
Notifications
You must be signed in to change notification settings - Fork 0
/
drraw.conf
310 lines (284 loc) · 11.6 KB
/
drraw.conf
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
#
# drraw configuration template/sample
#
# $Id: drraw.conf 1389 2008-02-16 23:36:44Z kalt $
#
# This file should be installed in the same directory as drraw.cgi and
# edited as needed to customize your installation.
#
# ** QUICK START : You need to edit variables which are not commented (below)
#
# ** ONCE IT WORKS: Take some time to go over this file again once you are
# more familiar with drraw to customize it in order to better
# suit your needs and preferences.
#
# this will help catch configuration mistakes
use strict;
# The title used as header for the index web pages
#$title = 'Draw Round Robin Archives on the Web';
# If you want to add a custom header for all pages, define this..
#$header =
# If you want to add a custom footer for all pages, define this..
#$footer =
$BASE_URI = '/drraw-pnp';
# Directories where Round Robin Databases may be found
# They will be searched recursively for files matching *.rrd (Round Robin
# Database files) and *.evt (Event files).
# NOTE: Specify directory paths without any trailing slash
%datadirs = (
'/path/to/pnp/db' => 'PNP',
'/path/to/ddraw/events' => 'Events'
);
# This function is used to sort *.rrd and *.evt filenames before displaying
# them for the user to choose from. It is passed the two arguments that
# need to be compared.#sub mydatafnsort { return $_[0] cmp $_[1]; }
# Default DS filter when adding graph data sources from RRD files
$dsfilter_def = '.*';
# Names of defined RRAs and the names to use on the graphs
# ** IMPORTANT: These MUST match with how your RRD files are setup!
@rranames = ( 'MIN', 'AVERAGE', 'MAX', 'LAST' );
%rranames = ( 'MIN' => 'Min',
'AVERAGE' => 'Avg',
'MAX' => 'Max',
'LAST' => 'Last'
);
# Viewer automatic refresh timer (seconds)
#$vrefresh = '900';
# Minimum dashboard automatic refresh timer (seconds)
#$drefresh = 1800;
# Default Views and their names
@dv_def = ( 'end - 30 minutes',
'end - 2 hours', 'end - 4 hours',
'end - 12 hours', 'end - 24 hours',
'end - 7 days', 'end - 14 days');
@dv_name = qw( 30m 2h 4h 12h 24h 1wk 2wk );
# How many seconds for each of the above views?
# (Ignored when using rrdtool 1.0.47 or later)
#@dv_secs = ( 240, 1440, 1440 * 7);
# Format used for the "Additional GPRINTs"
#$gformat = "%8.2lf";
# Graph Overlay (Requires RRDtool 1.0.36 or later)
#$overlay = '/somewhere/logo.gd';
# Maximum time (seconds) CGI processes may be running (0 to disable)
#$maxtime = 60;
# Cache refresh time (seconds)
#$crefresh = 3600;
# Where to save data and store temporary files
# These directories MUST EXIST and the user running CGI scripts must have
# read AND write access to them. It is entirely safe to delete any content
# found in the temporary directory.
$saved_dir = '/path/to/drraw-pnp/saved';
$tmp_dir = '/path/to/drraw-pnp/tmp';
# By default, critical errors are shown in the produced HTML pages produced
# and sent to standard error (which web servers typically write to some
# logfile). If the following is defined, such errors will be written to
# file directly by drraw.
#$ERRLOG = '/somewhere/drraw/tmp/errors.log';
# By default (as long as the Digest::MD5 Perl module is available), drraw
# will cache images to avoid recomputing them needlessly. The following
# sets how often drraw should purge expired images from the cache.
# (Expired images being are automatically purged when refreshed.)
# Setting this to 0 will disable caching altogether.
$clean_cache = 21600; # 6 hours
# Whether or not RCS will be used, this requires:
# (1) The Perl "Rcs" module to be installed
# (2) The $saved_dir/RCS directory to exist
#$use_rcs = 1;
# Security Levels:
# 0 : Read-Only (e.g. graph viewing only)
# 1 : Limited Read-Write (such users can define/save new graphs,
# and delete saved graphs they saved)
# 2 : Read-Write
# User authentication/validation handling is left up to the web server. In
# other words, for things to work, you will need to change the web server
# configuration. If you don't, nothing will happen :-)
#
# Authenticated users automatically set the level to 2 unless the username
# is found in %users (below) in which case the level is set accordingly to
# what is defined.
# Unauthenticated users get the 'guest' username.
#
# If you don't care for authentication, set the following to 2.
%users = ( 'guest' => 2 );
# By default, drraw will use the REMOTE_USER environment variable to find
# the user's username. If you wish to use something else, simply define
# the following subroutine.
# NOTES: (1) drraw will fall back to using the REMOTE_USER environment variable
# if this subroutine returns 'undef': use 'guest' if you wish to
# leave the user unauthenticated.
# (2) this subroutine may manipulate the %users array based on external
# data allowing to process authentication entirely out of this
# configuration file.
sub mygetuser { return 'guest' }
# If you want to override your system's default timezone, you may do so here.
#$ENV{'TZ'} = 'UCT';
# If you have many RRD files and templates, indexes can become extremely
# big and slow to load. This variable allows you to prevent all templates
# choices from being displayed in the indexes based on how many choices
# are available per template.
#$IndexMax = 100;
# Custom Index Definition
#
# Custom Indexes are defined as a HASH:
# - Each key is the name that will be presented to the user
# - Keys are sorted when the index is built
# - If a key matches ^\d+\s+(\S.*)$ then only $1 will be shown
# (This allows for keys to be sorted independently of what is shown.)
# - The value for a given key must be one of the following:
# - A HASH (for nested indexes)
# - A SCALAR (for leaves) which will be matched as a regular expression
# against the Graph titles, Template titles and Dashboard titles.
# Matching titles will be presented to the user.
# - An ARRAY (for leaves) containing 3 elements. Each element will be
# matched as a regular expression against the Graph titles, Template
# titles and Dashboard titles (respectively). Matching titles will
# be presented to the user.
#
# For example:
# %Index = ( '1 Network' => { 'Cisco' => [ undef, 'Cisco', 'Cisco' ],
# 'Interfaces Statistics' => 'Interface',
# 'Miscellaneous' => [ 'Traffic', '(DMZ Traffic|Firewall)', undef ],
# 'VPN' => 'VPN' },
#%Index = (
# '1 CPU' => [ undef, '(CPU)', '(CPU)' ],
#);
# '3 UNIX' => [ '(Solaris|BSD)', '(Solaris|BSD)', 'UNIX' ],
# '4 Windows => [ 'Windows', 'Windows', 'Windows' ],
# '5 Environmental' => [ 'Datacenter', undef, 'Datacenter' ] );
#
# IMPORTANT NOTE #1: Nested indexes are implemented using JavaScript.
#
# IMPORTANT NOTE #2: The above feature trigges a bug in the CGI.pm module
# from version 2.92 to version 3.04
#
# Icons used in the browser
# These may be copied from the drraw distribution if they are missing from
# your web server installation.
$icon_new = "${BASE_URI}/icons/generic.gif";
$icon_closed = "${BASE_URI}/icons/folder.gif";
$icon_open = "${BASE_URI}/icons/folder.open.gif";
$icon_text = "${BASE_URI}/icons/text.gif";
$icon_help = "${BASE_URI}/icons/unknown.gif";
$icon_bug = "${BASE_URI}/icons/bomb.gif";
$icon_link = "${BASE_URI}/icons/link.gif";
#
# Available colors
# Note: You should never remove colors from the configured list as it will
# break any saved graph/template using the colors you remove.
%colors = ( 'Black' => '#000000',
'Silver' => '#C0C0C0',
'Gray' => '#808080',
'White' => '#FFFFFF',
'Maroon' => '#800000',
'Red' => '#FF0000',
'Purple' => '#800080',
'Green' => '#008000',
'Lime' => '#00FF00',
'Olive' => '#808000',
'Yellow' => '#FFFF00',
'Orange' => '#FFA500',
'Pink' => '#FFC0CB',
'Navy' => '#000080',
'Blue' => '#0000FF',
'Teal' => '#008080',
'Aqua' => '#00FFFF',
'Invisible' => '',
'Aquamarine' => '#7FFFD4',
'BlueViolet' => '#8A2BE2',
'Brown' => '#A52A2A',
'BurlyWood' => '#DEB887',
'CadetBlue' => '#5F9EA0',
'Chocolate' => '#D2691E',
'Coral' => '#FF7F50',
'CornflowerBlue' => '#6495ED',
'Crimson' => '#DC143C',
'DarkGoldenRod' => '#B8860B',
'DarkGray' => '#A9A9A9',
'DarkKhaki' => '#BDB76B',
'DarkMagenta' => '#8B008B',
'DarkOliveGreen' => '#556B2F',
'DarkOrange' => '#FF8C00',
'DarkOrchid' => '#9932CC',
'DarkRed' => '#8B0000',
'DarkSalmon' => '#E9967A',
'DarkSeaGreen' => '#8FBC8F',
'DarkSlateBlue' => '#483D8B',
'DarkSlateGray' => '#2F4F4F',
'DarkViolet' => '#9400D3',
'DeepPink' => '#FF1493',
'DeepSkyBlue' => '#00BFFF',
'DimGray' => '#696969',
'DodgerBlue' => '#1E90FF',
'Feldspar' => '#D19275',
'FireBrick' => '#B22222',
'ForestGreen' => '#228B22',
'Fuchsia' => '#FF00FF',
'Gainsboro' => '#DCDCDC',
'Gold' => '#FFD700',
'GoldenRod' => '#DAA520',
'GreenYellow' => '#ADFF2F',
'HotPink' => '#FF69B4',
'IndianRed' => '#CD5C5C',
'Indigo' => '#4B0082',
'Khaki' => '#F0E68C',
'LightBlue' => '#ADD8E6',
'LightCoral' => '#F08080',
'LightGrey' => '#D3D3D3',
'LightGreen' => '#90EE90',
'LightPink' => '#FFB6C1',
'LightSalmon' => '#FFA07A',
'LightSeaGreen' => '#20B2AA',
'LightSlateBlue' => '#8470FF',
'LimeGreen' => '#32CD32',
'Magenta' => '#FF00FF',
'Maroon' => '#800000',
'MediumAquaMarine' => '#66CDAA',
'MediumBlue' => '#0000CD',
'MediumOrchid' => '#BA55D3',
'MediumPurple' => '#9370D8',
'MediumSeaGreen' => '#3CB371',
'MediumSlateBlue' => '#7B68EE',
'MediumSpringGreen' => '#00FA9A',
'MediumTurquoise' => '#48D1CC',
'MediumVioletRed' => '#C71585',
'MidnightBlue' => '#191970',
'Moccasin' => '#FFE4B5',
'OliveDrab' => '#6B8E23',
'OrangeRed' => '#FF4500',
'Orchid' => '#DA70D6',
'PaleGreen' => '#98FB98',
'PaleVioletRed' => '#D87093',
'Peru' => '#CD853F',
'Plum' => '#DDA0DD',
'RosyBrown' => '#BC8F8F',
'RoyalBlue' => '#4169E1',
'SaddleBrown' => '#8B4513',
'Salmon' => '#FA8072',
'SeaGreen' => '#2E8B57',
'Sienna' => '#A0522D',
'SkyBlue' => '#87CEEB',
'SlateBlue' => '#6A5ACD',
'SlateGray' => '#708090',
'SpringGreen' => '#00FF7F',
'SteelBlue' => '#4682B4',
'Tan' => '#D2B48C',
'Teal' => '#008080',
'Thistle' => '#D8BFD8',
'Tomato' => '#FF6347',
'Turquoise' => '#40E0D0',
'Violet' => '#EE82EE',
'VioletRed' => '#D02090',
'Wheat' => '#F5DEB3',
'White' => '#FFFFFF',
'Yellow' => '#FFFF00',
'YellowGreen' => '#9ACD32',
);
# Custom Style Sheet
# $CSS
1;
# Local Variables:
# mode: perl
# indent-tabs-mode: nil
# tab-width: 4
# cperl-indent-level: 4
# End: