From: Stephen L Johnson Date: Mon, 16 Oct 2000 13:58:48 +0000 (+0000) Subject: added $Id$ RCS field into comments and removed spong.conf file X-Git-Tag: spong-2_7_0-beta1~10 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af8a6da5957e487ddfb016c374cc9325fdcdfb5;p=spong.git added $Id$ RCS field into comments and removed spong.conf file --- diff --git a/config/spong.conf b/config/spong.conf deleted file mode 100755 index 21f4d51..0000000 --- a/config/spong.conf +++ /dev/null @@ -1,228 +0,0 @@ -# --------------------------------------------------------------------------- -# Generic SPONG settings, specifies where files are kept, etc... -# --------------------------------------------------------------------------- -# $Id: spong.conf,v 1.19 2000/09/27 03:11:33 sljohnson Exp $ - -$SPONGSLEEP = 300; # Sleep time between check cycles. Depreciated - -# New config for specifying $SPONGSLEEP times, 'DEFAULT' value is used if not -# Overridden by program specific value. - -$SPONGSLEEP{'DEFAULT'} = 300; -# $SPONGSLEEP{'spong-network'} = 60; # Uncomment and change any of these -# $SPONGSLEEP{'spong-server'} = 120; # values to override the 'DEFAULT' -# $SPONGSLEEP{'spong-client'} = 300; # with the named program - -$SPONGSERVER = "spong-server.my-ink.com"; -$SPONGDB = "/usr/local/spong/var/database"; -$SPONGTMP = "/usr/local/spong/tmp"; -$SPONG_UPDATE_PORT = 1998; -$SPONG_QUERY_PORT = 1999; -$SPONG_BB_UPDATE_PORT = 1984; - -# Keep status updates which cause generate an event (i.e. change of status) -# (Note: This option generate large amounts of data. Use with caution.) -$STATUS_HISTORY = 1; - -$SPONG_LOG_FILE = 1; # Log output to log file for spong-program in $SPONGTMP -$SPONG_LOG_SYSLOG = 0; # Log output to syslog - -$SPONG_SERVER_ALARM = 10; # Timeout for spong-server connection in seconds - # Set to 0 to disable - -# Number of frames to use in Web Displays -$WWWFRAMES = 3; # Can be 2 or 3, defaults to 2 - -# Set to show long host names on Host Summary web display -$WWW_FQDN = 1; - -$WWWGIFS = "/spong/gifs"; # URL to www/gifs dir -$WWWDOCS = "/spong/docs"; # URL to www/docs dir -$WWWHTML = "/usr/local/spong/www/html"; # File path to SPONG/www dir -$WWWSPONG = "/cgi-bin/www-spong"; # URL path to www-spong program -$WWWACK = "/cgi-bin/www-spong-ack"; # URL path to www-spong-ack pgm - -$WAPSPONG = "/cgi-bin/wap-spong"; # URL path to wap-spong pgm - # BETA version of this feature - -#$WWWCONTACT = "/spong/page.cgi"; # This CGI script is not provided. See - # the admin-guide for more infomation - -# Customized link(s) that can be added to the Host Display (right frame) -# $WWW_ACTIONBAR_CUSTOM = -# 'Machine Info'; -$WWW_ACTIONBAR_CUSTOM = ' - Charts || - Summary'; - -# Customizable link that can be added to Host Problems displays (left frame) -$WWW_PROB_ACTIONBAR = $WWW_ACTIONBAR_CUSTOM; # Default to Host Display - # actionbar - -# Customizable action bar of Title Frame (only if $WWWFRAMES = 3) -$WWW_TITLE_ACTIONBAR = ' Extended ActionBar: ' . -' Spong RRD Charts ' . -' || System Summaries'; - -# This is the default of the www-spong CGI program. Possible values are -# 'GROUPS' or 'HOSTS' -$WWW_DEFAULT_VIEW = "GROUPS"; - -# Date and time format strings. These are strftime() format variables -$DATEFMT = "%m/%d/%y"; # MM/DD/YY -$TIMEFMT = "%H:%M:%S"; # HH:MM:SS -$TIMEFMTNOSEC = "%H:%M"; # HH:MM -$DATETIMEFMT = "%c"; # scalar localtime() format - -$WWW_TITLE_COLOR = "#9999ff"; # Background color for table title cells -$WWW_CELL_COLOR = "#cccccc"; # Background color for table detail cells - -$WWW_USE_IMAGES = 0; - -$WWW_COLOR{"red"} = "#cc0000"; -$WWW_COLOR{"yellow"} = "#ffff00"; -$WWW_COLOR{"green"} = "#339900"; -$WWW_COLOR{"purple"} = "#990099"; -$WWW_COLOR{"blue"} = "#0000ff"; - -@WWW_REFRESH_ALLOW = ( '.*' ); -@WWW_REFRESH_DENY = ( ); - -# You should not have to changes these settings -$SERVICELISTFIX = 0; # Set this if host not displaying service status -$HOSTGROUPALL = 0; # Set this to include the ALL group on Group Web - # displays - -# --------------------------------------------------------------------------- -# spong-cleanup parameters -# --------------------------------------------------------------------------- - -$SPONG_ARCHIVE = "/usr/local/spong/var/archives"; # Where to put the old - # history entries - -$OLD_SERVICE = 3; # How many days to keep stale status reported before - # removal -$OLD_HISTORY = 7; # How many days of history to keep for each host - -# --------------------------------------------------------------------------- -# spong-network parameters -# --------------------------------------------------------------------------- - -$CRIT_WARN_LEVEL = 1; # Number of critical failures before a service - # is reported as a critical - -$RECHECKSLEEP = 15; # Sleep time in seconds for down services recheck - # loop. Only effective if $CRIT_WARN_LEVEL is - # greater then 1 - - -# --------------------------------------------------------------------------- -# Thresholds, season to taste. These can be overridden on a host by host -# case in a spong.conf. file. -# --------------------------------------------------------------------------- - -$CHECKS = 'disk cpu processes logs'; # The client checks to run - -$MAILQWARN = 80; -$MAILQCRIT = 100; - -@DFIGNORE = ( "cd\d", "cdrom", ":" ); # List of raw fs's to ignore (regex) -$DFWARN{"ALL"} = 90; # Size to warn (yellow) on -$DFCRIT{"ALL"} = 95; # Size to panic (red) on -$DFWARN{"/usr"} = 95; # Some specifics... -$DFCRIT{"/usr"} = 98; -$DFWARN{"page"} = 50; -$DFCRIT{"page"} = 80; - -$CPUCRIT = 5.0; # Panic at load avg of 5.0 -$CPUWARN = 3.0; # Warn at load avg of 3.0 - -@PROCSWARN = ("xntpd"); -@PROCSCRIT = ("sendmail","httpd","mysqld","stidserver"); - -# $LOGWARN{"/var/log/messages"} = [ "WARNING" ]; -# $LOGCRIT{"/var/log/messages"} = [ "NOTICE" ]; - -# New Logmon configure syntax. -# The Syntax is much more complex than the old code, but it is inifinity more -# configurable. -# -# The top level varable ($LOGCHECKS) is a list of anonymous hashes -# (i.e. $LOGCHECKS is list of references to hashes). -# -# $LOGCHECKS = [ {hash}, {hash}, ]; -# -# Each hash look like the following: -# -# { logfile =>'/var/adm/messages', -# checks => [ -# { pattern =>'WARNING:(.*)', # Perl RegExp to look fo -# status =>'red', # Color to report 'green', -# # 'yellow',or 'red' -# duration =>60, # Number of minutes to report -# # events -# text =>'WARNING: $1', # Detail text to display. You -# # can use position var from -# # the regexp in the pattern -# }, -# { pattern =>'SU\s+(\S+)', -# status =>'yellow', -# duration =>10, -# text =>'SU to user $1', -# id =>'SU', # The id field is optional. It -# # is used to assign an internal -# # key to events. Normally the -# # the text field is used as the -# # key. The is field can used to -# # collapse multiple events to 1. -# }, - -$LOGCHECKS = [ { 'logfile' => '/var/log/messages', - 'checks' => [ { pattern=>'WARNING:(.*)', - status=> 'red', - duration=>60, - text=>'WARNING: $1', - }, - ], - } -]; - -# --------------------------------------------------------------------------- -# More configuration information - these variables are for the spong-network -# program, where the ones above are for the spong-client programs. -# --------------------------------------------------------------------------- - -$HTTPDOCS{"ALL"} = [ "/index.html" ]; -$HTTPPORT{"ALL"} = 80; - -# $HTTPDOCS{"www3.example.com"} = [ "/index.html" ]; - -# URL's for for http check. These configuations use HTTP 1.1 for testing. -# The '_HOST_' string is replaced by the hostname as defined in spong.hosts. -# The 'DEFAULT' entry is used for testing all hosts if not overriden. -$HTTPURLS{"DEFAULT"} = [ "http://_HOST_/" ]; -$HTTPURLS{"aptest.my-inc.com"} = [ "http://_HOST_/", - "http://webtest.my-inc.com:8080/login.php3", - "http://_HOST_:8000/newapp/register.html", - ]; - -# --------------------------------------------------------------------------- -# Just a little more configuration information - these variables are for -# the spong-message program. -# --------------------------------------------------------------------------- - -# This variable controls notifications on status changes -$SEND_MESSAGE = "RED-CHANGE"; # Can be RED, or CHANGE - # or RED-CHANGE or NONE; - -# This varirable controls whether 'page' messages are allowed or not -$PAGE_MESSAGE = "YES"; # Can YES or NONE - -# This controls the max number of contact can receive in an hour -$MESSAGES_PER_HOUR = 5; - -# This controls the max number of times the same message is send in an hour -$IDENT_MESSAGES_PER_HOUR = 3; - -1; # I'm a file that gets included in perl code - leave this 1 here... diff --git a/config/spong.conf.aix b/config/spong.conf.aix index 753db29..38c6bcc 100755 --- a/config/spong.conf.aix +++ b/config/spong.conf.aix @@ -7,6 +7,7 @@ # $PS You really want you ps command to return sorted via CPU usage # $PING Make sure your ping command only pings a finite number of times # --------------------------------------------------------------------------- +# $Id: spong.conf.aix,v 1.5 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/usr/bin/df"; $LSPS = "/usr/sbin/lsps -s"; diff --git a/config/spong.conf.bsdi b/config/spong.conf.bsdi index 8792e16..6c466a5 100755 --- a/config/spong.conf.bsdi +++ b/config/spong.conf.bsdi @@ -9,6 +9,7 @@ # and since some ping command want args after the host, put the # word HOST where you need the host to be in your ping command # --------------------------------------------------------------------------- +# $Id: spong.conf.bsdi,v 1.4 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/bin/df"; $UPTIME = "/usr/bin/uptime"; diff --git a/config/spong.conf.freebsd b/config/spong.conf.freebsd index 36f0d04..37ac06d 100755 --- a/config/spong.conf.freebsd +++ b/config/spong.conf.freebsd @@ -9,6 +9,7 @@ # and since some ping command want args after the host, put the # word HOST where you need the host to be in your ping command # --------------------------------------------------------------------------- +# $Id: spong.conf.freebsd,v 1.4 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/bin/df"; $UPTIME = "/usr/bin/uptime | head -1"; # Uptime behaves weirdly diff --git a/config/spong.conf.hpux b/config/spong.conf.hpux index 4178b0f..7dcd0e4 100755 --- a/config/spong.conf.hpux +++ b/config/spong.conf.hpux @@ -9,6 +9,7 @@ # and since some ping command want args after the host, put the # word HOST where you need the host to be in your ping command # --------------------------------------------------------------------------- +# $Id: spong.conf.hpux,v 1.4 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/usr/bin/bdf"; $UPTIME = "/usr/bin/uptime"; diff --git a/config/spong.conf.irix b/config/spong.conf.irix index 236e85b..510e0f8 100755 --- a/config/spong.conf.irix +++ b/config/spong.conf.irix @@ -9,6 +9,7 @@ # and since some ping command want args after the host, put the # word HOST where you need the host to be in your ping command # --------------------------------------------------------------------------- +# $Id: spong.conf.irix,v 1.4 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/bin/df -P"; $UPTIME = "/usr/bsd/uptime"; diff --git a/config/spong.conf.linux b/config/spong.conf.linux index 8501317..753897d 100755 --- a/config/spong.conf.linux +++ b/config/spong.conf.linux @@ -9,6 +9,7 @@ # and since some ping command want args after the host, put the # word HOST where you need the host to be in your ping command # --------------------------------------------------------------------------- +# $Id: spong.conf.linux,v 1.4 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/bin/df"; $UPTIME = "/usr/bin/uptime"; diff --git a/config/spong.conf.osf1 b/config/spong.conf.osf1 index 3bfbd2d..8bedbe3 100755 --- a/config/spong.conf.osf1 +++ b/config/spong.conf.osf1 @@ -7,6 +7,7 @@ # $PS You really want you ps command to return sorted via CPU usage # $PING Make sure your ping command only pings a finite number of times # --------------------------------------------------------------------------- +# $Id: spong.conf.osf1,v 1.5 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/usr/bin/df"; $UPTIME = "/usr/ucb/uptime"; # Use berkely uptime, diff --git a/config/spong.conf.solaris b/config/spong.conf.solaris index 166ca75..3a35f83 100755 --- a/config/spong.conf.solaris +++ b/config/spong.conf.solaris @@ -9,6 +9,7 @@ # and since some ping command want args after the host, put the # word HOST where you need the host to be in your ping command # --------------------------------------------------------------------------- +# $Id: spong.conf.solaris,v 1.4 2000/10/16 13:58:48 sljohnson Exp $ $DF = "/usr/ucb/df"; $UPTIME = "/usr/bin/uptime"; diff --git a/config/spong.groups b/config/spong.groups index 15aa960..6b98bb8 100755 --- a/config/spong.groups +++ b/config/spong.groups @@ -1,3 +1,9 @@ +# spong.groups - Defines groups for grouping of hosts +# +# $Id: spong.groups,v 1.4 2000/10/16 13:58:48 sljohnson Exp $ + + + %GROUPS = ( 'all' => { name => 'All Systems', summary => "This groups contains all hosts monitored by spong" }, diff --git a/config/spong.hosts b/config/spong.hosts index c71d3f3..4ed45b8 100755 --- a/config/spong.hosts +++ b/config/spong.hosts @@ -1,5 +1,7 @@ # See the spong.hosts man page for additional documentation. # +# $Id: spong.hosts,v 1.3 2000/10/16 13:58:48 sljohnson Exp $ +# # Don't be afraid. This is a configuration file that defines two things, 1) # who is respondsible for systems, and how do you get ahold of them, and 2) # what systems are supposed to be monitored. There are two Perl "hashs" that diff --git a/config/spong.message b/config/spong.message index 0249f36..07e1511 100755 --- a/config/spong.message +++ b/config/spong.message @@ -1,3 +1,6 @@ +# spong.message - spong-message program configure file +# +# $Id: spong.message,v 1.6 2000/10/16 13:58:48 sljohnson Exp $ # This flag determines the how the overall rules are matched due a rules scan # 'FIRST-MATCH' means that the first rule matches is used and the scanning stop