]> git.etc.gen.nz Git - spong.git/commitdiff
Initial import
authorStephen L Johnson <sjohnson@monsters.org>
Tue, 7 Sep 1999 14:07:05 +0000 (14:07 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Tue, 7 Sep 1999 14:07:05 +0000 (14:07 +0000)
config/spong.conf.geordi [new file with mode: 0755]

diff --git a/config/spong.conf.geordi b/config/spong.conf.geordi
new file mode 100755 (executable)
index 0000000..287a6bd
--- /dev/null
@@ -0,0 +1,127 @@
+# ---------------------------------------------------------------------------
+# 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...