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