Code

nagiosplug.git
16 years agoNothing
Thomas Guyot-Sionnest [Thu, 21 Aug 2008 09:41:11 +0000 (09:41 +0000)]
Nothing

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

16 years agoMisplaced comment
Thomas Guyot-Sionnest [Thu, 21 Aug 2008 04:22:46 +0000 (04:22 +0000)]
Misplaced comment

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

16 years agoComplete rewrite of the extract_value function
Thomas Guyot-Sionnest [Thu, 21 Aug 2008 04:17:35 +0000 (04:17 +0000)]
Complete rewrite of the extract_value function

The original one was flawed (easy to trigger segfaults) and did not allow some whitespaces as permitted by rfc1305. This one has been troughfully tested with tap (the testing code might get included later)

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

16 years agoTypos in comments
Thomas Guyot-Sionnest [Thu, 21 Aug 2008 04:17:25 +0000 (04:17 +0000)]
Typos in comments

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

16 years agoFix assignment written as a comparison in validate_arguments() when db_pass is NULL...
Thomas Guyot-Sionnest [Sat, 16 Aug 2008 04:47:32 +0000 (04:47 +0000)]
Fix assignment written as a comparison in validate_arguments() when db_pass is NULL (Patch from blog.barfoo.org/projects/rpms-for-sles10)

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

16 years agoFix check_fping --help output (Patch from http://blog.barfoo.org/projects/rpms-for...
Thomas Guyot-Sionnest [Sat, 16 Aug 2008 04:47:22 +0000 (04:47 +0000)]
Fix check_fping --help output (Patch from blog.barfoo.org/projects/rpms-for-sles10)

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

16 years agoTypo
Thomas Guyot-Sionnest [Sat, 16 Aug 2008 01:52:38 +0000 (01:52 +0000)]
Typo

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

16 years agoClose on fd
Ton Voon [Fri, 8 Aug 2008 16:12:00 +0000 (16:12 +0000)]
Close on fd

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

16 years agoRe-structure the HTTP 1.1 headers to prevent 301s on servers with virtual hosts
Thomas Guyot-Sionnest [Fri, 8 Aug 2008 02:25:47 +0000 (02:25 +0000)]
Re-structure the HTTP 1.1 headers to prevent 301s on servers with virtual hosts

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

16 years agoTypo in --help output
Thomas Guyot-Sionnest [Fri, 8 Aug 2008 02:08:08 +0000 (02:08 +0000)]
Typo in --help output

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

16 years agoSet -D_FORTIFY_SOURCE=2, and added a comment with link to explaination of this flag.
Thomas Guyot-Sionnest [Tue, 5 Aug 2008 11:14:40 +0000 (11:14 +0000)]
Set -D_FORTIFY_SOURCE=2, and added a comment with link to explaination of this flag.

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

16 years ago-b option now specifies ICMP data bytes instead of packet size
Matthias Eble [Mon, 28 Jul 2008 20:15:52 +0000 (20:15 +0000)]
-b option now specifies ICMP data bytes instead of packet size

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

16 years agoAdd support for packet size modification (-b)
Matthias Eble [Thu, 17 Jul 2008 07:06:33 +0000 (07:06 +0000)]
Add support for packet size modification (-b)

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

16 years agoVerbose should not have to exceed 3 as per developement guidelines
Thomas Guyot-Sionnest [Thu, 10 Jul 2008 10:03:55 +0000 (10:03 +0000)]
Verbose should not have to exceed 3 as per developement guidelines

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

16 years agoAdd -D_FORTIFY_SOURCE
Thomas Guyot-Sionnest [Thu, 10 Jul 2008 10:03:49 +0000 (10:03 +0000)]
Add -D_FORTIFY_SOURCE

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

16 years agoTypo in check_ups
Thomas Guyot-Sionnest [Thu, 10 Jul 2008 10:03:43 +0000 (10:03 +0000)]
Typo in check_ups

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

16 years agorewrote check_snmp.t to use Test::More
Matthias Eble [Wed, 9 Jul 2008 21:54:41 +0000 (21:54 +0000)]
rewrote check_snmp.t to use Test::More
added perfdata checking for string values

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

16 years agocheck_snmp now only prints perfdata for non numeric values (Joerg Linge #1867716)
Matthias Eble [Wed, 9 Jul 2008 21:53:12 +0000 (21:53 +0000)]
check_snmp now only prints perfdata for non numeric values (Joerg Linge #1867716)

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

16 years agoRemoved libtap configuration for the moment, as tinderbox builds
Ton Voon [Tue, 8 Jul 2008 10:09:11 +0000 (10:09 +0000)]
Removed libtap configuration for the moment, as tinderbox builds
are breaking

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

16 years agocheck_procs captures stderr and adds to plugin output. This is
Ton Voon [Tue, 8 Jul 2008 09:31:04 +0000 (09:31 +0000)]
check_procs captures stderr and adds to plugin output. This is
from a merge of branch nagiosplug/branches/new_threshold_syntax 1979:1982

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

16 years agoDon't try to set the "SO_BROADCAST" socket option for unicast requests.
Holger Weiss [Sun, 6 Jul 2008 12:57:11 +0000 (12:57 +0000)]
Don't try to set the "SO_BROADCAST" socket option for unicast requests.
(Also, removed the unused "DHCP_UNICAST_FLAG" macro.)

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

16 years agoUse tap.h from the libtap directory
Ton Voon [Wed, 2 Jul 2008 20:07:00 +0000 (20:07 +0000)]
Use tap.h from the libtap directory

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

16 years agoChange pst3 again, this time to remove use of kvm which is not
Ton Voon [Wed, 2 Jul 2008 20:00:08 +0000 (20:00 +0000)]
Change pst3 again, this time to remove use of kvm which is not
available in Solaris 10 non-global zones. Uses /proc, which is not
available in older versions of Solaris.

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

16 years agoFixed bug in tools/setup if docbook was run
Ton Voon [Mon, 30 Jun 2008 14:32:53 +0000 (14:32 +0000)]
Fixed bug in tools/setup if docbook was run

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

16 years agoHave to list tap_dir manually to get into make dist
Ton Voon [Mon, 30 Jun 2008 09:01:47 +0000 (09:01 +0000)]
Have to list tap_dir manually to get into make dist

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

16 years agoAdding libtap into distribution to help run C based tests
Ton Voon [Thu, 26 Jun 2008 22:00:08 +0000 (22:00 +0000)]
Adding libtap into distribution to help run C based tests

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

16 years agoFixed possible coredump. Removed one level of subroutines (Duncan Ferguson)
Ton Voon [Tue, 17 Jun 2008 14:19:17 +0000 (14:19 +0000)]
Fixed possible coredump. Removed one level of subroutines (Duncan Ferguson)

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

16 years agoAdded testcases for check_dig
Matthias Eble [Mon, 9 Jun 2008 19:47:36 +0000 (19:47 +0000)]
Added testcases for check_dig
check_dig's -l option is mandatory now (#1986306)

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

16 years agoOptimised pst3 for systems with large number of processes (Duncan Ferguson)
Ton Voon [Mon, 2 Jun 2008 16:22:35 +0000 (16:22 +0000)]
Optimised pst3 for systems with large number of processes (Duncan Ferguson)

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

16 years agoUpdated Nagios::Plugin perl modules to 0.27
Ton Voon [Mon, 2 Jun 2008 16:21:09 +0000 (16:21 +0000)]
Updated Nagios::Plugin perl modules to 0.27

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

16 years agoFix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
Thomas Guyot-Sionnest [Fri, 30 May 2008 23:38:00 +0000 (23:38 +0000)]
Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)

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

16 years agotypo
Thomas Guyot-Sionnest [Thu, 29 May 2008 10:21:50 +0000 (10:21 +0000)]
typo

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

16 years agoChanged SF file release to use sftp instead of ftp
Ton Voon [Tue, 27 May 2008 23:44:12 +0000 (23:44 +0000)]
Changed SF file release to use sftp instead of ftp

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

16 years agoPreparation for 1.4.12 release
Ton Voon [Tue, 27 May 2008 22:01:05 +0000 (22:01 +0000)]
Preparation for 1.4.12 release

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

16 years agoNot picking up solaris systems correctly for check_dhcp. Only
Ton Voon [Tue, 27 May 2008 21:52:36 +0000 (21:52 +0000)]
Not picking up solaris systems correctly for check_dhcp. Only
affected SunStudio compiles of check_dhcp (1890260 - Rob Windsor)

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

16 years agoAddition to help to state that -f will always return OK if ssh command
Ton Voon [Tue, 27 May 2008 21:31:13 +0000 (21:31 +0000)]
Addition to help to state that -f will always return OK if ssh command
is executed (Alain Dewit - 1852198)

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

16 years agoAdd additional PID column heading
Ton Voon [Tue, 27 May 2008 13:35:59 +0000 (13:35 +0000)]
Add additional PID column heading

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

16 years agocorrect typo in NEWS
Thomas Guyot-Sionnest [Mon, 26 May 2008 09:43:58 +0000 (09:43 +0000)]
correct typo in NEWS

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

16 years agoAdd a note about radiusclient
Thomas Guyot-Sionnest [Fri, 23 May 2008 09:09:17 +0000 (09:09 +0000)]
Add a note about radiusclient

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

16 years agoFix linking against OpenSSL where libdl is required
Thomas Guyot-Sionnest [Thu, 22 May 2008 08:25:41 +0000 (08:25 +0000)]
Fix linking against OpenSSL where libdl is required

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

16 years agoFixed passive option in check_by_ssh
Thomas Guyot-Sionnest [Wed, 21 May 2008 08:57:13 +0000 (08:57 +0000)]
Fixed passive option in check_by_ssh
Also:
- On non-skipped stderr, check_by_ssh now returns UNKNOWN or worse (result from command) instead of always UNKNOWN.
- Fixed passive tests and make is always run the specified number of tests (using fail if there's nothing to test).

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

16 years agoOops - forgot to remove the SKIP block (which didn't seem to work fine)
Thomas Guyot-Sionnest [Tue, 20 May 2008 11:37:27 +0000 (11:37 +0000)]
Oops - forgot to remove the SKIP block (which didn't seem to work fine)

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

16 years agoAdd check_by_ssh tests (passive checks are broken - should be fixed before next release!)
Thomas Guyot-Sionnest [Tue, 20 May 2008 11:32:39 +0000 (11:32 +0000)]
Add check_by_ssh tests (passive checks are broken - should be fixed before next release!)

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

16 years agoClobber password in check_radius process list aguments
Thomas Guyot-Sionnest [Tue, 20 May 2008 07:57:13 +0000 (07:57 +0000)]
Clobber password in check_radius process list aguments

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

16 years agoTypo
Thomas Guyot-Sionnest [Tue, 13 May 2008 09:14:45 +0000 (09:14 +0000)]
Typo

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

16 years agoAdded support for --extra-opts in all C plugins (disabled by default, see configure...
Thomas Guyot-Sionnest [Wed, 7 May 2008 10:02:42 +0000 (10:02 +0000)]
Added support for --extra-opts in all C plugins (disabled by default, see configure --help)

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

16 years agoAdded performance data to check_ping (Christian Schneemann)
Thomas Guyot-Sionnest [Wed, 7 May 2008 10:01:48 +0000 (10:01 +0000)]
Added performance data to check_ping (Christian Schneemann)

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

16 years agonegate now has the ability to replace the status text as well (-s, --substitute)
Thomas Guyot-Sionnest [Fri, 2 May 2008 09:28:15 +0000 (09:28 +0000)]
negate now has the ability to replace the status text as well (-s, --substitute)
Also changed:
 - default timeout to 11 instead of 9 (since it's recommended to have a higher timeout, and many plugins default to 10 seconds)
 - If there's no STDOUT lines returned, still returns the returned result if it's NON-ok instead of forcing it to UNKNOWN

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

16 years agoAdd socket support to check_mysql*
Thomas Guyot-Sionnest [Wed, 30 Apr 2008 12:50:52 +0000 (12:50 +0000)]
Add socket support to check_mysql*
Also clears the password from check_mysql command-line options

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

16 years agoSupport "--without-pgsql" (reported by Alex Songe via IRC).
Holger Weiss [Tue, 29 Apr 2008 14:54:09 +0000 (14:54 +0000)]
Support "--without-pgsql" (reported by Alex Songe via IRC).

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

16 years agoUse UT_THRESHOLDS_NOTES in all plugins
Thomas Guyot-Sionnest [Tue, 29 Apr 2008 09:01:48 +0000 (09:01 +0000)]
Use UT_THRESHOLDS_NOTES in all plugins

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

16 years ago--help output cleanup (plus removal of spaces on blank lines)
Thomas Guyot-Sionnest [Tue, 29 Apr 2008 09:01:31 +0000 (09:01 +0000)]
--help output cleanup (plus removal of spaces on blank lines)

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

16 years ago--help output cleanup (plus removal of spaces on blank lines)
Thomas Guyot-Sionnest [Sun, 27 Apr 2008 14:35:26 +0000 (14:35 +0000)]
--help output cleanup (plus removal of spaces on blank lines)

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

16 years agoCorrect typo and make the --help notes a bit simpler.
Thomas Guyot-Sionnest [Wed, 23 Apr 2008 08:19:13 +0000 (08:19 +0000)]
Correct typo and make the --help notes a bit simpler.

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

16 years agoCorrect the help text
Thomas Guyot-Sionnest [Thu, 17 Apr 2008 10:46:22 +0000 (10:46 +0000)]
Correct the help text

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

16 years agoAllow to repeat -a to set multiple possible addresses
Thomas Guyot-Sionnest [Thu, 17 Apr 2008 10:37:57 +0000 (10:37 +0000)]
Allow to repeat -a to set multiple possible addresses

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

16 years agocheck_ntp and check_ntp_peer now show proper jitter/stratum thresholds longopts in...
Thomas Guyot-Sionnest [Sat, 5 Apr 2008 08:02:47 +0000 (08:02 +0000)]
check_ntp and check_ntp_peer now show proper jitter/stratum thresholds longopts in --help

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

16 years agomake parse_ini die like in N::P if section isn't found
Thomas Guyot-Sionnest [Fri, 4 Apr 2008 10:11:22 +0000 (10:11 +0000)]
make parse_ini die like in N::P if section isn't found

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

16 years agoDelete obsolete files
Thomas Guyot-Sionnest [Wed, 2 Apr 2008 09:19:26 +0000 (09:19 +0000)]
Delete obsolete files

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

16 years ago- Add --enable-extra-opts configure option for compiling extra-opts support
Thomas Guyot-Sionnest [Wed, 2 Apr 2008 09:11:44 +0000 (09:11 +0000)]
- Add --enable-extra-opts configure option for compiling extra-opts support
- Auto-update po/pot files

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

16 years agofix the obvious...
Thomas Guyot-Sionnest [Tue, 1 Apr 2008 09:38:37 +0000 (09:38 +0000)]
fix the obvious...

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

16 years agonp_extra_opts now retain pointers from argv so that plugins can still overwrite sensi...
Thomas Guyot-Sionnest [Tue, 1 Apr 2008 09:31:27 +0000 (09:31 +0000)]
np_extra_opts now retain pointers from argv so that plugins can still overwrite sensitive options

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

16 years agoupdate svn:ignore property (last gnulib update added many auto-generated files)
Thomas Guyot-Sionnest [Mon, 31 Mar 2008 07:07:39 +0000 (07:07 +0000)]
update svn:ignore property (last gnulib update added many auto-generated files)

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

16 years agoFix bug with --extra-opts as last argument with no value
Thomas Guyot-Sionnest [Mon, 31 Mar 2008 07:04:07 +0000 (07:04 +0000)]
Fix bug with --extra-opts as last argument with no value
Fix problem with duplicate function name (function should eventually move to /lib)

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

16 years agoFix for last commit - I accidentaly broke my local Makefile and tests weren't being...
Thomas Guyot-Sionnest [Mon, 31 Mar 2008 05:31:14 +0000 (05:31 +0000)]
Fix for last commit - I accidentaly broke my local Makefile and tests weren't being re-compiled.

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

16 years ago- Remove the last argument of np_extra_opts
Thomas Guyot-Sionnest [Sun, 30 Mar 2008 14:02:13 +0000 (14:02 +0000)]
- Remove the last argument of np_extra_opts
- Code cleanups and comments

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

16 years agoUpdate svn:ignore property
Thomas Guyot-Sionnest [Sat, 29 Mar 2008 15:35:30 +0000 (15:35 +0000)]
Update svn:ignore property

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

16 years agowrite ini-file lookup function + tests
Thomas Guyot-Sionnest [Wed, 26 Mar 2008 09:46:27 +0000 (09:46 +0000)]
write ini-file lookup function + tests

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

16 years agoAdd extra-opts argument parsing with tests
Thomas Guyot-Sionnest [Mon, 24 Mar 2008 07:02:28 +0000 (07:02 +0000)]
Add extra-opts argument parsing with tests

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

16 years agoReplace broken usage of NAGIOS_CONFIG_PATH with a stub function (that will try to...
Thomas Guyot-Sionnest [Mon, 24 Mar 2008 06:28:46 +0000 (06:28 +0000)]
Replace broken usage of NAGIOS_CONFIG_PATH with a stub function (that will try to find a config file in the future...)
Allow NULL locator (default file/section)

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

16 years ago- Fix bug #1920671
Thomas Guyot-Sionnest [Thu, 20 Mar 2008 11:53:29 +0000 (11:53 +0000)]
- Fix bug #1920671
- Make --help output looks nice

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

16 years agoInclude test for check_procs, using input file
Ton Voon [Tue, 18 Mar 2008 10:59:55 +0000 (10:59 +0000)]
Include test for check_procs, using input file

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

16 years agoUpdated check_procs with a hidden --input-file option.
Ton Voon [Tue, 18 Mar 2008 01:21:54 +0000 (01:21 +0000)]
Updated check_procs with a hidden --input-file option.
Include some sample outputs for testing

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

16 years agoDon't run check_nagios tests on Solaris, because of pst3 requirement
Ton Voon [Mon, 17 Mar 2008 23:08:21 +0000 (23:08 +0000)]
Don't run check_nagios tests on Solaris, because of pst3 requirement

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

16 years agoAdd tests:
Thomas Guyot-Sionnest [Sun, 16 Mar 2008 18:10:47 +0000 (18:10 +0000)]
Add tests:
- DOS-newline ini file
- section defined twice

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

16 years agoparse_ini now reads the default section if the request one can't be found.
Thomas Guyot-Sionnest [Sat, 15 Mar 2008 22:42:01 +0000 (22:42 +0000)]
parse_ini now reads the default section if the request one can't be found.
All tests should return ok now.

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

16 years agoOops - this line shouldn't have been here (doesn't even work anyways) ;)
Thomas Guyot-Sionnest [Sat, 15 Mar 2008 21:51:43 +0000 (21:51 +0000)]
Oops - this line shouldn't have been here (doesn't even work anyways) ;)

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

16 years ago- Make equal-less parameters illegal
Thomas Guyot-Sionnest [Sat, 15 Mar 2008 20:47:43 +0000 (20:47 +0000)]
- Make equal-less parameters illegal
- parameters without argument after '=' are now assumed to be argument-less
- Add a testcase for space in stanza and various argument-less parameters

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

16 years agoFix handling of leading and trailing spaces in stanza
Thomas Guyot-Sionnest [Sat, 15 Mar 2008 20:34:15 +0000 (20:34 +0000)]
Fix handling of leading and trailing spaces in stanza

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

16 years agoFix segfault in test_ini.c and uncomment the affected tests
Thomas Guyot-Sionnest [Sat, 15 Mar 2008 16:17:49 +0000 (16:17 +0000)]
Fix segfault in test_ini.c and uncomment the affected tests
Fix bug in stanza parsing where full section could be skipped
Fix single-argument options

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

16 years agoThis commit consist of two changes:
Thomas Guyot-Sionnest [Sat, 15 Mar 2008 04:51:45 +0000 (04:51 +0000)]
This commit consist of two changes:
1. Make np_get_defaults return a linked list instead of a string. It will then be easy to convert the linked list back to an argument array.
2. Fix tests 3-4 of test_ini.c.

A test_ini.t was added too. parse_ini and test_ini aren't included yet in the build makefiles.

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

16 years agoAdd port to Host Header to prevent problems with non default ports (Christophe Dupre...
Matthias Eble [Sat, 15 Mar 2008 00:14:49 +0000 (00:14 +0000)]
Add port to Host Header to prevent problems with non default ports (Christophe Dupre #1881898)

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

16 years agoAdded -A/--dig-arguments to check_dig (#1889453/#1874041)
Matthias Eble [Fri, 14 Mar 2008 23:47:41 +0000 (23:47 +0000)]
Added -A/--dig-arguments to check_dig (#1889453/#1874041)

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

16 years agoEnhanced check_smtp to actually print invalid response text (#1911239)
Matthias Eble [Fri, 14 Mar 2008 22:35:29 +0000 (22:35 +0000)]
Enhanced check_smtp to actually print invalid response text (#1911239)

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

16 years agoFixed 64 bit pst3 when tries to link to gettext. Gettext linked
Ton Voon [Fri, 14 Mar 2008 15:44:27 +0000 (15:44 +0000)]
Fixed 64 bit pst3 when tries to link to gettext. Gettext linked
dynamically, if necessary

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

16 years agoThese files are generated automatically during the make process, and removed by make...
Thomas Guyot-Sionnest [Fri, 14 Mar 2008 10:17:24 +0000 (10:17 +0000)]
These files are generated automatically during the make process, and removed by make clean.

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

16 years agoPossible fix for HP-UX compile problems of regex_internal.c
Ton Voon [Tue, 11 Mar 2008 00:37:13 +0000 (00:37 +0000)]
Possible fix for HP-UX compile problems of regex_internal.c

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

16 years agoFixed link -m64 problems on pst3 for solaris. Fixed _FILE_OFFSET_BITS
Ton Voon [Tue, 11 Mar 2008 00:10:23 +0000 (00:10 +0000)]
Fixed link -m64 problems on pst3 for solaris. Fixed _FILE_OFFSET_BITS
redefinition warnings. Fixed helper ar error in ./configure

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

16 years agoReverted check_procs for solaris back to using pst3 due to truncation
Ton Voon [Thu, 28 Feb 2008 16:21:59 +0000 (16:21 +0000)]
Reverted check_procs for solaris back to using pst3 due to truncation
for argument fields using other methods

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

16 years agoFix where PERL5LIB is blank
Ton Voon [Thu, 28 Feb 2008 12:54:49 +0000 (12:54 +0000)]
Fix where PERL5LIB is blank

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

16 years agoAdded CVE MITRE tracking number
Ton Voon [Mon, 18 Feb 2008 11:23:06 +0000 (11:23 +0000)]
Added CVE MITRE tracking number

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

16 years agocheck_pgsql now builds with postgres lib v8.3 (Jan Wagner #1878972)
Matthias Eble [Wed, 13 Feb 2008 20:36:00 +0000 (20:36 +0000)]
check_pgsql now builds with postgres lib v8.3 (Jan Wagner #1878972)

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

16 years agoFix --local argument handling (Jan Wagner #1878971)
Matthias Eble [Wed, 13 Feb 2008 19:14:37 +0000 (19:14 +0000)]
Fix --local argument handling (Jan Wagner #1878971)

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

16 years agoFix broken intending (The whole file use spaces only except my last patch and 1-3...
Thomas Guyot-Sionnest [Wed, 13 Feb 2008 15:10:53 +0000 (15:10 +0000)]
Fix broken intending (The whole file use spaces only except my last patch and 1-3 other places).

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

16 years agoAdd two files to svn:ignore
Thomas Guyot-Sionnest [Wed, 13 Feb 2008 11:37:35 +0000 (11:37 +0000)]
Add two files to svn:ignore

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

16 years agoset_thresholds now let the user free the thresolds. (P.S.: When you set twice the...
Thomas Guyot-Sionnest [Wed, 13 Feb 2008 11:05:44 +0000 (11:05 +0000)]
set_thresholds now let the user free the thresolds. (P.S.: When you set twice the thresholds for a path in check disk (like using -C followed by -p ) it overrides them. All new elements are created with np_add_parameter which initialises the thresholds to NULL.)

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

16 years agoNews, nothing else.
Thomas Guyot-Sionnest [Wed, 13 Feb 2008 04:18:36 +0000 (04:18 +0000)]
News, nothing else.

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

16 years agoThis floorf workaround is Nnot needed anymore since floorf is part of Gnulib
Thomas Guyot-Sionnest [Wed, 13 Feb 2008 04:16:56 +0000 (04:16 +0000)]
This floorf workaround is Nnot needed anymore since floorf is part of Gnulib

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

16 years agoReverting patch to test 8-bit data: Still broken on Solaris (7-bit works as before)
Thomas Guyot-Sionnest [Wed, 13 Feb 2008 04:07:39 +0000 (04:07 +0000)]
Reverting patch to test 8-bit data: Still broken on Solaris (7-bit works as before)

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

16 years agoImport Gnulib floorf and base64 and removed our old base64 library.
Thomas Guyot-Sionnest [Tue, 12 Feb 2008 12:03:58 +0000 (12:03 +0000)]
Import Gnulib floorf and base64 and removed our old base64 library.

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