Code

nagiosplug.git
16 years agoIf the TMPDIR environment variable is set, use that instead of "/tmp" as
Holger Weiss [Fri, 27 Jul 2007 15:49:01 +0000 (15:49 +0000)]
If the TMPDIR environment variable is set, use that instead of "/tmp" as
the installation directory.

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

16 years agoThe "--serverip" and "--requestedip" options now accept host names, too.
Holger Weiss [Thu, 26 Jul 2007 17:32:37 +0000 (17:32 +0000)]
The "--serverip" and "--requestedip" options now accept host names, too.
This doesn't quite fit the option names and so far I haven't changed the
"--help" output which currently only talks about IP addresses.  However,
I don't see why resolving host names should not be supported.

Also note that for the moment, I added a quick'n'dirty resolve_host()
function which should really go into netutils.c.  I just wanted to think
about its interface a bit more before providing such a function globally.

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

16 years agoNew "-m, --mac" option which allows for specifying the MAC address to
Holger Weiss [Thu, 26 Jul 2007 12:38:53 +0000 (12:38 +0000)]
New "-m, --mac" option which allows for specifying the MAC address to
use in the DHCP request.

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

16 years agoMake sure strncpy(3)d buffers are nul-terminated.
Holger Weiss [Thu, 26 Jul 2007 00:46:42 +0000 (00:46 +0000)]
Make sure strncpy(3)d buffers are nul-terminated.

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

16 years agoA few minor fixes/improvements which were included with (but unrelated
Holger Weiss [Thu, 26 Jul 2007 00:07:19 +0000 (00:07 +0000)]
A few minor fixes/improvements which were included with (but unrelated
to) the "--unicast" patch (Andreas Ericsson and Heiti Ernits - 1218235)

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

16 years agoNew "-u, --unicast" option which gives check_dhcp the ability to mimic a
Holger Weiss [Thu, 26 Jul 2007 00:02:28 +0000 (00:02 +0000)]
New "-u, --unicast" option which gives check_dhcp the ability to mimic a
DHCP relay server in order to check remote subnets (Heiti Ernits and
Andreas Ericsson - 1218235)

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

16 years agoRemoving all .cvsignore files
Ton Voon [Tue, 24 Jul 2007 00:35:42 +0000 (00:35 +0000)]
Removing all .cvsignore files

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

16 years agoUpdated to use svn instead of cvs
Ton Voon [Tue, 24 Jul 2007 00:35:16 +0000 (00:35 +0000)]
Updated to use svn instead of cvs

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

16 years agoAdd "Connection: close" to the HTTP request header, which tells HTTP/1.1
Holger Weiss [Sat, 21 Jul 2007 16:29:01 +0000 (16:29 +0000)]
Add "Connection: close" to the HTTP request header, which tells HTTP/1.1
servers to close the connection after completion of the response.  This
should be compatible with HTTP/1.0, as HTTP/1.0 allows for custom header
fields which should be ignored if not recognized by the server.  With
some server configurations, the server would keep the connection alive
without this header line (despite the plugin requesting HTTP/1.0),
resulting in the plugin running into either the server's or it's own
timeout (reported by Roman Schliessmeyer and Jesse Morgan via IRC).

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

16 years agoMake ps column count in zombie detection less restrictive. Thanks to Andrew Elwell...
Matthias Eble [Sun, 15 Jul 2007 15:21:51 +0000 (15:21 +0000)]
Make ps column count in zombie detection less restrictive. Thanks to Andrew Elwell (#1280470)

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

16 years agoFixed segfault in argument processing. Thanks to Christoph Schell (#1742066)
Matthias Eble [Sat, 14 Jul 2007 19:36:48 +0000 (19:36 +0000)]
Fixed segfault in argument processing. Thanks to Christoph Schell (#1742066)

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

16 years agocheck_ntp: Fixed typo in typo in argument sanity check. Thanks to Aurelien Bompard...
Matthias Eble [Sat, 14 Jul 2007 18:30:21 +0000 (18:30 +0000)]
check_ntp: Fixed typo in typo in argument sanity check. Thanks to Aurelien Bompard (#1753506)

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

16 years agoAdded examples for new features to check_disk
Matthias Eble [Tue, 10 Jul 2007 20:45:48 +0000 (20:45 +0000)]
Added examples for new features to check_disk

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

16 years agoCheck_disk now calls stat() for all filesystems to check.
Matthias Eble [Tue, 10 Jul 2007 20:18:55 +0000 (20:18 +0000)]
Check_disk now calls stat() for all filesystems to check.
Check_disk prints an strerror() message if the call of stat() fails.

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

16 years agoAdded -v/--verbose argument to call ldap_perror() for detailed messages on failure.
Matthias Eble [Sat, 7 Jul 2007 22:20:40 +0000 (22:20 +0000)]
Added -v/--verbose argument to call ldap_perror() for detailed messages on failure.

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

16 years agoChanged output order of print_revision
Matthias Eble [Sat, 7 Jul 2007 12:02:45 +0000 (12:02 +0000)]
Changed output order of print_revision
print_revision now uses clean_revstring

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

16 years agoChanged print_revision output order in utils.pm
Matthias Eble [Sat, 7 Jul 2007 11:55:48 +0000 (11:55 +0000)]
Changed print_revision output order in utils.pm

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

16 years agosubstituted $ID$ through $Revision$ in print_revision call
Matthias Eble [Sat, 7 Jul 2007 11:54:29 +0000 (11:54 +0000)]
substituted $ID$ through $Revision$ in print_revision call

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

16 years agoChanged order in -V/--version output
Matthias Eble [Sat, 7 Jul 2007 11:40:29 +0000 (11:40 +0000)]
Changed order in -V/--version output
Fixed -V output for check_log and check_oracle

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

16 years agoAdded hint to avoid using the boolean type in C as discussed on the devel list
Matthias Eble [Fri, 6 Jul 2007 23:03:39 +0000 (23:03 +0000)]
Added hint to avoid using the boolean type in C as discussed on the devel list

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

16 years agoFixed default behaviour of check_ldaps
Matthias Eble [Wed, 20 Jun 2007 11:09:47 +0000 (11:09 +0000)]
Fixed default behaviour of check_ldaps

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

16 years agoClarified check_ldaps behaviour. New arguments to explicitly select secure connect...
Matthias Eble [Wed, 20 Jun 2007 11:00:20 +0000 (11:00 +0000)]
Clarified check_ldaps behaviour. New arguments to explicitly select secure connect behaviour (--starttls/--ssl).

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

16 years agoadded -V/--version to check_cluster
Matthias Eble [Wed, 20 Jun 2007 09:01:07 +0000 (09:01 +0000)]
added -V/--version to check_cluster

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

16 years agoMake Linux specific plugin check_ide_smart build if appropriate headers are found
Matthias Eble [Mon, 18 Jun 2007 20:20:56 +0000 (20:20 +0000)]
Make Linux specific plugin check_ide_smart build if appropriate headers are found

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

16 years agoMinor fixes.
Holger Weiss [Sun, 17 Jun 2007 19:34:55 +0000 (19:34 +0000)]
Minor fixes.

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

16 years agoFix buffer overflow vulnerabilities when parsing HTTP redirect
Holger Weiss [Sun, 17 Jun 2007 19:22:51 +0000 (19:22 +0000)]
Fix buffer overflow vulnerabilities when parsing HTTP redirect
'Location:' strings using sscanf(3) (Nobuhiro Ban - 1687867)

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

16 years agoWhen following redirects, the plugin supported 'Location:' header fields
Holger Weiss [Fri, 15 Jun 2007 18:37:13 +0000 (18:37 +0000)]
When following redirects, the plugin supported 'Location:' header fields
which spanned multiple lines.  However, it was not checked whether extra
lines are preceeded with white space, which could lead to the following
header field name being interpreted as the value of the 'Location:'
field if the latter was empty for some reason.

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

16 years ago`host_name' is a NULL pointer if the "-I" flag is used instead of "-H",
Holger Weiss [Fri, 15 Jun 2007 18:31:37 +0000 (18:31 +0000)]
`host_name' is a NULL pointer if the "-I" flag is used instead of "-H",
so use `server_address' instead.  Fixes a possible segfault when
following redirects to relative URLs (reported by Ingo Lantschner).

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

16 years agoFixed some syntax errors to make check_ide_smart build
Matthias Eble [Wed, 13 Jun 2007 09:43:28 +0000 (09:43 +0000)]
Fixed some syntax errors to make check_ide_smart build

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

16 years agoAdd "-v" to help/usage output.
Holger Weiss [Tue, 12 Jun 2007 23:18:13 +0000 (23:18 +0000)]
Add "-v" to help/usage output.

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

16 years agoRemoved debug line
Matthias Eble [Tue, 12 Jun 2007 07:13:02 +0000 (07:13 +0000)]
Removed debug line

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

16 years agoFixed problem with popen.c not parsing --longopt='foo bar' correctly (Daniel Bimschas...
Matthias Eble [Mon, 11 Jun 2007 20:54:07 +0000 (20:54 +0000)]
Fixed problem with popen.c not parsing --longopt='foo bar' correctly (Daniel Bimschas #1291987)

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

16 years agoRemoved duplicate names
Ton Voon [Mon, 4 Jun 2007 09:07:52 +0000 (09:07 +0000)]
Removed duplicate names

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

16 years agoFor 1.4.9 release
Ton Voon [Mon, 4 Jun 2007 08:58:13 +0000 (08:58 +0000)]
For 1.4.9 release

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

16 years agoMinor corrections to test_tcp.c
Matthias Eble [Sun, 3 Jun 2007 15:58:22 +0000 (15:58 +0000)]
Minor corrections to test_tcp.c

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

16 years agoMakefile.am changes for test_tcp.c
Matthias Eble [Sun, 3 Jun 2007 15:14:15 +0000 (15:14 +0000)]
Makefile.am changes for test_tcp.c

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

16 years agoAdded test cases for utils_tcp
Matthias Eble [Sun, 3 Jun 2007 15:00:34 +0000 (15:00 +0000)]
Added test cases for utils_tcp

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

16 years agoMoved check_tcp's expect string testing into utils_tcp for testing purposes.
Matthias Eble [Sun, 3 Jun 2007 14:40:13 +0000 (14:40 +0000)]
Moved check_tcp's expect string testing into utils_tcp for testing purposes.
Added -A/--all flag to test for every expect string passed.

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

16 years agoFix possible check_http segfaults when following HTTP redirects.
Holger Weiss [Fri, 1 Jun 2007 23:11:46 +0000 (23:11 +0000)]
Fix possible check_http segfaults when following HTTP redirects.

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

16 years agoFix an off-by-one error where a realloc(3) call doesn't allocate space
Holger Weiss [Fri, 1 Jun 2007 23:08:24 +0000 (23:08 +0000)]
Fix an off-by-one error where a realloc(3) call doesn't allocate space
for nul-termination (Aravind Gottipati - 1729692)

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

16 years agoCall the SSL library initialization functions only once (not for every
Holger Weiss [Fri, 1 Jun 2007 22:57:31 +0000 (22:57 +0000)]
Call the SSL library initialization functions only once (not for every
SSL connection).

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

16 years agoSave an entire CPU cycle if c points to NULL already.
Holger Weiss [Fri, 1 Jun 2007 17:06:33 +0000 (17:06 +0000)]
Save an entire CPU cycle if c points to NULL already.

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

16 years agoSet the pointers to the SSL and SSL_CTX objects back to NULL after
Holger Weiss [Fri, 1 Jun 2007 16:42:07 +0000 (16:42 +0000)]
Set the pointers to the SSL and SSL_CTX objects back to NULL after
freeing them in np_net_ssl_cleanup().  This fixes a check_http segfault
if an SSL site redirects to a non-SSL one (reported by Aravind Gottipati
via IRC).

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

16 years agoFix segfault when -e is specified multiple times. Thanks to John Rouillard and Ralph...
Matthias Eble [Tue, 29 May 2007 20:01:26 +0000 (20:01 +0000)]
Fix segfault when -e is specified multiple times. Thanks to John Rouillard and Ralph Roessner (#1475899)

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

16 years agoNo more warn/crit values in performance data if -w and -c are not specified.
Matthias Eble [Tue, 29 May 2007 19:11:42 +0000 (19:11 +0000)]
No more warn/crit values in performance data if -w and -c are not specified.
Thanks to Simon Bellwood (#1181554)

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

16 years agocheck_snmp don't warn anymore if something is printed on stderr
Thomas Guyot-Sionnest [Tue, 29 May 2007 05:22:32 +0000 (05:22 +0000)]
check_snmp don't warn anymore if something is printed on stderr

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

16 years agochange a bunch of whitespaces (no code was harmed)
Thomas Guyot-Sionnest [Tue, 29 May 2007 04:25:24 +0000 (04:25 +0000)]
change a bunch of whitespaces (no code was harmed)

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

16 years agocheck_oracle does not need a valid ORACLE_HOME if called with --db. Thanks to Jason...
Matthias Eble [Sun, 27 May 2007 14:49:54 +0000 (14:49 +0000)]
check_oracle does not need a valid ORACLE_HOME if called with --db. Thanks to Jason Martin (#1505551)

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

16 years agoadded functions to utils_base:
M. Sean Finney [Sun, 27 May 2007 13:46:32 +0000 (13:46 +0000)]
added functions to utils_base:
  np_check_if_root() - returns nonzero if geteuid()==0
  np_warn_if_not_root() - uses the above to print an informative warning
added uses of these functions to check_dhcp and check_icmp.

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

16 years agoTest for new functionality in negate (not automatically run in make test)
Ton Voon [Thu, 24 May 2007 08:53:50 +0000 (08:53 +0000)]
Test for new functionality in negate (not automatically run in make test)

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

16 years agoTests for check_dummy
Ton Voon [Thu, 24 May 2007 08:35:53 +0000 (08:35 +0000)]
Tests for check_dummy

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

16 years agoUpdate many strings in check_http to get more consistent output
Thomas Guyot-Sionnest [Wed, 23 May 2007 08:22:33 +0000 (08:22 +0000)]
Update many strings in check_http to get more consistent output
Update translation files; fix all check_http changes in French and most changes in German.

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

17 years agoMake check_tcp.t compatible with picky web servers.
Thomas Guyot-Sionnest [Fri, 18 May 2007 07:17:59 +0000 (07:17 +0000)]
Make check_tcp.t compatible with picky web servers.

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

17 years agoAdd missing options to the usage output.
Holger Weiss [Sun, 13 May 2007 20:02:08 +0000 (20:02 +0000)]
Add missing options to the usage output.

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

17 years agocheck_dhcp now adds mandatory end option (Thanks to Enrico Scholz - #1675306)
Matthias Eble [Sun, 13 May 2007 12:28:30 +0000 (12:28 +0000)]
check_dhcp now adds mandatory end option (Thanks to Enrico Scholz - #1675306)

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

17 years agoFixed glibc error caused in utils_base.c due to uninitialized thresholds struct ...
Matthias Eble [Sat, 12 May 2007 07:45:36 +0000 (07:45 +0000)]
Fixed glibc error caused in utils_base.c due to uninitialized thresholds struct (spotted on ubundu 6.06 LTS).

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

17 years agoUpdating gettext files from coreutils-6.9. mkinstalldirs needs to be in
Ton Voon [Sat, 12 May 2007 00:49:26 +0000 (00:49 +0000)]
Updating gettext files from coreutils-6.9. mkinstalldirs needs to be in
build-aux for some systems without gettext natively. Also have at top level,
though gettext documentation says file not neceesary

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

17 years agosmall typo in --help
Matthias Eble [Wed, 9 May 2007 09:16:33 +0000 (09:16 +0000)]
small typo in --help

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

17 years agoFixed --help output (Ask Bjoern Hansen - #1714823)
Matthias Eble [Wed, 9 May 2007 09:09:02 +0000 (09:09 +0000)]
Fixed --help output (Ask Bjoern Hansen - #1714823)

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

17 years agoadded testcase to verify that old positional arguments only select one path
Matthias Eble [Wed, 9 May 2007 08:16:44 +0000 (08:16 +0000)]
added testcase to verify that old positional arguments only select one path

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

17 years agofixed backward incompatibility introduced in 1.4.8 where all partitions are selected,
Matthias Eble [Thu, 3 May 2007 20:43:50 +0000 (20:43 +0000)]
fixed backward incompatibility introduced in 1.4.8 where all partitions are selected,
if path is specified as last argument (without using -p).
Thanks to Emil Michles (Emilis) on #nagios

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

17 years agoMaking Solaris happy
Thomas Guyot-Sionnest [Wed, 2 May 2007 10:11:58 +0000 (10:11 +0000)]
Making Solaris happy

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

17 years ago/* Nothing */
Thomas Guyot-Sionnest [Wed, 2 May 2007 05:30:11 +0000 (05:30 +0000)]
/* Nothing */

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

17 years agoFix check_time returning wrong OK when time is before the epoch on some arch
Thomas Guyot-Sionnest [Wed, 2 May 2007 05:22:31 +0000 (05:22 +0000)]
Fix check_time returning wrong OK when time is before the epoch on some arch

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

17 years agoadded test cases for check_cluster
Matthias Eble [Sat, 28 Apr 2007 21:57:17 +0000 (21:57 +0000)]
added test cases for check_cluster

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

17 years agoTest installs into temporary directories
Ton Voon [Wed, 25 Apr 2007 22:21:35 +0000 (22:21 +0000)]
Test installs into temporary directories

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

17 years agocheck_load can optionally divide by number of cpus
Ton Voon [Wed, 25 Apr 2007 22:10:13 +0000 (22:10 +0000)]
check_load can optionally divide by number of cpus

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

17 years ago#ifdef can only test a single macro, not an expression.
Holger Weiss [Mon, 23 Apr 2007 07:30:47 +0000 (07:30 +0000)]
#ifdef can only test a single macro, not an expression.

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

17 years agoRemove unused variables.
Holger Weiss [Fri, 20 Apr 2007 17:55:09 +0000 (17:55 +0000)]
Remove unused variables.

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

17 years agoInclude "utils_base.h".
Holger Weiss [Fri, 20 Apr 2007 17:46:38 +0000 (17:46 +0000)]
Include "utils_base.h".

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

17 years agoDeclare print_thresholds().
Holger Weiss [Fri, 20 Apr 2007 17:45:44 +0000 (17:45 +0000)]
Declare print_thresholds().

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

17 years agoPredeclare functions and remove unused variables.
Holger Weiss [Fri, 20 Apr 2007 17:39:52 +0000 (17:39 +0000)]
Predeclare functions and remove unused variables.

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

17 years agoUse the 'server identifier' option instead of the 'siaddr' field as the
Holger Weiss [Fri, 20 Apr 2007 17:25:40 +0000 (17:25 +0000)]
Use the 'server identifier' option instead of the 'siaddr' field as the
DHCP server address; see RFC 2131, 2. (Denis Knauf - 1667488)

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

17 years agoFix compilation of check_ldap, check_radius and check_pgsql (*ding*)
Thomas Guyot-Sionnest [Thu, 19 Apr 2007 03:46:14 +0000 (03:46 +0000)]
Fix compilation of check_ldap, check_radius and check_pgsql (*ding*)

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

17 years agoRevert my previous change to "-S/--skip" in favour of the two options
Holger Weiss [Wed, 18 Apr 2007 19:31:29 +0000 (19:31 +0000)]
Revert my previous change to "-S/--skip" in favour of the two options
"-E/--skip-stderr" and "-S/--skip-stdout".  Both of them support
omitting the number of lines to skip, in which case all output on the
respective file descriptor is skipped.  "--skip" is kept as an alias for
"--skip-stdout" for backwards compatibility with recent releases.

Also, print a message if no (non-skipped) stdout/stderr output is
available.  This fixes a segfault if the remote command prints no
output.

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

17 years agoLocalization and help fixes (Thanks Benoit M.)
Thomas Guyot-Sionnest [Sun, 15 Apr 2007 15:17:26 +0000 (15:17 +0000)]
Localization and help fixes (Thanks Benoit M.)

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

17 years agoCosmetic change
Thomas Guyot-Sionnest [Sun, 15 Apr 2007 09:03:42 +0000 (09:03 +0000)]
Cosmetic change

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

17 years agoMore details about the changes
Thomas Guyot-Sionnest [Sun, 15 Apr 2007 08:56:20 +0000 (08:56 +0000)]
More details about the changes

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

17 years agoAdd thresholds support for check_cluster + lots of standardization.
Thomas Guyot-Sionnest [Sun, 15 Apr 2007 08:50:59 +0000 (08:50 +0000)]
Add thresholds support for check_cluster + lots of standardization.
Add forgotten items to NEWS.

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

17 years agoFix bug #1344584: Counter64 values not handled correctly
Thomas Guyot-Sionnest [Sun, 15 Apr 2007 06:44:46 +0000 (06:44 +0000)]
Fix bug #1344584: Counter64 values not handled correctly

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

17 years agoWorks for me
Thomas Guyot-Sionnest [Sat, 14 Apr 2007 15:07:37 +0000 (15:07 +0000)]
Works for me

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

17 years agoUp to revision 1.35, the "-S" option skipped the specified number of
Holger Weiss [Sat, 14 Apr 2007 03:09:39 +0000 (03:09 +0000)]
Up to revision 1.35, the "-S" option skipped the specified number of
lines written to stderr.  With revision 1.36 and newer, "-S" skipped the
specified number of lines written to stdout.  Now, "-S" skips the
specified number of lines written to stderr; and if the number specified
via "-S" minus the number of lines written to stderr is larger than 0,
the difference is used as the number of lines written to stdout to skip.
Also, the "--help" output was fixed.  (Hector - 1675286)

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

17 years ago... Some CVS magic too
Thomas Guyot-Sionnest [Fri, 13 Apr 2007 11:38:24 +0000 (11:38 +0000)]
... Some CVS magic too

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

17 years agoautomake magic for check_cluster
Thomas Guyot-Sionnest [Fri, 13 Apr 2007 11:35:13 +0000 (11:35 +0000)]
automake magic for check_cluster

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

17 years agoAdd news item to nagiosplugins.org
Ton Voon [Wed, 11 Apr 2007 14:43:03 +0000 (14:43 +0000)]
Add news item to nagiosplugins.org

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

17 years ago1.4.8 release
Ton Voon [Wed, 11 Apr 2007 12:08:06 +0000 (12:08 +0000)]
1.4.8 release

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

17 years agoAdd some check_ntp translations
Thomas Guyot-Sionnest [Tue, 10 Apr 2007 07:17:55 +0000 (07:17 +0000)]
Add some check_ntp translations

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

17 years ago- Fix possibility of printing scientific numbers in perfdata
Thomas Guyot-Sionnest [Tue, 10 Apr 2007 07:17:18 +0000 (07:17 +0000)]
- Fix possibility of printing scientific numbers in perfdata
- Use fperfdata function for perfdata formatting
- Make the printing part a bit more flexible (similar to check_disk)

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

17 years agoHopefully this is correct. Need to make more changes so I'm commiting these.
Thomas Guyot-Sionnest [Tue, 10 Apr 2007 05:58:41 +0000 (05:58 +0000)]
Hopefully this is correct. Need to make more changes so I'm commiting these.

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

17 years agoFix for getting dispersion instead of jitter on older servers (like xntpd on Solaris).
Thomas Guyot-Sionnest [Wed, 4 Apr 2007 20:08:59 +0000 (20:08 +0000)]
Fix for getting dispersion instead of jitter on older servers (like xntpd on Solaris).

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

17 years agoFix the synchronization source selection on big-endian systems.
Holger Weiss [Tue, 3 Apr 2007 17:19:04 +0000 (17:19 +0000)]
Fix the synchronization source selection on big-endian systems.

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

17 years agoTemporary fix for jitter calculation
Thomas Guyot-Sionnest [Tue, 3 Apr 2007 01:31:25 +0000 (01:31 +0000)]
Temporary fix for jitter calculation

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

17 years agoDon't rely on the assumption that the size of a READSTAT response is a
Holger Weiss [Mon, 2 Apr 2007 12:39:30 +0000 (12:39 +0000)]
Don't rely on the assumption that the size of a READSTAT response is a
multiple of sizeof(ntp_assoc_status_pair).

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

17 years agoAdd libgnu.a as regex functions required
Ton Voon [Mon, 2 Apr 2007 09:28:42 +0000 (09:28 +0000)]
Add libgnu.a as regex functions required

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

17 years agoFix byte order in verbose logging
Thomas Guyot-Sionnest [Mon, 2 Apr 2007 07:32:30 +0000 (07:32 +0000)]
Fix byte order in verbose logging

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

17 years agoSeems like we don't get any jitter sometimes. While this needs to be fixed we should...
Thomas Guyot-Sionnest [Mon, 2 Apr 2007 06:00:59 +0000 (06:00 +0000)]
Seems like we don't get any jitter sometimes. While this needs to be fixed we should at least handle it gracefully.

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

17 years agocheck_http.t: - added internet_access variable to skip tests where internet access...
Matthias Eble [Sun, 1 Apr 2007 14:21:09 +0000 (14:21 +0000)]
check_http.t: - added internet_access variable to skip tests where internet access is required.
              - added host_tcp_http2 variable for a webserver serving the string 'nagios' in index
              - no tests are skipped if the new vars are not defined (existing installations)

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

17 years agoutils_disk: fixed handling if check_disk -p is a device (np_set_best_match())
Matthias Eble [Sun, 1 Apr 2007 11:17:16 +0000 (11:17 +0000)]
utils_disk: fixed handling if check_disk -p is a device (np_set_best_match())

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

17 years agoVarious check_ntp fixes
Holger Weiss [Sat, 31 Mar 2007 18:49:48 +0000 (18:49 +0000)]
Various check_ntp fixes

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

17 years agoFix an out-of-bounds memcpy(3) and add a realloc(3) error check in
Holger Weiss [Sat, 31 Mar 2007 18:48:17 +0000 (18:48 +0000)]
Fix an out-of-bounds memcpy(3) and add a realloc(3) error check in
jitter_request().

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