Code

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

16 years agoSync to latest Gnulib
Thomas Guyot-Sionnest [Tue, 12 Feb 2008 11:07:18 +0000 (11:07 +0000)]
Sync to latest Gnulib

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

16 years agoHints re: SSL features
Ton Voon [Mon, 11 Feb 2008 21:36:55 +0000 (21:36 +0000)]
Hints re: SSL features

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

16 years agoAdded link to FAQ for redhat spopen problem
Ton Voon [Mon, 11 Feb 2008 21:23:23 +0000 (21:23 +0000)]
Added link to FAQ for redhat spopen problem

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

16 years agoBump plugins-root/ to GPLv3
Thomas Guyot-Sionnest [Thu, 31 Jan 2008 11:52:45 +0000 (11:52 +0000)]
Bump plugins-root/ to GPLv3

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

16 years agoBump plugins/ to GPLv3 (header files)
Thomas Guyot-Sionnest [Thu, 31 Jan 2008 11:45:28 +0000 (11:45 +0000)]
Bump plugins/ to GPLv3 (header files)

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

16 years agoBump plugins/ to GPLv3 (non-plugind files)
Thomas Guyot-Sionnest [Thu, 31 Jan 2008 11:27:22 +0000 (11:27 +0000)]
Bump plugins/ to GPLv3 (non-plugind files)

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

16 years agoBump plugin/ to GPLv3 (check_overcr to check_users)
Thomas Guyot-Sionnest [Thu, 31 Jan 2008 10:44:26 +0000 (10:44 +0000)]
Bump plugin/ to GPLv3 (check_overcr to check_users)

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

16 years agoBump plugins/ to GPLv3 (check_apt to check_nwstat)
Thomas Guyot-Sionnest [Wed, 30 Jan 2008 10:53:47 +0000 (10:53 +0000)]
Bump plugins/ to GPLv3 (check_apt to check_nwstat)

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

16 years agodetails...
Thomas Guyot-Sionnest [Wed, 30 Jan 2008 09:46:21 +0000 (09:46 +0000)]
details...

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

16 years agoBump lib/tests to GPLv3
Thomas Guyot-Sionnest [Wed, 30 Jan 2008 09:38:37 +0000 (09:38 +0000)]
Bump lib/tests to GPLv3

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

16 years agoBump /lib to GPLv3
Thomas Guyot-Sionnest [Wed, 30 Jan 2008 09:33:43 +0000 (09:33 +0000)]
Bump /lib to GPLv3

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

16 years agonew standardized GPLv3 header (will be applied to all C files)
Thomas Guyot-Sionnest [Wed, 30 Jan 2008 09:03:29 +0000 (09:03 +0000)]
new standardized GPLv3 header (will be applied to all C files)

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

16 years agocheck_ntp_peer now checks for the LI_ALARM flag
Thomas Guyot-Sionnest [Tue, 29 Jan 2008 10:27:06 +0000 (10:27 +0000)]
check_ntp_peer now checks for the LI_ALARM flag

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

16 years agotypo
Thomas Guyot-Sionnest [Tue, 29 Jan 2008 08:55:50 +0000 (08:55 +0000)]
typo

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

16 years agoFix bugs and flaws in best offset server selection of check_ntp_time and (deprecated...
Thomas Guyot-Sionnest [Tue, 29 Jan 2008 08:54:48 +0000 (08:54 +0000)]
Fix bugs and flaws in best offset server selection of check_ntp_time and (deprecated) check_ntp

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

16 years ago Fix help text of check_ntp_* (Bug #1880095)
Thomas Guyot-Sionnest [Sat, 26 Jan 2008 15:55:03 +0000 (15:55 +0000)]
 Fix help text of check_ntp_* (Bug #1880095)

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

16 years agoFix check_disk disk usage calculation when using --group=NAME (related to bug #1348746)
Thomas Guyot-Sionnest [Tue, 15 Jan 2008 11:34:15 +0000 (11:34 +0000)]
Fix check_disk disk usage calculation when using --group=NAME (related to bug #1348746)

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

16 years agoAdd AC_SYS_LARGEFILE to configure.in (check_disk should now work with large file...
Thomas Guyot-Sionnest [Tue, 15 Jan 2008 09:40:56 +0000 (09:40 +0000)]
Add AC_SYS_LARGEFILE to configure.in (check_disk should now work with large file systems (2TB+) on all archs that supports it)

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

16 years agoAdd a return-code check (also test cmd_run without out/err buffers)
Thomas Guyot-Sionnest [Thu, 10 Jan 2008 07:49:56 +0000 (07:49 +0000)]
Add a return-code check (also test cmd_run without out/err buffers)

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

16 years agomake test-debug generate lots of false errors in tinderbox. Turning off until we...
Thomas Guyot-Sionnest [Wed, 9 Jan 2008 04:27:52 +0000 (04:27 +0000)]
make test-debug generate lots of false errors in tinderbox. Turning off until we find a solution (so al least we can watch the tinderbox for breakages again)

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

16 years agoFixed reverse lookup damaged by previous commit
Matthias Eble [Tue, 8 Jan 2008 23:08:46 +0000 (23:08 +0000)]
Fixed reverse lookup damaged by previous commit

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

16 years agoChanged default test values for check_dns (using nagios.com)
Ton Voon [Tue, 8 Jan 2008 16:05:36 +0000 (16:05 +0000)]
Changed default test values for check_dns (using nagios.com)

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

16 years agoReverted commits 1898 and 1899 due to reversion of 1879
Ton Voon [Tue, 8 Jan 2008 11:57:24 +0000 (11:57 +0000)]
Reverted commits 1898 and 1899 due to reversion of 1879

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

16 years agoReverted commit 1879 where an invalid hostname returns UNKNOWN - back to CRITICAL
Ton Voon [Tue, 8 Jan 2008 11:51:53 +0000 (11:51 +0000)]
Reverted commit 1879 where an invalid hostname returns UNKNOWN - back to CRITICAL

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

16 years agomore r1879 fixes
Thomas Guyot-Sionnest [Tue, 8 Jan 2008 11:35:06 +0000 (11:35 +0000)]
more r1879 fixes

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

16 years agoFix test breakages for commit r1879: check_tcp now returns UNKNOWN with an invalid...
Thomas Guyot-Sionnest [Tue, 8 Jan 2008 11:27:57 +0000 (11:27 +0000)]
Fix test breakages for commit r1879: check_tcp now returns UNKNOWN with an invalid hostname on command line

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

16 years agoHide some debug output which was printed even without "-v" (under
Holger Weiss [Tue, 8 Jan 2008 02:06:35 +0000 (02:06 +0000)]
Hide some debug output which was printed even without "-v" (under
certain circumstances).

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

16 years agoFix the handling of ICMP packets which are not echo replies (such as
Holger Weiss [Tue, 8 Jan 2008 01:51:14 +0000 (01:51 +0000)]
Fix the handling of ICMP packets which are not echo replies (such as
destination unreachable messages) or which are not directed at us.

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

16 years agoGet rid of a cast which increases the required alignment.
Holger Weiss [Tue, 8 Jan 2008 01:43:49 +0000 (01:43 +0000)]
Get rid of a cast which increases the required alignment.

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

16 years agoMark some constant strings "const".
Holger Weiss [Tue, 8 Jan 2008 01:40:21 +0000 (01:40 +0000)]
Mark some constant strings "const".

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

16 years agoSupport "[IPv6]" address syntax.
Holger Weiss [Mon, 7 Jan 2008 02:04:17 +0000 (02:04 +0000)]
Support "[IPv6]" address syntax.

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

16 years agoMy assumption that "-H example.com:80" didn't work (see my previous
Holger Weiss [Mon, 7 Jan 2008 01:59:59 +0000 (01:59 +0000)]
My assumption that "-H example.com:80" didn't work (see my previous
commit) was wrong, it worked if used together with "-I".  So, here's
support for "-H [IPv6]:port", "-H [IPv6]", "-H IPv6", "-H IPv4:port",
"-H IPv4", and "-H host:port".

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

16 years agoRemove support for specifying the port number using "-H example.com:80".
Holger Weiss [Sun, 6 Jan 2008 19:45:00 +0000 (19:45 +0000)]
Remove support for specifying the port number using "-H example.com:80".
Since this didn't work anyway (because ":80" wasn't stripped from the
"host_name" after extracting the "server_port"), nobody can be using
this syntax, and it prevents "-H" from accepting IPv6 addresses
(neufeind - 1865082).  IMO, fixing it to recognize both ":80" and IPv6
addresses isn't worth it, as the ":80" syntax doesn't seem very useful
for Nagios plugins (given the way how they are usually called in Nagios
command definitions).

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

16 years agoFix base64 test (known string wasn't null-terminated)
Thomas Guyot-Sionnest [Sun, 6 Jan 2008 15:44:57 +0000 (15:44 +0000)]
Fix base64 test (known string wasn't null-terminated)

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

16 years agoFix tinderbox breakage
Thomas Guyot-Sionnest [Sun, 6 Jan 2008 07:04:10 +0000 (07:04 +0000)]
Fix tinderbox breakage

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

16 years agoIf unspecified set LDAP_OPT_SUCCESS to LDAP_SUCCESS (Sergei Haramundanis - #1498923)
Matthias Eble [Sun, 6 Jan 2008 00:10:49 +0000 (00:10 +0000)]
If unspecified set LDAP_OPT_SUCCESS to LDAP_SUCCESS (Sergei Haramundanis - #1498923)

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

16 years agoFix Bug #1862300: check_ntp_time segfault in 1.4.11 (Also apply to check_ntp)
Thomas Guyot-Sionnest [Sat, 5 Jan 2008 14:09:29 +0000 (14:09 +0000)]
Fix Bug #1862300: check_ntp_time segfault in 1.4.11 (Also apply to check_ntp)

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

16 years agocheck_dns now sorts addresses for -a support with multiple address replies (Matthias...
Matthias Eble [Sat, 5 Jan 2008 01:06:36 +0000 (01:06 +0000)]
check_dns now sorts addresses for -a support with multiple address replies (Matthias Urlichs #1724052)

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

16 years agoCleaned check_procs usage output (Ferenc Wagner #1862218)
Matthias Eble [Fri, 4 Jan 2008 22:10:37 +0000 (22:10 +0000)]
Cleaned check_procs usage output (Ferenc Wagner #1862218)

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

16 years agoFix INADDR_NONE value (for systems which don't define it).
Holger Weiss [Fri, 21 Dec 2007 14:19:08 +0000 (14:19 +0000)]
Fix INADDR_NONE value (for systems which don't define it).

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

16 years agoInclude <sys/sockio.h> (if available) to get SIOCGIFADDR defined on
Holger Weiss [Fri, 21 Dec 2007 14:17:29 +0000 (14:17 +0000)]
Include <sys/sockio.h> (if available) to get SIOCGIFADDR defined on
Solaris.

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

16 years agoNew "-s" option to specify the source IP address (thanks to Harald Jenny
Holger Weiss [Fri, 21 Dec 2007 13:25:28 +0000 (13:25 +0000)]
New "-s" option to specify the source IP address (thanks to Harald Jenny
for providing the patch and to Patrick Cervicek for looking into it!)

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

16 years agoRemove c formating from translated strings (makes translation easier)
Thomas Guyot-Sionnest [Fri, 21 Dec 2007 04:23:44 +0000 (04:23 +0000)]
Remove c formating from translated strings (makes translation easier)

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

16 years agoFix the "--help" output.
Holger Weiss [Wed, 19 Dec 2007 18:41:01 +0000 (18:41 +0000)]
Fix the "--help" output.

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

16 years agocheck_tcp now returns UNKNOWN with an invalid hostname on command line
Ton Voon [Wed, 19 Dec 2007 10:08:06 +0000 (10:08 +0000)]
check_tcp now returns UNKNOWN with an invalid hostname on command line

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

16 years agoAdd check_nt -v INSTANCES (Alessandro Ren)
Ton Voon [Mon, 17 Dec 2007 11:47:33 +0000 (11:47 +0000)]
Add check_nt -v INSTANCES (Alessandro Ren)

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

16 years agoFixed help output (Christian Mies)
Ton Voon [Thu, 13 Dec 2007 23:17:51 +0000 (23:17 +0000)]
Fixed help output (Christian Mies)

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

16 years agoNEWS edited for consistent grammar
Ton Voon [Thu, 13 Dec 2007 23:12:09 +0000 (23:12 +0000)]
NEWS edited for consistent grammar

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

16 years agoPreparation for 1.4.11
Ton Voon [Thu, 13 Dec 2007 22:39:36 +0000 (22:39 +0000)]
Preparation for 1.4.11

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

16 years agoFixed VPATH problem in plugins-root (Tom Payerle - 1789000)
Ton Voon [Thu, 13 Dec 2007 22:22:27 +0000 (22:22 +0000)]
Fixed VPATH problem in plugins-root (Tom Payerle - 1789000)

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

16 years agoUpdate to latest Nagios::Plugin
Ton Voon [Thu, 13 Dec 2007 22:09:11 +0000 (22:09 +0000)]
Update to latest Nagios::Plugin

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