# 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;
-$MESSAGES_PER_HOUR = 5;
-$IDENT_MESSAGES_PER_HOUR = 3;
-1; # I'm a file that gets included in perl code - leave this 1 here...
+# This varirable controls whether 'page' messages are allowed or not
+$PAGE_MESSAGE = "YES"; # Can YES or NONE
-# ---------------------------------------------------------------------------
-# OS Specific variables. A few external programs are used by spong-client,
-# spong-network, and spong-message. Chances are these differ from OS to OS.
-# A couple of things to watch for.
-#
-# $DF Your df command should output %used as the first column with a '%'
-# $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
-# ---------------------------------------------------------------------------
+# This controls the max number of contact can receive in an hour
+$MESSAGES_PER_HOUR = 5;
-$DF = "/usr/bin/df";
-$LSPS = "/etc/lsps -s";
-$UPTIME = "/usr/bin/uptime";
-$PS = "/usr/bin/ps -eF \"pcpu time vsz pid ruser args\" | /usr/bin/sort -r";
-$GREP = "/usr/bin/egrep";
-$PING = "/usr/sbin/ping -n -c 2 HOST";
-$TRACEROUTE = "/usr/bin/traceroute";
-$SENDMAIL = "/usr/sbin/sendmail -t";
-$SENDMAILMQ = "/usr/sbin/sendmail -bp";
-$RPCINFO = "/usr/bin/rpcinfo -u";
-$NTPDATE = "/usr/sbin/ntpdate -q";
+# 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...
-
+++ /dev/null
-# ---------------------------------------------------------------------------
-# Generic SPONG settings, specifies where files are kept, etc...
-# ---------------------------------------------------------------------------
-
-$SPONGSLEEP = 300;
-$SPONGSERVER = "spong-server.aci.alltel.com";
-$SPONGDB = "/usr/local/spong/www/database";
-$SPONGTMP = "/tmp";
-$SPONG_UPDATE_PORT = 1998;
-$SPONG_QUERY_PORT = 1999;
-$SPONG_BB_UPDATE_PORT = 1984;
-
-$WWWGIFS = "/spong/gifs";
-$WWWHTML = "/usr/local/spong/www/html";
-$WWWSPONG = "http://spong-server.aci.alltel.com/cgi-bin/www-spong";
-$WWWACK = "http://spong-server.aci.alltel.com/cgi-bin/www-spong-ack";
-$WWWCONTACT = "http://spong-server.aci.alltel.com/spong/page.cgi";
-
-$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 = ( );
-
-
-$WWWCONTACT = "http://dim.weeg.uiowa.edu/operator/page/page2.cgi/spong";
-
-# ---------------------------------------------------------------------------
-# Thresholds, season to taste. These can be overridden on a host by host
-# case in a spong.conf.<hostname> file.
-# ---------------------------------------------------------------------------
-
-@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"} = 100; # Some specifics...
-$DFCRIT{"/usr"} = 100;
-$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" ];
-
-$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{"sprite.its.uiowa.edu"} = [ "/index.html" ];
-
-# ---------------------------------------------------------------------------
-# Just a little more configuration information - these variables are for
-# the spong-message program.
-# ---------------------------------------------------------------------------
-
-$SEND_MESSAGE = "RED-CHANGE"; # Can be RED, or CHANGE or NONE;
-$MESSAGES_PER_HOUR = 5;
-$IDENT_MESSAGES_PER_HOUR = 3;
-
-1; # I'm a file that gets included in perl code - leave this 1 here...
-
-# ---------------------------------------------------------------------------
-# OS Specific variables. A few external programs are used by spong-client,
-# spong-network, and spong-message. Chances are these differ from OS to OS.
-# A couple of things to watch for.
-#
-# $DF Your df command should output %used as the first column with a '%'
-# $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
-# ---------------------------------------------------------------------------
-
-$DF = "/usr/bin/df";
-$LSPS = "/etc/lsps -s";
-$UPTIME = "/usr/bin/uptime";
-$PS = "/usr/bin/ps -eF \"pcpu time vsz pid ruser args\" | /usr/bin/sort -r";
-$GREP = "/usr/bin/egrep";
-$PING = "/usr/sbin/ping -n -c 2 HOST";
-$TRACEROUTE = "/usr/bin/traceroute";
-$SENDMAIL = "/usr/sbin/sendmail -t";
-$RPCINFO = "/usr/bin/rpcinfo -u";
-
-1; # I'm a file that gets included in perl code - leave this 1 here...
-# ---------------------------------------------------------------------------
-# OS Specific variables. A few external programs are used by spong-client,
-# spong-network, and spong-message. Chances are these differ from OS to OS.
-# A couple of things to watch for.
-#
-# $DF Your df command should output %used as the first column with a '%'
-# $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
-# 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
-# ---------------------------------------------------------------------------
-
-$DF = "/bin/df";
-$UPTIME = "/usr/bin/uptime";
-$PS = "/bin/ps ax";
-$GREP = "/bin/grep";
-$PING = "/bin/ping -c 5 HOST";
-$TRACEROUTE = "/usr/sbin/traceroute";
-$SENDMAIL = "/usr/sbin/sendmail -t";
-
-1; # I'm a file that gets included in perl code - leave this 1 here...