]> git.etc.gen.nz Git - spong.git/log
spong.git
13 years agoThe $re changes everytime through the loops, so we can't optimise it. master
Andrew Ruthven [Fri, 18 Mar 2011 09:34:54 +0000 (22:34 +1300)]
The $re changes everytime through the loops, so we can't optimise it.

This bug meant that only the first regex in the INC and EXCL lists
was ever used.

13 years agoMake the comment a bit more understandable.
Andrew Ruthven [Thu, 17 Feb 2011 09:29:19 +0000 (22:29 +1300)]
Make the comment a bit more understandable.

15 years agoMove the TCP timeout configuration for check_simple to the config file.
Clément Stenac [Sun, 29 Mar 2009 02:59:54 +0000 (15:59 +1300)]
Move the TCP timeout configuration for check_simple to the config file.

15 years agoFix typos and grammer in documentation.
Clément Stenac [Sun, 29 Mar 2009 02:57:35 +0000 (15:57 +1300)]
Fix typos and grammer in documentation.

15 years agoAdd ping6 as a network check.
Andrew Ruthven [Sun, 29 Mar 2009 02:43:31 +0000 (15:43 +1300)]
Add ping6 as a network check.

17 years agoDon't try and use main::log, it doesn't exist. Use carp instead.
Andrew Ruthven [Thu, 27 Dec 2007 20:30:05 +0000 (09:30 +1300)]
Don't try and use main::log, it doesn't exist.  Use carp instead.

It seems that if the child process has any problems whatsoever it continues
to run, returning from SafeExec and usurping control.  So everytime the
child has a problem, it usurps control, leaving the parent waiting.

After a while you get quite a few processes hanging around doing waitpids.

17 years agoThe style sheet that Michael wrote for the XHTML modifications.
Michael Arndt [Thu, 27 Dec 2007 18:15:59 +0000 (07:15 +1300)]
The style sheet that Michael wrote for the XHTML modifications.

17 years agoRemove execute bit from files that don't want it.
Andrew Ruthven [Thu, 27 Dec 2007 17:38:15 +0000 (06:38 +1300)]
Remove execute bit from files that don't want it.

17 years agoA few more minor tweaks to the the Makefile for DESTDIR support.
Andrew Ruthven [Thu, 27 Dec 2007 17:27:08 +0000 (06:27 +1300)]
A few more minor tweaks to the the Makefile for DESTDIR support.

17 years agoFix appending of $@ to the error message if we fail to send a message to the Spong...
Andrew Ruthven [Thu, 27 Dec 2007 09:25:12 +0000 (22:25 +1300)]
Fix appending of $@ to the error message if we fail to send a message to the Spong server.

The previous version only appended a newline if $@ was set, not a newline and $@.

17 years agoWhen dealing with forking processes it is useful to know the PID that is generating...
Andrew Ruthven [Thu, 27 Dec 2007 09:14:47 +0000 (22:14 +1300)]
When dealing with forking processes it is useful to know the PID that is generating the debug messages.

17 years agoFix up handling of commands that are executable and add lots more debugging.
Andrew Ruthven [Thu, 27 Dec 2007 09:11:56 +0000 (22:11 +1300)]
Fix up handling of commands that are executable and add lots more debugging.

Back when I was using Spong at a previous job years ago, and again now that
I'm playing with it at home I ran into problems with lots of spong-network
processes all claming to be checking the same server and check.

I finally decided to dig into it.  In the current case it is because the
program wasn't executable and SafeExec wasn't working that out.  The
forked child was continuing to run for whatever reason.

This appears to work correctly now, I don't have ghost spong-network
processes hanging around anymore.

17 years agoFix typo in a comment.
Andrew Ruthven [Thu, 27 Dec 2007 03:55:44 +0000 (16:55 +1300)]
Fix typo in a comment.

17 years agoGet rid of an extra newline that sometimes sneaks into the log messages.
Andrew Ruthven [Sun, 23 Dec 2007 09:07:16 +0000 (22:07 +1300)]
Get rid of an extra newline that sometimes sneaks into the log messages.

17 years agoMove the logfiles to SPONGLOG. Allows easier seperation, including putting them...
Andrew Ruthven [Sun, 23 Dec 2007 03:44:11 +0000 (16:44 +1300)]
Move the logfiles to SPONGLOG.  Allows easier seperation, including putting them in /var/log/spong.

17 years agoSupport the output of top on Linux.
Andrew Ruthven [Sun, 23 Dec 2007 03:21:23 +0000 (16:21 +1300)]
Support the output of top on Linux.

17 years agoCenter the status icons.
Andrew Ruthven [Fri, 21 Dec 2007 00:48:51 +0000 (13:48 +1300)]
Center the status icons.

17 years agoAh, much nicer looking images now!
Andrew Ruthven [Thu, 20 Dec 2007 20:09:58 +0000 (09:09 +1300)]
Ah, much nicer looking images now!

17 years agoFix up DESTDIR to work even if spong files exist in $PREFIX.
Andrew Ruthven [Wed, 19 Dec 2007 22:19:30 +0000 (11:19 +1300)]
Fix up DESTDIR to work even if spong files exist in $PREFIX.

17 years agoUse nogroup for the webgroup.
Andrew Ruthven [Wed, 19 Dec 2007 21:54:52 +0000 (10:54 +1300)]
Use nogroup for the webgroup.

17 years agoAdd support for using DESTDIR.
Andrew Ruthven [Wed, 19 Dec 2007 21:52:21 +0000 (10:52 +1300)]
Add support for using DESTDIR.

17 years agochild handler overwritten at send message
Yukimasa TAKANO [Wed, 19 Dec 2007 21:19:43 +0000 (10:19 +1300)]
child handler overwritten at send message

Some child process call message_user() with SIG{CHLD} = 'IGNORE',
but overwrite to chld_handler() at finish sending message. That is wrong.
This patch allows to keep SIG{CHLD} to 'IGNORE' after sending message.

17 years agoAdd support for architecture specific config files.
Andrew Ruthven [Wed, 19 Dec 2007 21:14:58 +0000 (10:14 +1300)]
Add support for architecture specific config files.

This is useful when you are sharing a config file between
a number of hosts, of which not all are the same architecture.

17 years agoAllow having hosts file by hostname.
XeOn [Wed, 19 Dec 2007 20:53:36 +0000 (09:53 +1300)]
Allow having hosts file by hostname.

This allows you to share the Spong config file between a bunch of
hosts using NFS (or other method), which can ease configuration.

Patch originally written by XeOn (pspa@isp.novis.pt) on Wed, Nov 22 2000
I've tidied it up a little bit.

17 years agoInsert header line in group summary view
Andrew Ruthven [Wed, 19 Dec 2007 20:48:51 +0000 (09:48 +1300)]
Insert header line in group summary view

Now you can specify a group with a name of "break";. When this group
shows up depending on the group view you're using it does several things.

In the HTML mode, it displays the header bar again. This allows you to
cleanly breakup some different groups in either the brief or standard
group summary views. This group is skipped in the full view.

In text mode it does a simialr thing, but just prints a blank line instead
of repeating the header lines.

An example of what to put in your spong.groups file is:

'group 1' =>; { ... },

'----' => { name => 'break' },

'completely different group' => { ... }

18 years agoModule to check expiration date of SSL certificate for $HOST origin
Alan Premselaar [Thu, 2 Mar 2006 05:38:09 +0000 (05:38 +0000)]
Module to check expiration date of SSL certificate for $HOST
currently dependant on 'curl' being installed.

at some point I'd like to re-write it to do connections directly,
but haven't figured out yet how to get more than just the certificate
issuer and name.

19 years agoadded --page param and processing for the param spong-2_8_0-beta3
Stephen L Johnson [Sun, 4 Dec 2005 19:37:24 +0000 (19:37 +0000)]
added --page param and processing for the param
--page param disables ack, host downtime and delay message processing

19 years agofixed parm processing bug with $PAGE_MESSAGE (using uc instead of lc)
Stephen L Johnson [Sun, 4 Dec 2005 19:31:21 +0000 (19:31 +0000)]
fixed parm processing bug with $PAGE_MESSAGE (using uc instead of lc)
add '--page' paramter to spong-message call when sending 'page' message

19 years agoadded new features to config-file
Michael Arndt [Tue, 15 Nov 2005 12:38:22 +0000 (12:38 +0000)]
added new features to config-file

19 years agoxhtml and more cleanups
Michael Arndt [Tue, 15 Nov 2005 12:28:32 +0000 (12:28 +0000)]
xhtml and more cleanups

19 years agoxhtml and much more
Michael Arndt [Tue, 15 Nov 2005 10:11:43 +0000 (10:11 +0000)]
xhtml and much more

19 years agohtml cleaned up
Michael Arndt [Thu, 10 Nov 2005 14:49:18 +0000 (14:49 +0000)]
html cleaned up

19 years agohtml cleaned up
Michael Arndt [Thu, 10 Nov 2005 13:07:03 +0000 (13:07 +0000)]
html cleaned up

19 years agohtml cleaned up
Michael Arndt [Thu, 10 Nov 2005 12:59:32 +0000 (12:59 +0000)]
html cleaned up

19 years agonew plugin to monitor Postfix mail queue
Jan Willamowius [Thu, 27 Oct 2005 19:15:58 +0000 (19:15 +0000)]
new plugin to monitor Postfix mail queue

19 years agotypo in comment
Jan Willamowius [Thu, 27 Oct 2005 18:20:04 +0000 (18:20 +0000)]
typo in comment

19 years agocheck content on web pages (new module by Adrian Chadd)
Jan Willamowius [Tue, 4 Oct 2005 09:45:22 +0000 (09:45 +0000)]
check content on web pages (new module by Adrian Chadd)

19 years agodisplays the interface alias, hide fileds that don't display anything useful (patch...
Jan Willamowius [Tue, 4 Oct 2005 09:43:23 +0000 (09:43 +0000)]
displays the interface alias, hide fileds that don't display anything useful (patch by Toivo Pedaste)

19 years agodefault is /cgi-bin/, not /spong/cgi-bin/
Jan Willamowius [Tue, 4 Oct 2005 09:07:58 +0000 (09:07 +0000)]
default is /cgi-bin/, not /spong/cgi-bin/

19 years agofix assignment of config _hash_
Jan Willamowius [Tue, 4 Oct 2005 09:03:04 +0000 (09:03 +0000)]
fix assignment of config _hash_

19 years agoFirst version of a plugin to check the 3ware RAID controller
Alan Premselaar [Fri, 30 Sep 2005 10:28:24 +0000 (10:28 +0000)]
First version of a plugin to check the 3ware RAID controller
Written by Alan Premselaar

19 years agobrowser address bar icon submitted by Matt Kotich
Alan Premselaar [Fri, 30 Sep 2005 10:22:23 +0000 (10:22 +0000)]
browser address bar icon submitted by Matt Kotich

19 years agotweaks for FreeBSD top output format (patch by Alan)
Jan Willamowius [Fri, 30 Sep 2005 09:00:10 +0000 (09:00 +0000)]
tweaks for FreeBSD top output format (patch by Alan)

19 years agostarted updating the docs for 2.8.0 (just a bit...) spong-2_8_0-beta2
Jan Willamowius [Fri, 30 Sep 2005 08:43:43 +0000 (08:43 +0000)]
started updating the docs for 2.8.0 (just a bit...)

19 years agoallow configuration of the MySQL port (patch by Alan)
Jan Willamowius [Fri, 30 Sep 2005 08:37:10 +0000 (08:37 +0000)]
allow configuration of the MySQL port (patch by Alan)

19 years agoallow allow numeric ranges for ports to ignore (patch by Alan Premselaar)
Jan Willamowius [Fri, 30 Sep 2005 08:22:45 +0000 (08:22 +0000)]
allow allow numeric ranges for ports to ignore (patch by Alan Premselaar)

19 years agochange image path in sample config to path used in install
Jan Willamowius [Fri, 30 Sep 2005 08:13:44 +0000 (08:13 +0000)]
change image path in sample config to path used in install

19 years agouse root as ADMUSER
Jan Willamowius [Fri, 30 Sep 2005 07:58:49 +0000 (07:58 +0000)]
use root as ADMUSER

19 years agoadd missing doc files from 2.7.7 release
Jan Willamowius [Fri, 30 Sep 2005 07:47:25 +0000 (07:47 +0000)]
add missing doc files from 2.7.7 release

19 years agomove version number to 2.8.0 spong-2_8_0-beta1
Jan Willamowius [Wed, 28 Sep 2005 11:27:55 +0000 (11:27 +0000)]
move version number to 2.8.0

19 years agoupdated MySQL plugin
Jan Willamowius [Tue, 27 Sep 2005 16:22:43 +0000 (16:22 +0000)]
updated MySQL plugin

19 years agoupdated MySQL plugin by Andrew Ruthven
Jan Willamowius [Tue, 27 Sep 2005 16:16:53 +0000 (16:16 +0000)]
updated MySQL plugin by Andrew Ruthven

19 years agoPlugin to monitor Compaq Insight Management software by Andrew Ruthven
Jan Willamowius [Tue, 27 Sep 2005 16:14:55 +0000 (16:14 +0000)]
Plugin to monitor Compaq Insight Management software by Andrew Ruthven

19 years agoPlugin to monitor RealServer v4 by Andrew Ruthven
Jan Willamowius [Tue, 27 Sep 2005 16:13:13 +0000 (16:13 +0000)]
Plugin to monitor RealServer v4 by Andrew Ruthven

19 years agodocument display_name
Jan Willamowius [Sat, 24 Sep 2005 20:38:14 +0000 (20:38 +0000)]
document display_name

19 years agoset UserAgent to 'Spong'
Jan Willamowius [Wed, 21 Sep 2005 22:50:34 +0000 (22:50 +0000)]
set UserAgent to 'Spong'

19 years agoFix args in spong-status (patch by Andrew Ruthven):
Jan Willamowius [Tue, 20 Sep 2005 14:59:15 +0000 (14:59 +0000)]
Fix args in spong-status (patch by Andrew Ruthven):
spong-status's help says that 'status' is the default
command. It wasn't, I've made it the default again.

The warnings that arguements were missing were being
lost when the help was printed. Changed them from
warnings to prints.

The tabbing in the help output was slightly out,
cleaned it up.

19 years agobugfix: $HTTPPORT{ALL} is not used
Jan Willamowius [Tue, 20 Sep 2005 14:34:32 +0000 (14:34 +0000)]
bugfix: $HTTPPORT{ALL} is not used

19 years agodisplay list of hosts sorted alphabetically (patch by Andrew Ruthven)
Jan Willamowius [Tue, 20 Sep 2005 14:24:17 +0000 (14:24 +0000)]
display list of hosts sorted alphabetically (patch by Andrew Ruthven)

19 years agoupdate for new version
Jan Willamowius [Thu, 15 Sep 2005 12:48:22 +0000 (12:48 +0000)]
update for new version

19 years agocreate libdir, better test for root permissions, test if spong user and group exist
Jan Willamowius [Thu, 15 Sep 2005 11:58:02 +0000 (11:58 +0000)]
create libdir, better test for root permissions, test if spong user and group exist

19 years agoremove trailing _spaces_
Jan Willamowius [Wed, 14 Sep 2005 10:21:10 +0000 (10:21 +0000)]
remove trailing _spaces_

19 years agoremove trailingg spaces properly
Jan Willamowius [Wed, 14 Sep 2005 10:17:50 +0000 (10:17 +0000)]
remove trailingg spaces properly

19 years agoVerizon SMS Gateway (non-email-based)
Jan Willamowius [Tue, 13 Sep 2005 15:43:35 +0000 (15:43 +0000)]
Verizon SMS Gateway (non-email-based)

19 years agoplugin to monitor SMB servers using 'smbclient'
Jan Willamowius [Tue, 13 Sep 2005 15:41:34 +0000 (15:41 +0000)]
plugin to monitor SMB servers using 'smbclient'

19 years agocorrect installer
Jan Willamowius [Tue, 13 Sep 2005 15:32:21 +0000 (15:32 +0000)]
correct installer

19 years agoadd missing files from 2.7.7 release to the CVS
Jan Willamowius [Tue, 13 Sep 2005 15:23:09 +0000 (15:23 +0000)]
add missing files from 2.7.7 release to the CVS

19 years agobetter error checking
Jan Willamowius [Tue, 13 Sep 2005 14:11:00 +0000 (14:11 +0000)]
better error checking

19 years agono limit on the output lines
Jan Willamowius [Tue, 13 Sep 2005 14:09:24 +0000 (14:09 +0000)]
no limit on the output lines

19 years agoshorter timeout (was 15 sec, now 6 sec)
Jan Willamowius [Tue, 13 Sep 2005 14:03:48 +0000 (14:03 +0000)]
shorter timeout (was 15 sec, now 6 sec)

19 years agomonitor rsync
Jan Willamowius [Tue, 13 Sep 2005 14:02:01 +0000 (14:02 +0000)]
monitor rsync

19 years agoMySQL monitoring by Miles Lott <milos@insync.net>
Jan Willamowius [Tue, 13 Sep 2005 13:57:58 +0000 (13:57 +0000)]
MySQL monitoring by Miles Lott <milos@insync.net>

19 years agocheck_https by Gerald Combs <gerald@zing.org>
Jan Willamowius [Tue, 13 Sep 2005 13:53:18 +0000 (13:53 +0000)]
check_https by Gerald Combs <gerald@zing.org>

19 years agomake HTTP version configurable,
Jan Willamowius [Tue, 13 Sep 2005 13:44:27 +0000 (13:44 +0000)]
make HTTP version configurable,
send UserAgent: Spong (so it can be filtered from web stats)

19 years agoplugin to monitor the GNU Gatekeeper (http://www.gnugk.org/)
Jan Willamowius [Tue, 13 Sep 2005 13:14:34 +0000 (13:14 +0000)]
plugin to monitor the GNU Gatekeeper (http://www.gnugk.org/)

19 years agosend identification string to avoid error in server log
Jan Willamowius [Tue, 13 Sep 2005 12:12:51 +0000 (12:12 +0000)]
send identification string to avoid error in server log

20 years agoAllow a 'host' entry in a check_logs configuration section.
Michael Brown [Tue, 27 Jul 2004 17:04:28 +0000 (17:04 +0000)]
Allow a 'host' entry in a check_logs configuration section.
This allows you to report problems as a different host.
Useful when you are monitoring SNMP traps, consolidating syslogs, etc.

21 years agoadded confirmation of Spong VAR directory value to warning message
Stephen L Johnson [Fri, 8 Aug 2003 20:37:38 +0000 (20:37 +0000)]
added confirmation of Spong VAR directory value to warning message

21 years agoupdated documention for latest changes
Stephen L Johnson [Sun, 27 Jul 2003 03:59:22 +0000 (03:59 +0000)]
updated documention for latest changes

21 years agoremoved an extra '@' from the @@LIBDIR@@ token
Stephen L Johnson [Sun, 27 Jul 2003 03:40:17 +0000 (03:40 +0000)]
removed an extra '@' from the @@LIBDIR@@ token

21 years agofixed time comparison problem in remove_old_events() and added -v flag for verbose...
Stephen L Johnson [Sun, 27 Jul 2003 03:04:27 +0000 (03:04 +0000)]
fixed time comparison problem in remove_old_events() and added -v flag for verbose output

21 years agoReplaced faulty sort and compare method for checking lists with List::Compare CPAN...
Stephen L Johnson [Sun, 27 Jul 2003 02:53:20 +0000 (02:53 +0000)]
Replaced faulty sort and compare method for checking lists with List::Compare CPAN module

21 years agoadded matching term for color/status
Stephen L Johnson [Sat, 26 Jul 2003 20:36:46 +0000 (20:36 +0000)]
added matching term for color/status

21 years agoreally, really fixed that regexp problem in remove_np_files(). (David Bronder)
Stephen L Johnson [Thu, 17 Jul 2003 02:45:33 +0000 (02:45 +0000)]
really, really fixed that regexp problem in remove_np_files(). (David Bronder)

21 years agoreally fixed regexp bug in remove_np_files()
Stephen L Johnson [Wed, 16 Jul 2003 20:15:43 +0000 (20:15 +0000)]
really fixed regexp bug in remove_np_files()

21 years agoadded code to skip a status that are already purple in the stale data scan
Stephen L Johnson [Wed, 16 Jul 2003 17:50:40 +0000 (17:50 +0000)]
added code to skip a status that are already purple in the stale data scan

21 years agoFixed problem with file name regexp in remove_np_files(). Thank to John Faichney
Stephen L Johnson [Mon, 2 Jun 2003 20:54:27 +0000 (20:54 +0000)]
Fixed problem with file name regexp in remove_np_files(). Thank to John Faichney

21 years agoReplaced $SPONGWWW var with $SPONGTMP in remove_np_files function. Thanks to John...
Stephen L Johnson [Wed, 14 May 2003 06:02:01 +0000 (06:02 +0000)]
Replaced $SPONGWWW var with $SPONGTMP in remove_np_files function. Thanks to John Faichney

21 years agoReplaced faulty sort and compare method for checking lists with List::Compare CPAN...
Stephen L Johnson [Wed, 14 May 2003 05:49:46 +0000 (05:49 +0000)]
Replaced faulty sort and compare method for checking lists with List::Compare CPAN module

21 years agoAdded List::Compare CPAN module into library directory
Stephen L Johnson [Wed, 14 May 2003 05:32:28 +0000 (05:32 +0000)]
Added List::Compare CPAN module into library directory

21 years agoFixed problem is mis-named STATUS_HISTORY variable (no $) Thanks to John Faichney.
Stephen L Johnson [Wed, 14 May 2003 03:47:13 +0000 (03:47 +0000)]
Fixed problem is mis-named STATUS_HISTORY variable (no $) Thanks to John Faichney.

21 years agoAdded comments to include and exclude color global rules
Stephen L Johnson [Sun, 11 May 2003 03:03:54 +0000 (03:03 +0000)]
Added comments to include and exclude color global rules

21 years agoAdded exclude_colors and include_color global matching rule
Stephen L Johnson [Sun, 11 May 2003 02:57:42 +0000 (02:57 +0000)]
Added exclude_colors and include_color global matching rule

21 years agoadded missing debug and error procedures
Stephen L Johnson [Wed, 26 Feb 2003 15:07:33 +0000 (15:07 +0000)]
added missing debug and error procedures

21 years agoChanged getlines() to getline() for one line logins and increased timeout. Thanks...
Stephen L Johnson [Sat, 22 Feb 2003 20:55:45 +0000 (20:55 +0000)]
Changed getlines() to getline() for one line logins and increased timeout. Thanks to Mical Dorocinski.

21 years agoFInal commit for Ack enhancements
Stephen L Johnson [Wed, 29 Jan 2003 23:01:51 +0000 (23:01 +0000)]
FInal commit for Ack enhancements

21 years agoFinal commits for enhanced Ack changes
Stephen L Johnson [Wed, 29 Jan 2003 23:00:12 +0000 (23:00 +0000)]
Final commits for enhanced Ack changes

21 years agoMisc whitespace changes
Stephen L Johnson [Wed, 29 Jan 2003 22:56:25 +0000 (22:56 +0000)]
Misc whitespace changes

21 years agoDisabled --kill until runaway issues are fixed.
Stephen L Johnson [Wed, 29 Jan 2003 22:47:57 +0000 (22:47 +0000)]
Disabled --kill until runaway issues are fixed.

21 years agoCorrected syntax error in an an example. Thanks to Raymond Popwich.
Stephen L Johnson [Wed, 29 Jan 2003 22:39:20 +0000 (22:39 +0000)]
Corrected syntax error in an an example. Thanks to Raymond Popwich.