summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2006-05-02New check_ntp and check_apt plugins by SeanTon Voon1-0/+4
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1387 f882894a-f735-0410-b71e-b25c423dba1c
2006-05-01- check_ntp:M. Sean Finney6-98/+174
- now roughly feature-complete. - various bugfixes, esp. offset calculation. - enhanced the asynchronous offset polling to set requests that haven't recieved a response in >= 1 second to stale and retransmit them, which results in much better performance on unreliable networks. - we only spend timeout/2 seconds polling offsets, and if we don't get everything by that point we work with what we have and set status to warning/critical depending on how much data we have. - set the same defaults as the perl script. - commit changes to configure.in to support automatic building of check_apt (if apt-get is installed and regex libraries available) and check_ntp (unconditionally), now defaulting to check_ntp.c instead of the perl script. if this is an issue we can back out the commit of course. an eye should be kept on check_ntp building and running correctly in different environments, esp. 64-bit and big-endian platforms, and those with more "esoteric" API's (do any of the platforms not have poll()?). - similar changes to Makefile.am's. - common.h: add statement to include sys/poll.h - runcmd.c: exit STATE_UNKNOWN if execve() fails. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1386 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-28Remove stupid error where pst3 was always compiledTon Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1385 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-28Added pst3 into distribution (Jason Kau - 1476451)Ton Voon2-10/+7
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1384 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-27Internal version of basename if one not found in systemTon Voon5-8/+36
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1383 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-19Fix check_nagios tests on MacOSX 10.4Ton Voon1-7/+13
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1382 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-19ChangeLog update - release pendingrelease-1.4.3Subhendu Ghosh1-1227/+2082
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1380 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-19version update - release pendingSubhendu Ghosh2-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1379 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-17Final commit of fr.poBenoit Mortier1-2/+116
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1378 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-17another big chunk of fr.poBenoit Mortier1-25/+284
Still 20 to go ;) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1377 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-16big revision of po file for 1.4.3Benoit Mortier1-252/+254
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1376 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-15second part of fr.po updatingBenoit Mortier1-636/+168
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1375 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-14updated pot fileBenoit Mortier3-4126/+4281
sarted updating fr.po for nagios 1.4.3 git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1374 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-12the offset_requests are now parallelized. still stuff needs to beM. Sean Finney1-62/+105
done (conveniently marked with XXX), but on well behaving networks the plugin should behave more or less identical to check_ntp.pl now. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1373 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-12added a currently unused but "good for reference" version of offset_requestM. Sean Finney1-0/+76
which attempts to behave more like ntpdate, but this doesn't yet and the code isn't actually used yet. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1372 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-11another big code-commit to check_ntp. jitter calculations now work, andM. Sean Finney1-22/+247
the program is becoming much closer on the packet-for-packet level to how check_ntp.pl behaves. i'll send an email in the morning :) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1371 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-06Stop coredump on Solaris if arg not specified (Jason Kau - 1465288)Ton Voon2-1/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1370 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-05Notice added re: check_udp in next releaseTon Voon1-0/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1369 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-05Use pid_t for pids (1463853)Ton Voon1-3/+3
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1368 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-05Allow multiple -k parameters (Gerd Mueller - 1457726)Ton Voon2-7/+26
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1367 f882894a-f735-0410-b71e-b25c423dba1c
2006-04-05finally??? cvs works again???? let me dig up my week-old cvsM. Sean Finney1-51/+144
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
2006-03-29New function to for escaped strings from command line for send/quit.Ton Voon5-33/+86
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
2006-03-29Will die if signal received from a testCmdTon Voon1-2/+5
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1364 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-29Allow 1 second delay in check_udp timeoutTon Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1363 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-29Fix possible timeout issue on hostname_invalidTon Voon1-1/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1362 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-29Fix test if response time is one secondTon Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1361 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-29now support for detecting critical/security updates, which setsM. Sean Finney1-8/+24
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
2006-03-27Set timeout within nc, rather than the test scriptTon Voon1-5/+5
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1359 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-27Fixed bug with malloc of wrong sizeTon Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1358 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-24Fixing defaults to workTon Voon1-3/+3
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1357 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-24Reintroduced --with-mysql configure option. Note about SSL cleanupTon Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1356 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-24-C now implies -S/--ssl as wellTon Voon1-10/+8
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1355 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-24Tests converted to new styleTon Voon2-29/+52
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1354 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-24udp checks require and send and receive option. Tests updated so ifTon Voon2-23/+50
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
2006-03-23- addition of include/exclude option for package names in check_apt,M. Sean Finney1-31/+117
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
2006-03-23check_disk now errors if a specified directory does not exist (cf df /foo)Ton Voon3-8/+14
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1351 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-23Some versions of Test::More do not like the m#foo# syntaxTon Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1350 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-23Incorrect output when checking non-existent disk (John Rouillard - 1326050)Ton Voon3-4/+25
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1349 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-23more work on check_apt. more graceful error handling and informationM. Sean Finney1-20/+99
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
2006-03-22Reinstated --with-mysql optionTon Voon2-16/+28
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1347 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22Added warning and critical response times (John Rouillard - 1343159)Ton Voon2-4/+34
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1346 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22Convert to new style testsTon Voon1-18/+36
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1345 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22Options to change line ends for -s and -q (John Rouillard - 1346104)Ton Voon2-4/+34
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1344 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22Remove PATH restrictionTon Voon1-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1343 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22New style tests. Cleanup of presentation of help. Added '' around -a checksTon Voon2-63/+63
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1342 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22Typo (Thomas Guettler - 1433447)Ton Voon1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1341 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22Remove hardlink to /bin/sed. Leave to PATH (Abs - 1391483)Ton Voon2-4/+4
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1340 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22initial version of a check_apt plugin... not editing configure/Makefile.am'sM. Sean Finney1-0/+173
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
2006-03-21Stop check_dns from compiling if nslookup does not exist (Sakari Lehtonen -Ton Voon2-8/+3
1412721) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1338 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-21Updated to new Test::More method for testingTon Voon1-8/+9
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1337 f882894a-f735-0410-b71e-b25c423dba1c