Code

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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