Code

nagiosplug.git
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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 years agoFixing some test failures
Ton Voon [Thu, 3 Nov 2005 15:04:16 +0000 (15:04 +0000)]
Fixing some test failures

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

18 years ago#995761: patch from ben o'hara to include inode calculations in
M. Sean Finney [Wed, 2 Nov 2005 08:59:33 +0000 (08:59 +0000)]
#995761: patch from ben o'hara to include inode calculations in
         check_disk.c.

previous commit also had a patch for smtp auth support, but i accidentally
sent a blank commit message.

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

18 years agocheck_smtp.c
M. Sean Finney [Wed, 2 Nov 2005 08:47:26 +0000 (08:47 +0000)]
check_smtp.c

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

18 years agocode cleanups, largely resulting from turning on -Wall. mostly
M. Sean Finney [Mon, 31 Oct 2005 20:03:19 +0000 (20:03 +0000)]
code cleanups, largely resulting from turning on -Wall.  mostly
unused variables and explicit casting issues, but there were a
couple gotchas in there too.

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

18 years agoturned on -Wall in plugins/Makefile.am via AM_CFLAGS. shouldn't keep
M. Sean Finney [Sun, 30 Oct 2005 22:45:54 +0000 (22:45 +0000)]
turned on -Wall in plugins/Makefile.am via AM_CFLAGS.  shouldn't keep
our heads in the sand for potential errors, after all :)

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

18 years agoanother fix from alex: check for '/' in the server_address before
M. Sean Finney [Sun, 30 Oct 2005 18:05:19 +0000 (18:05 +0000)]
another fix from alex: check for '/' in the server_address before
trying to resolve it via is_host().

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

18 years agofixes for some bugs found in my merging of the tcp socket patch
M. Sean Finney [Sun, 30 Oct 2005 10:25:26 +0000 (10:25 +0000)]
fixes for some bugs found in my merging of the tcp socket patch

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

18 years agocheck_log fixes from Ade Rixon
M. Sean Finney [Sat, 29 Oct 2005 15:38:40 +0000 (15:38 +0000)]
check_log fixes from Ade Rixon

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

18 years agopatch from nsturm: Makefile.am should have been checking for check_ldap
M. Sean Finney [Sat, 29 Oct 2005 12:46:49 +0000 (12:46 +0000)]
patch from nsturm: Makefile.am should have been checking for check_ldap
instead of check_ldaps.  the result was that check_ldaps was not being
created during the build process.

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

18 years ago- added code to allow check_tcp (via np_net_connect) work with local
M. Sean Finney [Tue, 25 Oct 2005 10:38:02 +0000 (10:38 +0000)]
- added code to allow check_tcp (via np_net_connect) work with local
  unix sockets.  some testing would be welcome.  based on idea from
  Alex Samorukov.
- also introduced a check_clamd behavior in check_tcp.

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

18 years agoinitial merging of ae's np_runcmd code into selected plugins.
M. Sean Finney [Mon, 24 Oct 2005 11:10:29 +0000 (11:10 +0000)]
initial merging of ae's np_runcmd code into selected plugins.

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

18 years agowhoops, missed this one, same as last commit
M. Sean Finney [Sun, 23 Oct 2005 12:01:06 +0000 (12:01 +0000)]
whoops, missed this one, same as last commit

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

18 years ago- compartmentalized ssl code into seperate sslutils.c
M. Sean Finney [Sun, 23 Oct 2005 11:59:43 +0000 (11:59 +0000)]
- compartmentalized ssl code into seperate sslutils.c
- ssl-related cleanups in configure.in, and now openssl/gnutls options
  automatically disable each other.

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

18 years agoall plugins now using centralized ssl functions in netutils.c
M. Sean Finney [Wed, 19 Oct 2005 20:22:00 +0000 (20:22 +0000)]
all plugins now using centralized ssl functions in netutils.c

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

18 years agoendif was a few lines off of where it should be
M. Sean Finney [Wed, 19 Oct 2005 13:05:41 +0000 (13:05 +0000)]
endif was a few lines off of where it should be

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

18 years ago- initial attempt at consolidating ssl-related code into netutils.{c,h}
M. Sean Finney [Wed, 19 Oct 2005 12:59:55 +0000 (12:59 +0000)]
- initial attempt at consolidating ssl-related code into netutils.{c,h}
- added some #ifdefs to common.h and netutils.h to prevent multiple
  inclusions (as netlibs now includes common.h)
- all ssl plugins (tcp/http/smtp) compile cleanly against gnutls, though
  certificate checking still needs to be done.
- modified configure script so you can also explicitly say "without-gnutls"
  too (otherwise if you disable openssl you have no way of disabling
  gnutls too)

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

18 years agoinitial "experimental" support for gnutls. by default openssl is still
M. Sean Finney [Tue, 18 Oct 2005 22:35:29 +0000 (22:35 +0000)]
initial "experimental" support for gnutls.  by default openssl is still
used if available, and gnutls is only used if openssl is not available
or explicitly disabled (--without-openssl).   currently the only plugin
i've verified to work is check_tcp, but i had to disable cert checking.

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

18 years agoAdded license information to README with exemption for use of OpenSSL
Ton Voon [Tue, 18 Oct 2005 09:26:20 +0000 (09:26 +0000)]
Added license information to README with exemption for use of OpenSSL

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

18 years agoRun spopen tests for Redhat ES SMP (Hans Engelen)
Ton Voon [Thu, 13 Oct 2005 11:51:15 +0000 (11:51 +0000)]
Run spopen tests for Redhat ES SMP (Hans Engelen)

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

18 years agodebian bts #313960:
M. Sean Finney [Thu, 13 Oct 2005 10:22:06 +0000 (10:22 +0000)]
debian bts #313960:
- grammatical german fixes.  i'm taking the reporter's word for it :)

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

18 years agodebian bts #268044:
M. Sean Finney [Thu, 13 Oct 2005 10:20:50 +0000 (10:20 +0000)]
debian bts #268044:
- use a "less beastly" regex for parsing ntpq output.  probably need
  some more widespread testing on this one.

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

18 years agodebian bts #296278:
M. Sean Finney [Thu, 13 Oct 2005 10:18:27 +0000 (10:18 +0000)]
debian bts #296278:
- it seems that when check_disk uses the "df" routines and is told to
  check a non-mountpoint, it would check the filesystem on which the
  directory was mounted (i.e. /var/log -> /var if no /var/log mount).
  the system-call routines now do this too.  might need a bit more
  widespread testing, but looks good for me and i did it without
  modifying any of the system-call-specific codeblocks.

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

18 years agodebian bts #307905:
M. Sean Finney [Thu, 13 Oct 2005 10:16:02 +0000 (10:16 +0000)]
debian bts #307905:
- someone changed the cmdline syntax of check game without also
  updating the usage/help function ;p

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

18 years agodebian bts #300701:
M. Sean Finney [Thu, 13 Oct 2005 10:14:33 +0000 (10:14 +0000)]
debian bts #300701:
- check_smb fix for freespace threshold parsing from the cmdline options.

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

18 years agomultiple fixes in check_smtp from debian (bts #285554):
M. Sean Finney [Thu, 13 Oct 2005 10:11:25 +0000 (10:11 +0000)]
multiple fixes in check_smtp from debian (bts #285554):
- fix for double free via SSL_CTX_free.  looks like the previous author
  knew this was a problem but didn't care enough to fix it ;p.
- use defines instead of const chars for SMTP strings.
- default to send our fqdn (via gethostbyname lookup on gethostname)
  in the HELO string, as this is an RFC/SMTP requirement.  overridable
  via cmdline.
- use EHLO instead of HELO if using STARTTLS, as it is not SMTP but
  ESMTP.
- verify the server supports STARTTLS before initializing it.
- always send QUIT before disconnecting when possible.

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

18 years agowas this plugin even working? i don't think the if/else logic
M. Sean Finney [Thu, 13 Oct 2005 09:58:12 +0000 (09:58 +0000)]
was this plugin even working?  i don't think the if/else logic
was doing what was intended.

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