Code

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

16 years agoAdd build files/binaries to the svn:ignore propt
Thomas Guyot-Sionnest [Wed, 12 Dec 2007 08:52:26 +0000 (08:52 +0000)]
Add build files/binaries to the svn:ignore propt

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

16 years agoRun tinderbox builds in a test debug mode using "make test-debug"
Ton Voon [Wed, 12 Dec 2007 01:27:48 +0000 (01:27 +0000)]
Run tinderbox builds in a test debug mode using "make test-debug"

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

16 years agoD'oh! single escape will be handled by Perl....
Thomas Guyot-Sionnest [Tue, 11 Dec 2007 13:54:23 +0000 (13:54 +0000)]
D'oh! single escape will be handled by Perl....

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

16 years ago- Fix check_ntp_peer returning misleading information when an ICMP message came back
Thomas Guyot-Sionnest [Tue, 11 Dec 2007 13:31:22 +0000 (13:31 +0000)]
- Fix check_ntp_peer returning misleading information when an ICMP message came back
- Try to fix some servers apparently exanding the ~ in threshold ranges in t/check_ntp.t

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

16 years agoFixed test so works on MacOSX (use /bin/sh instead of /bin/grep).
Ton Voon [Tue, 11 Dec 2007 12:05:16 +0000 (12:05 +0000)]
Fixed test so works on MacOSX (use /bin/sh instead of /bin/grep).
Added extra test for missing command - should drop into STATE_UNKNOWN

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

16 years agoAdd verbose flag so each test result is seen, rather than grouped by test
Ton Voon [Tue, 11 Dec 2007 10:58:21 +0000 (10:58 +0000)]
Add verbose flag so each test result is seen, rather than grouped by test

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

16 years agoAdding missing function calls needed for i18n (only for plugins already in POTFILES.in)
Thomas Guyot-Sionnest [Tue, 11 Dec 2007 05:57:35 +0000 (05:57 +0000)]
Adding missing function calls needed for i18n (only for plugins already in POTFILES.in)

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

16 years agoSome corrections
Thomas Guyot-Sionnest [Mon, 10 Dec 2007 08:10:57 +0000 (08:10 +0000)]
Some corrections

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

16 years agoPlenty of french translations (and a few fixes BTW)
Thomas Guyot-Sionnest [Mon, 10 Dec 2007 07:52:00 +0000 (07:52 +0000)]
Plenty of french translations (and a few fixes BTW)
 - No more fuzzy french translations
 - Only (!) 355 strings to translate

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

16 years agoOOPS! Last commit should have included these files.
Thomas Guyot-Sionnest [Mon, 10 Dec 2007 04:00:40 +0000 (04:00 +0000)]
OOPS! Last commit should have included these files.

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

16 years agoD'autres translations - Err, I mean more translations :)
Thomas Guyot-Sionnest [Mon, 10 Dec 2007 03:40:58 +0000 (03:40 +0000)]
D'autres translations - Err, I mean more translations :)

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

16 years agoMore translations
Thomas Guyot-Sionnest [Mon, 10 Dec 2007 02:30:59 +0000 (02:30 +0000)]
More translations

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

16 years agore-update the po files
Thomas Guyot-Sionnest [Mon, 10 Dec 2007 02:10:51 +0000 (02:10 +0000)]
re-update the po files

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

16 years agoSome translations
Thomas Guyot-Sionnest [Mon, 10 Dec 2007 02:07:05 +0000 (02:07 +0000)]
Some translations

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

16 years agoLocalization updates for recent changes
Matthias Eble [Mon, 10 Dec 2007 01:50:57 +0000 (01:50 +0000)]
Localization updates for recent changes

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

16 years agoFix output when response time is critical. Thanks to Nobuhiro Ban (patch #1817228)
Matthias Eble [Mon, 10 Dec 2007 01:13:55 +0000 (01:13 +0000)]
Fix output when response time is critical. Thanks to Nobuhiro Ban (patch #1817228)

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

16 years agoFixed check_load argument handling when passing non triplet thresholds. Thanks to...
Matthias Eble [Mon, 10 Dec 2007 00:19:27 +0000 (00:19 +0000)]
Fixed check_load argument handling when passing non triplet thresholds. Thanks to Jonathan Kamens (bug #1831890)

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

16 years agoGettin' ready for some translation frenzy :)
Thomas Guyot-Sionnest [Sun, 9 Dec 2007 23:36:26 +0000 (23:36 +0000)]
Gettin' ready for some translation frenzy :)

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

16 years agoupdate po files and fix a few French translations
Thomas Guyot-Sionnest [Sun, 9 Dec 2007 17:15:31 +0000 (17:15 +0000)]
update po files and fix a few French translations

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

16 years agoFix check_disk reporting OK if disk usage grows over 100% (bug #1348746).
Thomas Guyot-Sionnest [Sat, 8 Dec 2007 16:34:05 +0000 (16:34 +0000)]
Fix check_disk reporting OK if disk usage grows over 100% (bug #1348746).

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

16 years agoInteresting... For some reason it did not take this (patch barfed on it and I thought...
Thomas Guyot-Sionnest [Tue, 4 Dec 2007 12:57:35 +0000 (12:57 +0000)]
Interesting... For some reason it did not take this (patch barfed on it and I thought I had fixed it already)...

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

16 years agoMerge changes from branches/dermoth_ntp_rework (check_ntp_peer/check_ntp_time)
Thomas Guyot-Sionnest [Tue, 4 Dec 2007 12:38:56 +0000 (12:38 +0000)]
Merge changes from branches/dermoth_ntp_rework (check_ntp_peer/check_ntp_time)

 NEWS                     |   13
 plugins/Makefile.am      |    8
 plugins/check_ntp_peer.c |  628 ++++++++++++++++-------------------------------
 plugins/check_ntp_time.c |  323 ++----------------------
 plugins/t/check_ntp.t    |   92 +++++-

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

16 years agoAdd the new checks as check_ntp copies to keep full plug-in history
Thomas Guyot-Sionnest [Tue, 4 Dec 2007 12:27:04 +0000 (12:27 +0000)]
Add the new checks as check_ntp copies to keep full plug-in history

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

16 years agomissing word in comment block.
Thomas Guyot-Sionnest [Tue, 4 Dec 2007 11:14:36 +0000 (11:14 +0000)]
missing word in comment block.

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

17 years ago- Use max_state_alt in check_ntp to fix some issues with the latest commits.
Thomas Guyot-Sionnest [Fri, 23 Nov 2007 04:21:09 +0000 (04:21 +0000)]
- Use max_state_alt in check_ntp to fix some issues with the latest commits.
- Roll back the stratum check as there were issues with it and a better one is already implemented in check_ntp_peer (about to be included)

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

17 years agoAdd a max_state_alt function that put UNKNOWN and DEPENDENT ahead of OK.
Thomas Guyot-Sionnest [Fri, 23 Nov 2007 04:18:16 +0000 (04:18 +0000)]
Add a max_state_alt function that put UNKNOWN and DEPENDENT ahead of OK.

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

17 years agoFix broken usage2 in check_snmp and check_cluster
Thomas Guyot-Sionnest [Sun, 11 Nov 2007 16:29:05 +0000 (16:29 +0000)]
Fix broken usage2 in check_snmp and check_cluster
Fix check_cluster blocking some special characters for thresholds ("-", "@", "~")

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

17 years agoFix newly added stratum check (has to be decreased by one when using normal NTP packe...
Thomas Guyot-Sionnest [Sat, 10 Nov 2007 17:37:11 +0000 (17:37 +0000)]
Fix newly added stratum check (has to be decreased by one when using normal NTP packets versus control packets)

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

17 years agoAdding svn:keywords props
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 23:24:45 +0000 (23:24 +0000)]
Adding svn:keywords props

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

17 years agoAdding test for base64 lib
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 22:01:33 +0000 (22:01 +0000)]
Adding test for base64 lib

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

17 years agoMoved base64 function to /lib.
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 21:17:03 +0000 (21:17 +0000)]
Moved base64 function to /lib.

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

17 years agoNothing to see here...
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 18:24:48 +0000 (18:24 +0000)]
Nothing to see here...

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

17 years agoCredits of check_snmp fix for bug #1815362 (CVE-2007-5623)
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 17:21:31 +0000 (17:21 +0000)]
Credits of check_snmp fix for bug #1815362 (CVE-2007-5623)

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

17 years agoFix check_snmp buffer overflow (CVE-2007-5623)
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 16:05:48 +0000 (16:05 +0000)]
Fix check_snmp buffer overflow (CVE-2007-5623)

This patch comes from the Gentoo Portage tree but I couldn't find the author. I sent an email and will give credits when I get an answer.

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

17 years agoClose the socket on all exits (not just the OK one)
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 13:08:43 +0000 (13:08 +0000)]
Close the socket on all exits (not just the OK one)

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

17 years agoFix missing \n in --help output
Thomas Guyot-Sionnest [Fri, 9 Nov 2007 13:06:32 +0000 (13:06 +0000)]
Fix missing \n in --help output

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

17 years agocheck_ntp now return UNKNOWN instead of WARNING if jitter is
Thomas Guyot-Sionnest [Thu, 25 Oct 2007 21:06:08 +0000 (21:06 +0000)]
check_ntp now return UNKNOWN instead of WARNING if jitter is
unavailable. If no offset threshold is specified and
the offset is unavailable, will return UNKNOWN as well.

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

17 years agoAutomatically update website with --help output. Cosmetic
Ton Voon [Thu, 25 Oct 2007 20:43:04 +0000 (20:43 +0000)]
Automatically update website with --help output. Cosmetic
fixes for some help output

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

17 years agoHide the SNMP community string (and v3 passwords) from error messages
Holger Weiss [Wed, 24 Oct 2007 15:08:34 +0000 (15:08 +0000)]
Hide the SNMP community string (and v3 passwords) from error messages
(Bernhard Fischer on nagiosplug-devel@)

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

17 years agoAdd reparagraph option to make ChangeLog output bit prettier
Ton Voon [Mon, 15 Oct 2007 06:52:56 +0000 (06:52 +0000)]
Add reparagraph option to make ChangeLog output bit prettier

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

17 years agoFix a possible segfault if using "-f follow" and the server sends a
Holger Weiss [Sun, 14 Oct 2007 22:19:29 +0000 (22:19 +0000)]
Fix a possible segfault if using "-f follow" and the server sends a
forged "LLLLocation" header prefixed with multiple "L"s (fabiodds -
1813346)

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

17 years agoAdd stratum thresholds support for check_ntp (feature request #1703823)
Thomas Guyot-Sionnest [Thu, 11 Oct 2007 04:21:27 +0000 (04:21 +0000)]
Add stratum thresholds support for check_ntp (feature request #1703823)

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

17 years agoUse provided threshold functions (no functionnal change apart the check for overlapin...
Thomas Guyot-Sionnest [Thu, 11 Oct 2007 02:56:17 +0000 (02:56 +0000)]
Use provided threshold functions (no functionnal change apart the check for overlaping thresholds)

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

17 years agoFix regression in 1.4.10 where following redirects to relative URLs on
Holger Weiss [Tue, 2 Oct 2007 13:51:41 +0000 (13:51 +0000)]
Fix regression in 1.4.10 where following redirects to relative URLs on
virtual hosts failed if both "-H" and "-I" were specified (noted by
Rodrigo A. G. Schichaschwili on nagiosplug-devel@)

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

17 years agoUpdated notes on releasing, mainly for svn
Ton Voon [Sat, 29 Sep 2007 10:03:56 +0000 (10:03 +0000)]
Updated notes on releasing, mainly for svn

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

17 years agoPrep for 1.4.10
Ton Voon [Sat, 29 Sep 2007 00:44:36 +0000 (00:44 +0000)]
Prep for 1.4.10

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

17 years agoDrop the weird and undocumented behaviour of using positional argument
Holger Weiss [Wed, 26 Sep 2007 10:57:44 +0000 (10:57 +0000)]
Drop the weird and undocumented behaviour of using positional argument
parsing instead of getopt(3) if 8 command line arguments were given (as
suggested by Matthias) and check whether all required arguments have
been specified in order to spit out proper error messages and to avoid a
possible segfault (as suggested by Thomas).

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

17 years agoPatch #1798774: check_ntp: honor ntp flags
Thomas Guyot-Sionnest [Wed, 26 Sep 2007 04:16:21 +0000 (04:16 +0000)]
Patch #1798774: check_ntp: honor ntp flags

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

17 years agoUpdate N::P with new version, redirecting help, version and usage to
Ton Voon [Mon, 24 Sep 2007 19:34:48 +0000 (19:34 +0000)]
Update N::P with new version, redirecting help, version and usage to
stdout

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

17 years agoState that stderr should not have any output
Ton Voon [Mon, 24 Sep 2007 18:51:07 +0000 (18:51 +0000)]
State that stderr should not have any output

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

17 years agoLet ./configure --without-ipv6 suppress non-IPv4 DNS lookups (noted by
Holger Weiss [Mon, 24 Sep 2007 00:30:14 +0000 (00:30 +0000)]
Let ./configure --without-ipv6 suppress non-IPv4 DNS lookups (noted by
Mark Frost on nagios-users@)

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

17 years agoRemoved some c99 style comments
Matthias Eble [Sun, 23 Sep 2007 12:29:36 +0000 (12:29 +0000)]
Removed some c99 style comments

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

17 years agoAdded multiline output capability to check_by_ssh. Thanks to Matthias Flacke (#1769653)
Matthias Eble [Sun, 23 Sep 2007 12:26:03 +0000 (12:26 +0000)]
Added multiline output capability to check_by_ssh. Thanks to Matthias Flacke (#1769653)

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

17 years agoremoved solved issues
Matthias Eble [Sun, 23 Sep 2007 11:18:06 +0000 (11:18 +0000)]
removed solved issues

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

17 years agoAdded radiusclient-ng support to requirement notes
Matthias Eble [Sun, 23 Sep 2007 11:03:33 +0000 (11:03 +0000)]
Added radiusclient-ng support to requirement notes

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

17 years agoFixed bug: stat was called on remote fs even if -l was given
Matthias Eble [Sun, 23 Sep 2007 10:58:09 +0000 (10:58 +0000)]
Fixed bug: stat was called on remote fs even if -l was given
Added -L option to call stat on remote fs but without threshold comparison

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

17 years agoAdded radiusclient-ng support for check_radius. Thanks to Sebastien Guay (#1218438)
Matthias Eble [Sun, 23 Sep 2007 09:48:37 +0000 (09:48 +0000)]
Added radiusclient-ng support for check_radius. Thanks to Sebastien Guay (#1218438)

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

17 years agosubstituted bool/true/false with int/TRUE/FALSE (discussed on np-devel)
Matthias Eble [Sat, 22 Sep 2007 17:48:33 +0000 (17:48 +0000)]
substituted bool/true/false with int/TRUE/FALSE (discussed on np-devel)

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

17 years agoAdded -i/-I to ignore pathes/partitions based on regular expressions
Matthias Eble [Sat, 22 Sep 2007 17:40:35 +0000 (17:40 +0000)]
Added -i/-I to ignore pathes/partitions based on regular expressions
Added check_disk -A selecting all filesystems
-E option must now be passed before -p or -r/-R
Passing -E after -p or -r results in UNKNOWN state
Fixed bug when mixing case sensitive and insensitive regexes

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

17 years agoRewrite the "map changes to return codes" patch nearly from scratch.
Thomas Guyot-Sionnest [Sat, 22 Sep 2007 03:00:46 +0000 (03:00 +0000)]
Rewrite the "map changes to return codes" patch nearly from scratch.

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

17 years agoStop double expansion of parameters for negate - works like
Ton Voon [Fri, 21 Sep 2007 23:01:28 +0000 (23:01 +0000)]
Stop double expansion of parameters for negate - works like
time command now

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

17 years agoMy solaris box needs %llu to display 64bits integers.
Thomas Guyot-Sionnest [Fri, 21 Sep 2007 05:05:58 +0000 (05:05 +0000)]
My solaris box needs %llu to display 64bits integers.

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

17 years ago- Added some variables at verbose==3
Thomas Guyot-Sionnest [Fri, 21 Sep 2007 04:59:15 +0000 (04:59 +0000)]
- Added some variables at verbose==3
- Removed support for verbose<0 (-q). -q was broken and tried to to the same as -e.
- -q in now an undocumented alias of -e (for backward-compatibility).
NB: Long help text for -d was already missing.
- Reordered the switches so that:
Ā    a. less-important ones are in alphabetical order
    b. short and long help orders match.
- Enclosed "-p | -x" inside braces instead of brackets as one or the other is required.

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

17 years agoInclude directories and files required for perl modules
Ton Voon [Mon, 17 Sep 2007 08:19:48 +0000 (08:19 +0000)]
Include directories and files required for perl modules

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

17 years agoProperly handle SMTP server responses which are split into multiple
Holger Weiss [Sat, 15 Sep 2007 14:25:56 +0000 (14:25 +0000)]
Properly handle SMTP server responses which are split into multiple
packets (noted by Chris Adams on nagiosplug-help@).  TODO: The new
recvline()/recvlines() functions should buffer received data instead of
reading one byte at a time and they should be moved to netutils.c so
that other plugins can use them, too.

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

17 years agoCorrect all instances of misaligned memory access. This fixes bus erros
Holger Weiss [Sat, 15 Sep 2007 11:55:12 +0000 (11:55 +0000)]
Correct all instances of misaligned memory access.  This fixes bus erros
on platforms which require alignment (such as SPARC and MIPS).

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

17 years agoRemove "-Wtraditional" from our development GCC flags. We use ANSI C.
Holger Weiss [Sat, 15 Sep 2007 11:34:48 +0000 (11:34 +0000)]
Remove "-Wtraditional" from our development GCC flags.  We use ANSI C.

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

17 years agoAdding in optional Nagios::Plugin perl module (and
Ton Voon [Thu, 13 Sep 2007 11:36:57 +0000 (11:36 +0000)]
Adding in optional Nagios::Plugin perl module (and
dependencies) compilation and installation

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

17 years agoThese plugins assumed the "use lib util.pm;" would be substituted like standard Perl...
Thomas Guyot-Sionnest [Tue, 28 Aug 2007 03:19:45 +0000 (03:19 +0000)]
These plugins assumed the "use lib util.pm;" would be substituted like standard Perl plugins (in plugins-scripts) which isn't the case in contrib. I changed the "use lib" line to use the default path. People using custom paths will have to change it manually.

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

17 years agoDon't use C++ style comments (noted by Johannes Kingma on
Holger Weiss [Thu, 9 Aug 2007 12:32:28 +0000 (12:32 +0000)]
Don't use C++ style comments (noted by Johannes Kingma on
nagiosplug-help@)

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

17 years agoRead the response to an SMTP QUIT command before closing the socket
Holger Weiss [Tue, 31 Jul 2007 14:47:04 +0000 (14:47 +0000)]
Read the response to an SMTP QUIT command before closing the socket
(noted by Dieter Hendricks on nagiosplug-help@)

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

17 years agoDon't use C++ style comments.
Holger Weiss [Sun, 29 Jul 2007 12:42:05 +0000 (12:42 +0000)]
Don't use C++ style comments.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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