Share

Spong

Code

Programming Languages: Perl

License: Artistic License, GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2006-03-02 cvs -d:pserver:anonymous@spong.cvs.sourceforge.net:/cvsroot/spong login

cvs -z3 -d:pserver:anonymous@spong.cvs.sourceforge.net:/cvsroot/spong co -P modulename

Show:

What's happening?

  • Comment: check_dns ... what is this gigfree logic?

    Sorry that should have been check_disk not check_dns I would also suggest that the default df command be changed to "df -P" at least on linux machines. This does NOT parse: [root@gt7 ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 9621848 1972760 7160312 22% / /dev/sda2 28842780 1150312 26227340 5% /usr tmpfs.

    2009-01-25 08:49:47 UTC by bmetal2

  • Comment: check_dns returns green

    I've whipped up a new check_dns plugin that uses Net::DNS and tested it. I'm including it here for now. I'll work on including it into CVS later (as i'm not a CVS guru) alan File Added: check_dns.

    2008-12-09 08:08:21 UTC by apremselaar

  • Comment: check_dns returns green

    I just wrote a script to cycle through the 3 types of tests (nslookup,host,dig) and check the shifted return codes. nslookup will return 0 even if there's a timeout connecting to the specified server host returns 1 if there's a timeout connecting to the specified server dig returns 9 if there's a timeout connecting to the specified server I've run this script on Mac OS X 10.5 as well as...

    2008-12-09 05:40:49 UTC by apremselaar

  • Comment: check_dns returns green

    I just wrote a script to cycle through the 3 types of tests (nslookup,host,dig) and check the shifted return codes. nslookup will return 0 even if there's a timeout connecting to the specified server host returns 1 if there's a timeout connecting to the specified server dig returns 9 if there's a timeout connecting to the specified server I've run this script on Mac OS X 10.5 as well as...

    2008-12-09 04:56:29 UTC by apremselaar

  • Comment: check_dns ... what is this gigfree logic?

    good catch. actually, it should be $gig_free = (($size / GIG > 1) && ($avail / GIG > 1)) ... the logic is, if the filesystem has more than 1 GB and the amount of available space is more than 1GB then even if the percentage is above the critical threshold, it won't go critical until less than 1GB of free space is available. of course that was more applicable 4 years ago when I made the...

    2008-12-09 01:41:11 UTC by apremselaar

  • Comment: check_dns returns green

    This is likely a change in the nslookup/host/dig tools... e.g. the bind package from isc. [tbrown@tom2 ~]$ nslookup -type=A gt3.baremetal.com gt3.baremetal.com ;; connection timed out; no servers could be reached [tbrown@tom2 ~]$ echo $? 0 -------- safe_exec($cmd,15); if ( ($? >> 8) == 0 ) { $color = "green"; $summary = "dns ok"; $? >> 8 should be the...

    2008-08-24 23:58:06 UTC by nobody

  • check_dns ... what is this gigfree logic?

    I frankly disagree with the v1.2 changes... # v1.2 02/26/04 Alan Premselaar # # added additional criteria to reporting red. # if filesystem is (x)GB and even though it is 98% used # if it has (X)GB free, it's not really critical. # so the logic is, if the size of the filesystem is GB # and the available space is...

    2008-08-24 22:59:00 UTC by nobody

  • check_dns returns green

    ...even if the DNS on target host is not running. I tried dig, nslookup and dig as DNSCMD. If i try the command /usr/bin/host manually, i get: host servername servername ;; connection timed out; no servers could be reached But spong displays green.

    2008-01-15 12:59:26 UTC by nobody

  • ssl checks return red for 404

    The logic for checking 400 level errors is there, but LWP returns "error" for 404 ... In check_https the problem is here... if ($result->is_success) { my $code = $result->code; I'd suggest changing that to if (defined($result->code)) { my $code = $result->code; that'll let the 400 level checking code actually see the error. maybe that should be check...

    2007-07-21 21:37:21 UTC by nobody

  • smtp fix for EXIM mailer (popular and debian default)

    Hi, EXIM does not return code 220 when you issue a quit, it issues a 554 syncronization error. (Yeah, I wonder why Debian doesn't just return to sendmail as the standard mailer myself ;-) You only need to change the regular expression from "^\s*220" to "^\s*[220|554]", which solves the problem. Here is the patch for the file /spong/src/lib/Spong/Network/plugins/check_smtp ---...

    2006-07-31 17:31:35 UTC by ttuncmd

Our Numbers