1 |
# |
2 |
# i-scream central monitoring system |
3 |
# http://www.i-scream.org |
4 |
# Copyright (C) 2000-2002 i-scream |
5 |
# |
6 |
# This program is free software; you can redistribute it and/or |
7 |
# modify it under the terms of the GNU General Public License |
8 |
# as published by the Free Software Foundation; either version 2 |
9 |
# of the License, or (at your option) any later version. |
10 |
# |
11 |
# This program is distributed in the hope that it will be useful, |
12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
# GNU General Public License for more details. |
15 |
# |
16 |
# You should have received a copy of the GNU General Public License |
17 |
# along with this program; if not, write to the Free Software |
18 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 |
# |
20 |
|
21 |
# ----------------------------------------------------------- |
22 |
# i-scream rrd graphing configuration file |
23 |
# http://www.i-scream.org |
24 |
# |
25 |
# Holds configuration for the perl scripts. |
26 |
# |
27 |
# $Author: tdb $ |
28 |
# $Id: rrdgraphing.conf,v 1.3 2003/03/10 11:34:43 tdb Exp $ |
29 |
#------------------------------------------------------------ |
30 |
|
31 |
# !! if this file gets updated, the perl scripts must also be updated !! |
32 |
|
33 |
# Base directory for images |
34 |
# (a directory will be constructed for each host under this) |
35 |
# This directory should be in the root of the php webpage structure |
36 |
$imgdir = "/opt/rrdgraphing/graphs"; |
37 |
|
38 |
# Location of RRD databases |
39 |
$rrddir = "/opt/rrdgraphing/databases"; |
40 |
|
41 |
# maximum age (last modified) before an rrd or graph get cleaned up |
42 |
# (in seconds) |
43 |
$maxrrdage = 3600; # 1 hour |
44 |
$maximgage = 3600; # 1 hour |
45 |
|
46 |
# delete rrd's when they get cleaned up? |
47 |
# if unset, will just ignore the rrd's |
48 |
# - usually best to leave this off, we don't want to delete useful rrds :) |
49 |
$deleterrds = 0; |
50 |
|
51 |
# delete graphs when they get cleaned up? |
52 |
# if unset, won't bother checking at all |
53 |
# - usually best to leave this on |
54 |
$deleteimgs = 1; |
55 |
|
56 |
# for reference: |
57 |
# ch -> hex: $hex = sprintf("%02x", ord($ch)); |
58 |
# hex -> ch: $ch = chr(hex($hex)); |
59 |
|
60 |
# / converted to a decimal then hex'd |
61 |
$hex_slash = "_2f"; |
62 |
# _ converted to a decimal then hex'd |
63 |
$hex_underscore = "_5f"; |
64 |
|
65 |
# step interval in the rrd databases |
66 |
$rrdstep = 60; |
67 |
|
68 |
# time to wait (in seconds) before retrying a connection |
69 |
# to the i-scream server |
70 |
$retry_wait = 10; |
71 |
|
72 |
# should the program be verbose? |
73 |
$verbose = 0; |
74 |
|
75 |
# should the program be quiet? (even errors!) |
76 |
$quiet = 0; |