Commit graph

1225 commits

Author SHA1 Message Date
Ton Voon
01886efb2b Ignore temporary files created for tests
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1293 f882894a-f735-0410-b71e-b25c423dba1c
2005-12-02 22:25:22 +00:00
Ton Voon
f9c07ec61c 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
2005-12-01 01:05:12 +00:00
Harper Mann
e5b45d0e14 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
2005-11-30 00:49:47 +00:00
Harper Mann
a079822858 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
2005-11-29 23:21:06 +00:00
Harper Mann
a15ea2615f 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
2005-11-29 23:19:06 +00:00
Ton Voon
2af811c0a6 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
2005-11-18 12:56:08 +00:00
Ton Voon
9d9834647c 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
2005-11-18 11:56:00 +00:00
Ton Voon
1ef51d42d3 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
2005-11-16 17:26:58 +00:00
Ton Voon
5c76cc6d17 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
2005-11-15 16:26:42 +00:00
Ton Voon
2f6a959999 Added section re: translations
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1284 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-14 14:43:14 +00:00
Benoit Mortier
c1d67786b0 localization cleaning ...
last commit before sleeping


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1283 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-14 01:18:57 +00:00
Benoit Mortier
c68d99cee2 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
2005-11-14 00:51:44 +00:00
Ton Voon
7741c005fa 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
2005-11-12 23:48:29 +00:00
Ton Voon
15330698d4 Using Test::More
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1280 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-09 17:27:36 +00:00
Ton Voon
6224ec3158 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
2005-11-09 16:40:12 +00:00
Ton Voon
3887355958 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
2005-11-09 16:37:55 +00:00
Ton Voon
473458b30c Typo with predetermined values
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1277 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-09 16:34:50 +00:00
Ton Voon
c052ff611f 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
2005-11-09 14:10:57 +00:00
Ton Voon
101dec2f8f 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
2005-11-09 09:31:58 +00:00
M. Sean Finney
80f2f15d36 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
2005-11-07 12:46:10 +00:00
Ton Voon
003c6dea15 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
2005-11-04 09:38:24 +00:00
Ton Voon
9d6f48dd41 Adding new tinderbox build script
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1272 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-03 15:21:31 +00:00
Ton Voon
595b2571a4 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
2005-11-03 15:13:13 +00:00
Ton Voon
f278c817e5 Fixing some test failures
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1270 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-03 15:04:16 +00:00
M. Sean Finney
5537f7b0cd #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
2005-11-02 08:59:33 +00:00
M. Sean Finney
b51ab1c069 check_smtp.c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1268 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-02 08:47:26 +00:00
M. Sean Finney
3038819fef 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
2005-10-31 20:03:19 +00:00
M. Sean Finney
0ff7d99a5e 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
2005-10-30 22:45:54 +00:00
M. Sean Finney
3d210490d5 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
2005-10-30 18:05:19 +00:00
M. Sean Finney
27675e4e6b 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
2005-10-30 10:25:26 +00:00
M. Sean Finney
e082e8565f check_log fixes from Ade Rixon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1263 f882894a-f735-0410-b71e-b25c423dba1c
2005-10-29 15:38:40 +00:00
M. Sean Finney
e2e455a53e 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
2005-10-29 12:46:49 +00:00
M. Sean Finney
16cd0c8151 - 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
2005-10-25 10:38:02 +00:00
M. Sean Finney
ceebd58040 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
2005-10-24 11:10:29 +00:00
M. Sean Finney
19100c883d 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
2005-10-23 12:01:06 +00:00
M. Sean Finney
4c77862ce3 - 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
2005-10-23 11:59:43 +00:00
M. Sean Finney
cf66a717e9 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
2005-10-19 20:22:00 +00:00
M. Sean Finney
5dd7b5dff4 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
2005-10-19 13:05:41 +00:00
M. Sean Finney
65282c7685 - 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
2005-10-19 12:59:55 +00:00
M. Sean Finney
8611341fb9 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
2005-10-18 22:35:29 +00:00
Ton Voon
f4a198463c 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
2005-10-18 09:26:20 +00:00
Ton Voon
37d64b89f9 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
2005-10-13 11:51:15 +00:00
M. Sean Finney
e36bd83847 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
2005-10-13 10:22:06 +00:00
M. Sean Finney
17edbb05d4 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
2005-10-13 10:20:50 +00:00
M. Sean Finney
9d878eab82 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
2005-10-13 10:18:27 +00:00
M. Sean Finney
91479ae909 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
2005-10-13 10:16:02 +00:00
M. Sean Finney
a0a6dd410c 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
2005-10-13 10:14:33 +00:00
M. Sean Finney
321075cd56 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
2005-10-13 10:11:25 +00:00
M. Sean Finney
866709d4b5 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
2005-10-13 09:58:12 +00:00
M. Sean Finney
f1cef328a6 check mysql now reads [client] defaults from my.cnf (debian bug #278817)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1244 f882894a-f735-0410-b71e-b25c423dba1c
2005-10-13 09:55:31 +00:00