Code

nagiosplug.git
18 years agoStop coredump on Solaris if arg not specified (Jason Kau - 1465288)
Ton Voon [Thu, 6 Apr 2006 10:08:57 +0000 (10:08 +0000)]
Stop coredump on Solaris if arg not specified (Jason Kau - 1465288)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1370 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNotice added re: check_udp in next release
Ton Voon [Wed, 5 Apr 2006 08:11:12 +0000 (08:11 +0000)]
Notice added re: check_udp in next release

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1369 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoUse pid_t for pids (1463853)
Ton Voon [Wed, 5 Apr 2006 08:06:19 +0000 (08:06 +0000)]
Use pid_t for pids (1463853)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1368 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAllow multiple -k parameters (Gerd Mueller - 1457726)
Ton Voon [Wed, 5 Apr 2006 07:58:29 +0000 (07:58 +0000)]
Allow multiple -k parameters (Gerd Mueller - 1457726)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1367 f882894a-f735-0410-b71e-b25c423dba1c

18 years agofinally??? cvs works again???? let me dig up my week-old cvs
M. Sean Finney [Wed, 5 Apr 2006 06:58:34 +0000 (06:58 +0000)]
finally??? cvs works again????  let me dig up my week-old cvs
commit message.....

i'm becoming very happy with check_apt now :)
- now has support for an externally (configure.in) path to apt-get,
  though i still have that in #ifdefs for the time being.
- support for defining what packages are "critical updates", via
  the already-existing security regexp or overridable on the cmdline
- allow overriding of apt-get cmdline options
- introduce a "no upgrade" in case someone just wants to check that
  they can download the package lists with -u but not check for upgrades.
  might need to change the name of this option to prevent confusion.
- improved -h documentation

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1366 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNew function to for escaped strings from command line for send/quit.
Ton Voon [Wed, 29 Mar 2006 16:33:36 +0000 (16:33 +0000)]
New function to for escaped strings from command line for send/quit.
Adapted from Sebastian Wiesinger's patch (1292404)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1365 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoWill die if signal received from a testCmd
Ton Voon [Wed, 29 Mar 2006 15:30:34 +0000 (15:30 +0000)]
Will die if signal received from a testCmd

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1364 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAllow 1 second delay in check_udp timeout
Ton Voon [Wed, 29 Mar 2006 14:37:58 +0000 (14:37 +0000)]
Allow 1 second delay in check_udp timeout

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1363 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoFix possible timeout issue on hostname_invalid
Ton Voon [Wed, 29 Mar 2006 08:18:50 +0000 (08:18 +0000)]
Fix possible timeout issue on hostname_invalid

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1362 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoFix test if response time is one second
Ton Voon [Wed, 29 Mar 2006 08:13:29 +0000 (08:13 +0000)]
Fix test if response time is one second

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1361 f882894a-f735-0410-b71e-b25c423dba1c

18 years agonow support for detecting critical/security updates, which sets
M. Sean Finney [Wed, 29 Mar 2006 08:01:19 +0000 (08:01 +0000)]
now support for detecting critical/security updates, which sets
the return code to STATE_CRITICAL instead of just STATE_WARNING
as it was previously doing.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1360 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoSet timeout within nc, rather than the test script
Ton Voon [Mon, 27 Mar 2006 08:39:28 +0000 (08:39 +0000)]
Set timeout within nc, rather than the test script

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1359 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoFixed bug with malloc of wrong size
Ton Voon [Mon, 27 Mar 2006 08:19:01 +0000 (08:19 +0000)]
Fixed bug with malloc of wrong size

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1358 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoFixing defaults to work
Ton Voon [Fri, 24 Mar 2006 17:26:30 +0000 (17:26 +0000)]
Fixing defaults to work

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1357 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoReintroduced --with-mysql configure option. Note about SSL cleanup
Ton Voon [Fri, 24 Mar 2006 16:49:28 +0000 (16:49 +0000)]
Reintroduced --with-mysql configure option. Note about SSL cleanup

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1356 f882894a-f735-0410-b71e-b25c423dba1c

18 years ago-C now implies -S/--ssl as well
Ton Voon [Fri, 24 Mar 2006 16:25:46 +0000 (16:25 +0000)]
-C now implies -S/--ssl as well

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1355 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoTests converted to new style
Ton Voon [Fri, 24 Mar 2006 16:13:40 +0000 (16:13 +0000)]
Tests converted to new style

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1354 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoudp checks require and send and receive option. Tests updated so if
Ton Voon [Fri, 24 Mar 2006 16:12:05 +0000 (16:12 +0000)]
udp checks require and send and receive option. Tests updated so if
nc is available, will check send and receive working correctly

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1353 f882894a-f735-0410-b71e-b25c423dba1c

18 years ago- addition of include/exclude option for package names in check_apt,
M. Sean Finney [Thu, 23 Mar 2006 22:58:38 +0000 (22:58 +0000)]
- addition of include/exclude option for package names in check_apt,
  using POSIX regexp support.
- various commenting and tidying of code/logic/output.
- still haven't committed the Makefile.am/configure.in stuff.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1352 f882894a-f735-0410-b71e-b25c423dba1c

18 years agocheck_disk now errors if a specified directory does not exist (cf df /foo)
Ton Voon [Thu, 23 Mar 2006 17:16:38 +0000 (17:16 +0000)]
check_disk now errors if a specified directory does not exist (cf df /foo)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1351 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoSome versions of Test::More do not like the m#foo# syntax
Ton Voon [Thu, 23 Mar 2006 16:06:00 +0000 (16:06 +0000)]
Some versions of Test::More do not like the m#foo# syntax

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1350 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoIncorrect output when checking non-existent disk (John Rouillard - 1326050)
Ton Voon [Thu, 23 Mar 2006 12:01:21 +0000 (12:01 +0000)]
Incorrect output when checking non-existent disk (John Rouillard - 1326050)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1349 f882894a-f735-0410-b71e-b25c423dba1c

18 years agomore work on check_apt. more graceful error handling and information
M. Sean Finney [Thu, 23 Mar 2006 00:01:29 +0000 (00:01 +0000)]
more work on check_apt.  more graceful error handling and information
reporting, a couple new cmdline options.  still not quite ready
for prime-time, maybe tomorrow :)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1348 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoReinstated --with-mysql option
Ton Voon [Wed, 22 Mar 2006 17:32:11 +0000 (17:32 +0000)]
Reinstated --with-mysql option

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1347 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAdded warning and critical response times (John Rouillard - 1343159)
Ton Voon [Wed, 22 Mar 2006 16:45:57 +0000 (16:45 +0000)]
Added warning and critical response times (John Rouillard - 1343159)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1346 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoConvert to new style tests
Ton Voon [Wed, 22 Mar 2006 15:45:49 +0000 (15:45 +0000)]
Convert to new style tests

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1345 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoOptions to change line ends for -s and -q (John Rouillard - 1346104)
Ton Voon [Wed, 22 Mar 2006 15:45:20 +0000 (15:45 +0000)]
Options to change line ends for -s and -q (John Rouillard - 1346104)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1344 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoRemove PATH restriction
Ton Voon [Wed, 22 Mar 2006 14:32:06 +0000 (14:32 +0000)]
Remove PATH restriction

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1343 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNew style tests. Cleanup of presentation of help. Added '' around -a checks
Ton Voon [Wed, 22 Mar 2006 14:17:10 +0000 (14:17 +0000)]
New style tests. Cleanup of presentation of help. Added '' around -a checks

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1342 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoTypo (Thomas Guettler - 1433447)
Ton Voon [Wed, 22 Mar 2006 13:18:06 +0000 (13:18 +0000)]
Typo (Thomas Guettler - 1433447)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1341 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoRemove hardlink to /bin/sed. Leave to PATH (Abs - 1391483)
Ton Voon [Wed, 22 Mar 2006 12:59:36 +0000 (12:59 +0000)]
Remove hardlink to /bin/sed. Leave to PATH (Abs - 1391483)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1340 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoinitial version of a check_apt plugin... not editing configure/Makefile.am's
M. Sean Finney [Wed, 22 Mar 2006 00:00:36 +0000 (00:00 +0000)]
initial version of a check_apt plugin... not editing configure/Makefile.am's
until i'm happier with it (better output, better ways to define warning
vs. critical thresholds... etc).

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1339 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoStop check_dns from compiling if nslookup does not exist (Sakari Lehtonen -
Ton Voon [Tue, 21 Mar 2006 14:20:13 +0000 (14:20 +0000)]
Stop check_dns from compiling if nslookup does not exist (Sakari Lehtonen -
1412721)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1338 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoUpdated to new Test::More method for testing
Ton Voon [Tue, 21 Mar 2006 13:42:18 +0000 (13:42 +0000)]
Updated to new Test::More method for testing

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1337 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoFix for mysql 3.x
Ton Voon [Tue, 21 Mar 2006 13:32:58 +0000 (13:32 +0000)]
Fix for mysql 3.x

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1336 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoReturn CRITICAL if hostname invalid, as per guidelines
Ton Voon [Tue, 21 Mar 2006 13:31:01 +0000 (13:31 +0000)]
Return CRITICAL if hostname invalid, as per guidelines

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1335 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoPatch to workaround SFnot having libtool installed
Ton Voon [Tue, 21 Mar 2006 12:56:59 +0000 (12:56 +0000)]
Patch to workaround SFnot having libtool installed

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1334 f882894a-f735-0410-b71e-b25c423dba1c

18 years agomysql discovery based on mysql_config (Johan Fischer - 1359414)
Ton Voon [Tue, 21 Mar 2006 11:42:59 +0000 (11:42 +0000)]
mysql discovery based on mysql_config (Johan Fischer - 1359414)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1333 f882894a-f735-0410-b71e-b25c423dba1c

18 years ago- shuffling some code around to keep things tidy.
M. Sean Finney [Mon, 20 Mar 2006 22:06:07 +0000 (22:06 +0000)]
- shuffling some code around to keep things tidy.
- now average the result of 4 queries just as ntpdate does
- put things in place for jitter calculation

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1332 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoipv6 support for c-version of check_ntp
M. Sean Finney [Mon, 20 Mar 2006 17:18:44 +0000 (17:18 +0000)]
ipv6 support for c-version of check_ntp

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1331 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoinitial version of the pure-c check_ntp implementation. jitter not yet
M. Sean Finney [Sat, 18 Mar 2006 19:00:43 +0000 (19:00 +0000)]
initial version of the pure-c check_ntp implementation.  jitter not yet
implemented, and a couple other misc things to do, so i haven't
yet patched Makefile.am

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1330 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoreturn-logic related fix for cert checking, thanks to emmet hogan.
M. Sean Finney [Sat, 18 Mar 2006 14:47:51 +0000 (14:47 +0000)]
return-logic related fix for cert checking, thanks to emmet hogan.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1329 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoBetter error message re: tap library
Ton Voon [Fri, 17 Mar 2006 14:08:42 +0000 (14:08 +0000)]
Better error message re: tap library

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1328 f882894a-f735-0410-b71e-b25c423dba1c

18 years agomysql detection cleanup: fixes runtime linking, autodetection of main
Ton Voon [Fri, 17 Mar 2006 14:07:34 +0000 (14:07 +0000)]
mysql detection cleanup: fixes runtime linking, autodetection of main
locations, detection of lib64 and different layouts

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1327 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAdded requirement for developer system to have gnu libtool
Ton Voon [Fri, 17 Mar 2006 10:20:45 +0000 (10:20 +0000)]
Added requirement for developer system to have gnu libtool

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1326 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoUsing libtool to get runpath for tap library
Ton Voon [Thu, 16 Mar 2006 17:31:11 +0000 (17:31 +0000)]
Using libtool to get runpath for tap library

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1325 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAlert on amount of time a slave is behind (Steven Kreuzer)
Ton Voon [Wed, 15 Mar 2006 19:54:32 +0000 (19:54 +0000)]
Alert on amount of time a slave is behind (Steven Kreuzer)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1324 f882894a-f735-0410-b71e-b25c423dba1c

18 years agofix for (tracker id 1420741)
M. Sean Finney [Mon, 13 Mar 2006 17:59:23 +0000 (17:59 +0000)]
fix for (tracker id 1420741)
"check_swap: incorrect totals for multiple partitions (BSD)"
thanks to scott thompson

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1323 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoChange warning message if there is stderr output. This catches a problem
Ton Voon [Mon, 13 Mar 2006 11:08:28 +0000 (11:08 +0000)]
Change warning message if there is stderr output. This catches a problem
where time was shifting backwards on a linux VMware guest during the ping

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1322 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAdded tests for two external websites with certificates
Ton Voon [Tue, 7 Mar 2006 10:33:00 +0000 (10:33 +0000)]
Added tests for two external websites with certificates

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1321 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoTests re-written in new object format
Ton Voon [Tue, 7 Mar 2006 10:23:31 +0000 (10:23 +0000)]
Tests re-written in new object format

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1320 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoUpdated doc as tap library is now automatically discovered
Ton Voon [Fri, 24 Feb 2006 17:03:57 +0000 (17:03 +0000)]
Updated doc as tap library is now automatically discovered

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1319 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoUse the installed tap library instead of requesting a compiled object
Ton Voon [Fri, 24 Feb 2006 16:41:06 +0000 (16:41 +0000)]
Use the installed tap library instead of requesting a compiled object

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1318 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoSIGALRM could be received before child_process is created (Jason Crawford)
Ton Voon [Fri, 17 Feb 2006 09:08:08 +0000 (09:08 +0000)]
SIGALRM could be received before child_process is created (Jason Crawford)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1317 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoset LC_NUMERIC to POSIX in check_procs.c
M. Sean Finney [Fri, 17 Feb 2006 06:24:53 +0000 (06:24 +0000)]
set LC_NUMERIC to POSIX in check_procs.c

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1316 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoIf a mysql server has anonymous login, tests will always fail
Ton Voon [Wed, 1 Feb 2006 13:23:38 +0000 (13:23 +0000)]
If a mysql server has anonymous login, tests will always fail

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1315 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNeed to distribute perl test file
Ton Voon [Wed, 1 Feb 2006 11:53:24 +0000 (11:53 +0000)]
Need to distribute perl test file

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1314 f882894a-f735-0410-b71e-b25c423dba1c

18 years agocheck_mysql_query included
Ton Voon [Tue, 31 Jan 2006 16:48:33 +0000 (16:48 +0000)]
check_mysql_query included

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1313 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNote on MacOSX difference in mysql package
Ton Voon [Tue, 31 Jan 2006 16:47:28 +0000 (16:47 +0000)]
Note on MacOSX difference in mysql package

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1312 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoClean compile of check_mysql_query on MacOSX
Ton Voon [Tue, 31 Jan 2006 16:45:29 +0000 (16:45 +0000)]
Clean compile of check_mysql_query on MacOSX

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1311 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoSort ordering of tests
Ton Voon [Tue, 31 Jan 2006 15:40:20 +0000 (15:40 +0000)]
Sort ordering of tests

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1310 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAdding check_mysql_query, using new ranges and threshold checking
Ton Voon [Tue, 31 Jan 2006 14:52:49 +0000 (14:52 +0000)]
Adding check_mysql_query, using new ranges and threshold checking

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1309 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoExtra explanation in tests
Ton Voon [Tue, 31 Jan 2006 14:37:11 +0000 (14:37 +0000)]
Extra explanation in tests

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1308 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoFixed invalid free
Ton Voon [Tue, 31 Jan 2006 14:36:23 +0000 (14:36 +0000)]
Fixed invalid free

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1307 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoUpdated instructions on using libtap as configure option changed
Ton Voon [Tue, 31 Jan 2006 10:06:10 +0000 (10:06 +0000)]
Updated instructions on using libtap as configure option changed

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1306 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoChanged configure option to --with-libtap-srcdir because requires
Ton Voon [Tue, 31 Jan 2006 10:05:20 +0000 (10:05 +0000)]
Changed configure option to --with-libtap-srcdir because requires
tap.h as well as tap.o

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1305 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoClearly defined thresholds & ranges in docs. Added get_status routine. Added
Ton Voon [Mon, 30 Jan 2006 22:24:31 +0000 (22:24 +0000)]
Clearly defined thresholds & ranges in docs. Added get_status routine. Added
set_thresholds routine. Tests enhanced to check new routines

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1304 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAdded libtap tests for utils.c library functions. Removed redundant
Ton Voon [Mon, 30 Jan 2006 16:10:50 +0000 (16:10 +0000)]
Added libtap tests for utils.c library functions. Removed redundant
test files

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1303 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoHave to use own id for cvs checkout. Change compile server because
Ton Voon [Sat, 21 Jan 2006 21:46:38 +0000 (21:46 +0000)]
Have to use own id for cvs checkout. Change compile server because
old one not working consistently

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1302 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoBreak out of testing if a new parameter is required
Ton Voon [Mon, 19 Dec 2005 09:25:19 +0000 (09:25 +0000)]
Break out of testing if a new parameter is required

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1301 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAdded ability to output critical on error. Fixed open so it properly fails if the...
Harper Mann [Fri, 16 Dec 2005 18:41:45 +0000 (18:41 +0000)]
Added ability to output critical on error. Fixed open so it properly fails if the log file open throws an error, turned on -w in the perl call, fixed warnings

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1300 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoDisplay errors with slave queries correctly. Added extra tests for slaves
Ton Voon [Thu, 15 Dec 2005 17:06:55 +0000 (17:06 +0000)]
Display errors with slave queries correctly. Added extra tests for slaves

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1299 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNew 3 parameter version of getTestParameters. Updated check_disk.t to reflect.
Ton Voon [Thu, 15 Dec 2005 15:19:55 +0000 (15:19 +0000)]
New 3 parameter version of getTestParameters. Updated check_disk.t to reflect.
Added notes re: testing in developer guidelines.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1298 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoAllow directories and links to be tested by check_file_age. Sanitise output.
Ton Voon [Thu, 15 Dec 2005 15:17:49 +0000 (15:17 +0000)]
Allow directories and links to be tested by check_file_age. Sanitise output.
Added tests

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1297 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNagiosplug bug 1266977. Added code to insert the closing </A> after the plugin outpu...
Harper Mann [Wed, 7 Dec 2005 19:32:37 +0000 (19:32 +0000)]
Nagiosplug bug 1266977.  Added code to insert the closing </A> after the plugin output but before the performance output.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1296 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNo floorf on Solaris 9 (Jon Vandegrift - 1374705)
Ton Voon [Wed, 7 Dec 2005 15:10:27 +0000 (15:10 +0000)]
No floorf on Solaris 9 (Jon Vandegrift - 1374705)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1295 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoSupport for Nagios 1 and Nagios 2 status files (Gerhard Lausser - 1296242)
Ton Voon [Fri, 2 Dec 2005 22:28:06 +0000 (22:28 +0000)]
Support for Nagios 1 and Nagios 2 status files (Gerhard Lausser - 1296242)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1294 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoIgnore temporary files created for tests
Ton Voon [Fri, 2 Dec 2005 22:25:22 +0000 (22:25 +0000)]
Ignore temporary files created for tests

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1293 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoRun longer test on redhat for spopen/pthread problem. Allow enable/disable of
Ton Voon [Thu, 1 Dec 2005 01:05:12 +0000 (01:05 +0000)]
Run longer test on redhat for spopen/pthread problem. Allow enable/disable of
pthread fix via configure option

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1292 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoNagiosplug bug # 1251096
Harper Mann [Wed, 30 Nov 2005 00:49:47 +0000 (00:49 +0000)]
Nagiosplug bug # 1251096
check_ntp wasn't properly handing a bad exit status from the external programs it calls (ntpdate and ntpq), so jitter wasn't set.  Added check of $? on close and proper error output if status from the sub program call completion is non-zero.  This includes "host not found".

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1291 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoUNKNOWN exit status was returning status of "-1", changed to "3"
Harper Mann [Tue, 29 Nov 2005 23:21:06 +0000 (23:21 +0000)]
UNKNOWN exit status was returning status of "-1", changed to "3"

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1290 f882894a-f735-0410-b71e-b25c423dba1c

18 years agoBug: 1355304 Added patch for ePN and perl warnings. Fixed some text and
Harper Mann [Tue, 29 Nov 2005 23:19:06 +0000 (23:19 +0000)]
Bug: 1355304 Added patch for ePN and perl warnings.  Fixed some text and
a warning about type comparison.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1289 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoCreate a permanent link to HEAD snapshot
Ton Voon [Fri, 18 Nov 2005 12:56:08 +0000 (12:56 +0000)]
Create a permanent link to HEAD snapshot

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1288 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoUpdated with more detailed description of UNKNOWN states
Ton Voon [Fri, 18 Nov 2005 11:56:00 +0000 (11:56 +0000)]
Updated with more detailed description of UNKNOWN states

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1287 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoFixed some compile errors with new translations. Also reintroduced formatting
Ton Voon [Wed, 16 Nov 2005 17:26:58 +0000 (17:26 +0000)]
Fixed some compile errors with new translations. Also reintroduced formatting
after discussion with Benoit

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1286 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoUpdated tests to minimise false positives. Breaking down so more obvious
Ton Voon [Tue, 15 Nov 2005 16:26:42 +0000 (16:26 +0000)]
Updated tests to minimise false positives. Breaking down so more obvious
what the tests are doing

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1285 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoAdded section re: translations
Ton Voon [Mon, 14 Nov 2005 14:43:14 +0000 (14:43 +0000)]
Added section re: translations

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1284 f882894a-f735-0410-b71e-b25c423dba1c

19 years agolocalization cleaning ...
Benoit Mortier [Mon, 14 Nov 2005 01:18:57 +0000 (01:18 +0000)]
localization cleaning ...
last commit before sleeping

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1283 f882894a-f735-0410-b71e-b25c423dba1c

19 years agostart of the cleaning of the localization
Benoit Mortier [Mon, 14 Nov 2005 00:51:44 +0000 (00:51 +0000)]
start of the cleaning of the localization

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1282 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoUpdated check_disk tests to use Test::More (Serhan Kiymaz)
Ton Voon [Sat, 12 Nov 2005 23:48:29 +0000 (23:48 +0000)]
Updated check_disk tests to use Test::More (Serhan Kiymaz)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1281 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoUsing Test::More
Ton Voon [Wed, 9 Nov 2005 17:27:36 +0000 (17:27 +0000)]
Using Test::More

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1280 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoAdded new NPTest->testCmd which returns objects back for testing
Ton Voon [Wed, 9 Nov 2005 16:40:12 +0000 (16:40 +0000)]
Added new NPTest->testCmd which returns objects back for testing
at the test script level. Updated check_swap and check_imap to this
new format

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1279 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoProblem where absolute thresholds not working on /proc/meminfo
Ton Voon [Wed, 9 Nov 2005 16:37:55 +0000 (16:37 +0000)]
Problem where absolute thresholds not working on /proc/meminfo
systems. Suffixed all variables with the unit of measurement

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1278 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoTypo with predetermined values
Ton Voon [Wed, 9 Nov 2005 16:34:50 +0000 (16:34 +0000)]
Typo with predetermined values

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1277 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoAdded copyright/license info required in submissions
Ton Voon [Wed, 9 Nov 2005 14:10:57 +0000 (14:10 +0000)]
Added copyright/license info required in submissions

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1276 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoUpdated dev guidelines to link to NagiosExchange. Removed project admin
Ton Voon [Wed, 9 Nov 2005 09:31:58 +0000 (09:31 +0000)]
Updated dev guidelines to link to NagiosExchange. Removed project admin
notes from guidelines into separate file

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1275 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoincorporated patch from Elan Ruusamäe (ahmake) to override
M. Sean Finney [Mon, 7 Nov 2005 12:46:10 +0000 (12:46 +0000)]
incorporated patch from Elan Ruusamäe (ahmake) to override
program autodetection (see Feature Requests-1341528).  i would
not call this quite complete just yet (i'll explain more in the
tracker), but should be functional and useful enough to commit
now, in any case.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1274 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoFixed --mismatch option for check_tcp. Added tests into check_imap
Ton Voon [Fri, 4 Nov 2005 09:38:24 +0000 (09:38 +0000)]
Fixed --mismatch option for check_tcp. Added tests into check_imap
(Rick Fey - 1339134)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1273 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoAdding new tinderbox build script
Ton Voon [Thu, 3 Nov 2005 15:21:31 +0000 (15:21 +0000)]
Adding new tinderbox build script

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1272 f882894a-f735-0410-b71e-b25c423dba1c

19 years agoInvalid mount point doesn't make sense because most df implementations
Ton Voon [Thu, 3 Nov 2005 15:13:13 +0000 (15:13 +0000)]
Invalid mount point doesn't make sense because most df implementations
would work out the actual mount point. And fixed typo in check_procs.t

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1271 f882894a-f735-0410-b71e-b25c423dba1c