Code

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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 years agoAdd a warning to the verbose output if jitter_request() found no
Holger Weiss [Sat, 31 Mar 2007 17:35:08 +0000 (17:35 +0000)]
Add a warning to the verbose output if jitter_request() found no
synchronization source.

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

17 years agoAvoid division by zero.
Holger Weiss [Sat, 31 Mar 2007 17:29:50 +0000 (17:29 +0000)]
Avoid division by zero.

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

17 years agoRemove the '-O' option, as it's ignored.
Holger Weiss [Sat, 31 Mar 2007 17:25:43 +0000 (17:25 +0000)]
Remove the '-O' option, as it's ignored.

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

17 years agoUse AS_HELP_STRING instead of ACX_HELP_STRING
Ton Voon [Fri, 30 Mar 2007 15:45:57 +0000 (15:45 +0000)]
Use AS_HELP_STRING instead of ACX_HELP_STRING

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

17 years agoFix AC_CHECK_LIB for mysql_init - add dependent libraries. mysql detection
Ton Voon [Fri, 30 Mar 2007 14:08:27 +0000 (14:08 +0000)]
Fix AC_CHECK_LIB for mysql_init - add dependent libraries. mysql detection
separated into external m4 file

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

17 years agoTest Cases for check_disk's -r, -R, -C and -g
Matthias Eble [Fri, 30 Mar 2007 09:00:06 +0000 (09:00 +0000)]
Test Cases for check_disk's -r, -R, -C and -g

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

17 years agocheck_disk: minor fix for -C if bestmatch != -p
Matthias Eble [Fri, 30 Mar 2007 08:56:47 +0000 (08:56 +0000)]
check_disk: minor fix for -C if bestmatch != -p

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

17 years agocheck_disk: added regex functionality -r and -R. see np-devel mail (2007-02-10)
Matthias Eble [Fri, 30 Mar 2007 08:53:58 +0000 (08:53 +0000)]
check_disk: added regex functionality -r and -R. see np-devel mail (2007-02-10)

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

17 years agocheck_disk: added grouping functionality. see np-devel mail (2007-02-10)
Matthias Eble [Fri, 30 Mar 2007 08:52:28 +0000 (08:52 +0000)]
check_disk: added grouping functionality. see np-devel mail (2007-02-10)

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

17 years agocheck_disk -C is more flexible now. See np-devel post (2007-02-10)
Matthias Eble [Fri, 30 Mar 2007 08:48:50 +0000 (08:48 +0000)]
check_disk -C is more flexible now. See np-devel post (2007-02-10)

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

17 years agoFix argument processing (Felix Frank - 1690697)
Holger Weiss [Thu, 29 Mar 2007 17:58:28 +0000 (17:58 +0000)]
Fix argument processing (Felix Frank - 1690697)

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

17 years agoSet the "read" and "execute" bits only for "user" and "group" in order
Holger Weiss [Thu, 29 Mar 2007 17:34:26 +0000 (17:34 +0000)]
Set the "read" and "execute" bits only for "user" and "group" in order
to not overwrite "--without-world-permissions" for the root plugins.

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

17 years ago1.4.7 release
Ton Voon [Thu, 29 Mar 2007 10:32:02 +0000 (10:32 +0000)]
1.4.7 release

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

17 years agoAdding help text for jitter flags
Ton Voon [Thu, 29 Mar 2007 10:25:01 +0000 (10:25 +0000)]
Adding help text for jitter flags

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

17 years agoFix bug #1494629 - check_icmp fails after some time on FreeBSD
Thomas Guyot-Sionnest [Tue, 27 Mar 2007 06:53:57 +0000 (06:53 +0000)]
Fix bug #1494629 - check_icmp fails after some time on FreeBSD

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

17 years agoReinstate --with-nagios-user/group and new --without-group-permissions ./configure...
Ton Voon [Sun, 25 Mar 2007 13:55:14 +0000 (13:55 +0000)]
Reinstate --with-nagios-user/group and new --without-group-permissions ./configure options

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

17 years agoIncrease MAX_INPUT_BUFFER from 1k to 8k in order to increase I/O
Holger Weiss [Thu, 22 Mar 2007 17:54:16 +0000 (17:54 +0000)]
Increase MAX_INPUT_BUFFER from 1k to 8k in order to increase I/O
performance (Stefan Meier)

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

17 years agoFix bogus 'eq ( || )' constructions in check_ifoperstatus.pl.
Gavin Carr [Fri, 16 Mar 2007 12:11:46 +0000 (12:11 +0000)]
Fix bogus 'eq (  ||  )' constructions in check_ifoperstatus.pl.

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

17 years agocheck_ping's timeout interval is only +1 if ping command has a timeout value.
Ton Voon [Mon, 12 Mar 2007 10:51:06 +0000 (10:51 +0000)]
check_ping's timeout interval is only +1 if ping command has a timeout value.
Tests updated to check for 100% packet loss (always if ping has timeout), otherwise
will check for "timed out" string

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

17 years agoAdd tests for new check_icmp switch -m
Thomas Guyot-Sionnest [Sun, 11 Mar 2007 06:51:26 +0000 (06:51 +0000)]
Add tests for new check_icmp switch -m

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