Code

nagiosplug.git
15 years agoRemove the commented out blocks
Thomas Guyot-Sionnest [Sat, 24 Jan 2009 12:41:45 +0000 (07:41 -0500)]
Remove the commented out blocks

The die tests are implemented in the test_*3.t files

15 years agoFix paths in test_ini tests
Thomas Guyot-Sionnest [Sat, 24 Jan 2009 05:41:00 +0000 (00:41 -0500)]
Fix paths in test_ini tests

15 years agoAdd die tests for parse_ini
Thomas Guyot-Sionnest [Fri, 23 Jan 2009 07:39:45 +0000 (02:39 -0500)]
Add die tests for parse_ini

15 years agoReturn UNKNOWN if none of the default files can be found.
Thomas Guyot-Sionnest [Thu, 22 Jan 2009 07:24:39 +0000 (02:24 -0500)]
Return UNKNOWN if none of the default files can be found.

It makes no sense to return unknown if an implicit section is not found, but
go on if the file is missing

15 years agoAdd die tests for extra-opts
Thomas Guyot-Sionnest [Wed, 21 Jan 2009 06:27:06 +0000 (01:27 -0500)]
Add die tests for extra-opts

15 years agoMove check_ntp's extract_value to utils_base.c.
Thomas Guyot-Sionnest [Tue, 20 Jan 2009 03:14:03 +0000 (22:14 -0500)]
Move check_ntp's extract_value to utils_base.c.

This function can also be used to parse performance data strings which
could be useful in the future.

15 years agoAccidentally included built executables - also updated .gitignore
Thomas Guyot-Sionnest [Wed, 21 Jan 2009 06:25:06 +0000 (01:25 -0500)]
Accidentally included built executables - also updated .gitignore

15 years agoSome platform are missing setenv
Thomas Guyot-Sionnest [Wed, 21 Jan 2009 04:55:34 +0000 (23:55 -0500)]
Some platform are missing setenv

Instead of adding the gnulib module for solving tests only I split the test
in two, setting environment from Perl for the later.

15 years agoFix (or try at least) for IRIX compile to tap tests
Thomas Guyot-Sionnest [Wed, 21 Jan 2009 03:28:30 +0000 (22:28 -0500)]
Fix (or try at least) for IRIX compile to tap tests

Gnulib says: "$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise"
Everywhere else we use LTLIBINTL so I assume the tests should use it as well.

15 years agoTrick for check_users test without users logged-in
Thomas Guyot-Sionnest [Wed, 21 Jan 2009 02:48:05 +0000 (21:48 -0500)]
Trick for check_users test without users logged-in

15 years agoBuild extra-opts in tinderbox so they can be tested
Thomas Guyot-Sionnest [Mon, 19 Jan 2009 05:11:59 +0000 (00:11 -0500)]
Build extra-opts in tinderbox so they can be tested

15 years agoRe-apply "Cleanup; fix the way libraries are linked; Make-It-Simple(tm)"
Thomas Guyot-Sionnest [Sun, 18 Jan 2009 21:26:58 +0000 (16:26 -0500)]
Re-apply "Cleanup; fix the way libraries are linked; Make-It-Simple(tm)"

This reverts commit 7449b16b1781c645751e2c05b93893e93630fb2a.

15 years agoTrying out new patch for IRIX 6.5 from Bruno Haible
Thomas Guyot-Sionnest [Sun, 18 Jan 2009 14:42:04 +0000 (09:42 -0500)]
Trying out new patch for IRIX 6.5 from Bruno Haible

See: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/16341

15 years agoRevert "Trying out a patch for IRIX 11"
Thomas Guyot-Sionnest [Sun, 18 Jan 2009 14:35:17 +0000 (09:35 -0500)]
Revert "Trying out a patch for IRIX 11"

This reverts commit d190c5d25865a7414eea4fe6409a94842fba220e.

15 years agoTrying out a patch for IRIX 11
Thomas Guyot-Sionnest [Sat, 17 Jan 2009 01:36:00 +0000 (20:36 -0500)]
Trying out a patch for IRIX 11

See: http://lists.gnu.org/archive/html/bug-gnulib/2009-01/msg00098.html

15 years agoRemoving AC_FUNC_ALLOCA from configure.in (added in the gnulib sync commit)
Thomas Guyot-Sionnest [Thu, 15 Jan 2009 11:24:24 +0000 (06:24 -0500)]
Removing AC_FUNC_ALLOCA from configure.in (added in the gnulib sync commit)

I added AC_FUNC_ALLOCA because of a mistake on my part (which has been fixed
before the final commit). Removing it now.

15 years agoTypo
Thomas Guyot-Sionnest [Thu, 15 Jan 2009 11:12:04 +0000 (06:12 -0500)]
Typo

15 years agoSync with gnulib
Thomas Guyot-Sionnest [Thu, 15 Jan 2009 09:22:57 +0000 (04:22 -0500)]
Sync with gnulib

15 years agoClean up last commit - remove the __STDC_VERSION__ check in tap.h
Thomas Guyot-Sionnest [Thu, 15 Jan 2009 06:03:00 +0000 (01:03 -0500)]
Clean up last commit - remove the __STDC_VERSION__ check in tap.h

HP-UX refuses to compile tap with the check for __STDC_VERSION__ >= 199901L
even though it can.

15 years agoTrying to see if HP-UX will compile without the __STDC_VERSION__ check in tap.h
Thomas Guyot-Sionnest [Wed, 14 Jan 2009 11:55:46 +0000 (06:55 -0500)]
Trying to see if HP-UX will compile without the __STDC_VERSION__ check in tap.h

15 years agoMake /lib before /lib/tests to satisfy dependencies (building tests fails on IRIX)
Thomas Guyot-Sionnest [Tue, 13 Jan 2009 09:31:30 +0000 (04:31 -0500)]
Make /lib before /lib/tests to satisfy dependencies (building tests fails on IRIX)

15 years agoFix test from last commit
Thomas Guyot-Sionnest [Fri, 9 Jan 2009 13:16:52 +0000 (08:16 -0500)]
Fix test from last commit

15 years agobasename check in test_utils.c was accidentaly added again.
Thomas Guyot-Sionnest [Fri, 9 Jan 2009 07:31:42 +0000 (02:31 -0500)]
basename check in test_utils.c was accidentaly added again.

In 538b97c I reverted a serie of libtap patch by Ton Voon; it included
the removal of the useless basename check.

Relevant portion of the changelog from which it was removed (f31cd40):

  Removed basename test as we should use base_name from GNUlib which is
tested separately

15 years agoRevert "Cleanup; fix the way libraries are linked; Make-It-Simple(tm)"
Thomas Guyot-Sionnest [Fri, 9 Jan 2009 07:27:02 +0000 (02:27 -0500)]
Revert "Cleanup; fix the way libraries are linked; Make-It-Simple(tm)"

Trying to see if this has any relation to the tinderbox failure. I doubt it
and will revert back as soon as it's tested.

This reverts commit a97e5fbda21a05574b0e3c5a5118402ebfbbd13c.

15 years agoTry to make IRIX happy (this fixes a similar warning in Solaris)
Thomas Guyot-Sionnest [Thu, 8 Jan 2009 13:14:19 +0000 (08:14 -0500)]
Try to make IRIX happy (this fixes a similar warning in Solaris)

15 years agoCleanup; fix the way libraries are linked; Make-It-Simple(tm)
Thomas Guyot-Sionnest [Wed, 7 Jan 2009 09:41:54 +0000 (04:41 -0500)]
Cleanup; fix the way libraries are linked; Make-It-Simple(tm)

 lib/Makefile.am       |    2 +-
 lib/tests/Makefile.am |   37 ++++---------------------------------
 2 files changed, 5 insertions(+), 34 deletions(-)

15 years agogit2svn: Use --add-author-from with "git set-tree"
Thomas Guyot-Sionnest [Tue, 6 Jan 2009 05:49:16 +0000 (00:49 -0500)]
git2svn: Use --add-author-from with "git set-tree"

15 years agotinderbox_build: Add --enable-libtap configure option
Thomas Guyot-Sionnest [Tue, 6 Jan 2009 05:39:57 +0000 (00:39 -0500)]
tinderbox_build: Add --enable-libtap configure option

15 years agotinderbox_build: Clarify comment
Thomas Guyot-Sionnest [Tue, 6 Jan 2009 05:32:45 +0000 (00:32 -0500)]
tinderbox_build: Clarify comment

15 years agoAllow privproto to be passed through check_snmp to snmpget. Defaults to DES
Ton Voon [Tue, 23 Dec 2008 11:52:04 +0000 (11:52 +0000)]
Allow privproto to be passed through check_snmp to snmpget. Defaults to DES
for compatibility

15 years agocheck_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068)
Thomas Guyot-Sionnest [Wed, 3 Dec 2008 13:00:05 +0000 (08:00 -0500)]
check_mrtg: fix plugin returning UNKNOWN instead of OK (bug #2378068)

15 years agoUpdated to latest due to SF policy changes
Ton Voon [Tue, 2 Dec 2008 17:24:33 +0000 (17:24 +0000)]
Updated to latest due to SF policy changes

15 years agoAdd Libtap as a bundled library (does not change any behaviour without --enable-libtap)
Thomas Guyot-Sionnest [Fri, 28 Nov 2008 10:01:53 +0000 (05:01 -0500)]
Add Libtap as a bundled library (does not change any behaviour without --enable-libtap)

Detects system library as pre-1.4.13 and does not install the built-in library anymore

Tested on:
  - Linux x86_64, with and without local libtap (System libtap installed)
- Linux x86, with and without local libtap (System libtap NOT installed)
  - Solaris SPARC, with and without local libtap, with and without system libtap installed

15 years agoRevert inclusion of libtap into nagiosplugins
Thomas Guyot-Sionnest [Fri, 28 Nov 2008 08:22:39 +0000 (03:22 -0500)]
Revert inclusion of libtap into nagiosplugins
  (except for the NEWS file)

This reverts the following commits (latest first): f3e09099f16b54be8df51f31cd405270c7da25083ff1bfe40c503d85 and 6c476db

16 years agotinderbox: Don't alter SunOS path if we're building off a repository tree
Thomas Guyot-Sionnest [Thu, 27 Nov 2008 11:27:47 +0000 (06:27 -0500)]
tinderbox: Don't alter SunOS path if we're building off a repository tree

SunOS make will work only out of snapshots and releases.

16 years agoFixing build breakages (I totally forgot this rule was there...)
Thomas Guyot-Sionnest [Thu, 27 Nov 2008 02:29:40 +0000 (21:29 -0500)]
Fixing build breakages (I totally forgot this rule was there...)

16 years agoFix it for good now
Thomas Guyot-Sionnest [Wed, 26 Nov 2008 11:04:04 +0000 (06:04 -0500)]
Fix it for good now

16 years agoMinor fix in NP-VERSION-GEN
Thomas Guyot-Sionnest [Wed, 26 Nov 2008 10:55:57 +0000 (05:55 -0500)]
Minor fix in NP-VERSION-GEN

16 years agoDisable dynamic versionning for releases, and allow generating version out of subversion.
Thomas Guyot-Sionnest [Wed, 26 Nov 2008 10:42:48 +0000 (05:42 -0500)]
Disable dynamic versionning for releases, and allow generating version out of subversion.

This should be a definitive fix for systems with non-compilant make programs as the version will be taken from $(PACKAGE_VERSION) instead.

At the same time I added code for generating svn-based version strings.

16 years agoWorkaround to support more make programs
Thomas Guyot-Sionnest [Tue, 25 Nov 2008 05:33:23 +0000 (00:33 -0500)]
Workaround to support more make programs

Avoid the use of "-include". Since "include" is interpreted by Automake, we have to use a special macro instead.

16 years agoExporting ENV vars from Makefile is supported only with GNU Make. Use the shell instead.
Thomas Guyot-Sionnest [Tue, 25 Nov 2008 05:28:51 +0000 (00:28 -0500)]
Exporting ENV vars from Makefile is supported only with GNU Make. Use the shell instead.

16 years agotools/distclean: No need to bailout on distclean failures
Thomas Guyot-Sionnest [Mon, 24 Nov 2008 07:08:39 +0000 (02:08 -0500)]
tools/distclean: No need to bailout on distclean failures

16 years agoRevert "tinderbox: Comment out additional PATH conponent added for SunOS builds"
Thomas Guyot-Sionnest [Mon, 24 Nov 2008 06:45:17 +0000 (01:45 -0500)]
Revert "tinderbox: Comment out additional PATH conponent added for SunOS builds"

This reverts commit 088452683cf881c6ed717cc559ca2eee3faa95ca.

16 years agotinderbox: Comment out additional PATH conponent added for SunOS builds
Thomas Guyot-Sionnest [Sun, 23 Nov 2008 22:52:09 +0000 (17:52 -0500)]
tinderbox: Comment out additional PATH conponent added for SunOS builds

16 years agoAvoid the use of .PHONY (target s created twice and I have no idea if it's right).
Thomas Guyot-Sionnest [Sun, 23 Nov 2008 16:19:27 +0000 (11:19 -0500)]
Avoid the use of .PHONY (target s created twice and I have no idea if it's right).

16 years agoUpdate .gitignore to include missing file/extention
Thomas Guyot-Sionnest [Sun, 23 Nov 2008 08:43:20 +0000 (03:43 -0500)]
Update .gitignore to include missing file/extention

16 years agoAdd .gitignore (Imported from svn:ignore)
Thomas Guyot-Sionnest [Sun, 23 Nov 2008 07:45:41 +0000 (02:45 -0500)]
Add .gitignore (Imported from svn:ignore)

16 years agoRemoving CVS/SVN tags and replacing with git-based versioning
Thomas Guyot-Sionnest [Sun, 23 Nov 2008 05:38:47 +0000 (05:38 +0000)]
Removing CVS/SVN tags and replacing with git-based versioning
For contrib/, full tags have been imported from subversion

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

16 years agoAdd comment to recent check_disk patch
Thomas Guyot-Sionnest [Thu, 20 Nov 2008 08:14:41 +0000 (08:14 +0000)]
Add comment to recent check_disk patch

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

16 years agoBulk EOL cleanup
Thomas Guyot-Sionnest [Wed, 19 Nov 2008 06:45:18 +0000 (06:45 +0000)]
Bulk EOL cleanup

$ git diff --ignore-space-change|diffstat
 0 files changed

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

16 years agoFixed buffer overflow in check_ntp/check_ntp_peer (#1999319, Ubuntu #291265)
Thomas Guyot-Sionnest [Wed, 19 Nov 2008 05:59:33 +0000 (05:59 +0000)]
Fixed buffer overflow in check_ntp/check_ntp_peer (#1999319, Ubuntu #291265)

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

16 years agocheck_disk: rerpopulate the mount list after doing a stat() on paths specified with...
Thomas Guyot-Sionnest [Wed, 19 Nov 2008 05:59:22 +0000 (05:59 +0000)]
check_disk: rerpopulate the mount list after doing a stat() on paths specified with -p for better automount support.

NB: There's a memory leak here - properly freeing the mount list would invlove
    much more work - there's many other places where leaks can happen so it
    should be a project on its own.

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

16 years agoHelper script to upload tarballs to SF and create md5sum
Ton Voon [Fri, 14 Nov 2008 20:38:26 +0000 (20:38 +0000)]
Helper script to upload tarballs to SF and create md5sum

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

16 years agoUpdated tinderbox link
Ton Voon [Tue, 11 Nov 2008 15:17:23 +0000 (15:17 +0000)]
Updated tinderbox link

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

16 years agoAdd missing long options for check_nt (for use with extra-opts)
Thomas Guyot-Sionnest [Sat, 8 Nov 2008 16:33:28 +0000 (16:33 +0000)]
Add missing long options for check_nt (for use with extra-opts)

Extra-opts (ini files) requires long-options for setting up arguments. Added
the missing ones for check_nt so that it can be properly used with extra-opts.

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

16 years agoFix long options parsing in check_disk, check_dns, check_mrtg and check_mrtgtraf...
Thomas Guyot-Sionnest [Sat, 8 Nov 2008 16:33:15 +0000 (16:33 +0000)]
Fix long options parsing in check_disk, check_dns, check_mrtg and check_mrtgtraf (check_tcp was done in an earlier commit)

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

16 years agoAdded Jan for check_http method patch
Ton Voon [Sat, 8 Nov 2008 08:38:46 +0000 (08:38 +0000)]
Added Jan for check_http method patch

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

16 years agoFixed bug where extra headers and redirect caused segfault (Dieter Van de Walle ...
Ton Voon [Sat, 8 Nov 2008 02:32:03 +0000 (02:32 +0000)]
Fixed bug where extra headers and redirect caused segfault (Dieter Van de Walle - 2089159)

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

16 years agocheck_http now has options to specify the HTTP method (Jan - 2155152)
Ton Voon [Sat, 8 Nov 2008 02:08:56 +0000 (02:08 +0000)]
check_http now has options to specify the HTTP method (Jan - 2155152)

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

16 years agoFix for tar on Solaris
Ton Voon [Sat, 8 Nov 2008 01:03:39 +0000 (01:03 +0000)]
Fix for tar on Solaris

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

16 years agocheck_icmp now reports min and max round trip time perfdata (Steve Rader)
Thomas Guyot-Sionnest [Fri, 7 Nov 2008 01:41:17 +0000 (01:41 +0000)]
check_icmp now reports min and max round trip time perfdata (Steve Rader)

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

16 years agoFix check_tcp longoptions handling
Thomas Guyot-Sionnest [Wed, 5 Nov 2008 21:36:43 +0000 (21:36 +0000)]
Fix check_tcp longoptions handling

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

16 years agoNeed to add in the libgnu.la for Solaris and other platforms
Ton Voon [Wed, 5 Nov 2008 17:07:40 +0000 (17:07 +0000)]
Need to add in the libgnu.la for Solaris and other platforms
where missing functions have been replaced by GNUlib

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

16 years agoMissing NEWS item
Thomas Guyot-Sionnest [Wed, 5 Nov 2008 16:22:03 +0000 (16:22 +0000)]
Missing NEWS item

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

16 years agoFix calculation of extra-opts parameters.
Thomas Guyot-Sionnest [Wed, 5 Nov 2008 16:15:59 +0000 (16:15 +0000)]
Fix calculation of extra-opts parameters.

By reading the current list instead of the additional one when counting parameters, extra-opts calculation was allocating insuficient space for the final array if later sections contained more arguments than the sum of all previously parsed sections.

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

16 years agoFixed libtap dependency issue. Warning: will install tap into lib directories
Ton Voon [Wed, 5 Nov 2008 12:19:44 +0000 (12:19 +0000)]
Fixed libtap dependency issue. Warning: will install tap into lib directories
if ./configure --enable-libtap is used, but as development tool, will be okay

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

16 years agoFix check_http test (altinity.com redirects now).
Thomas Guyot-Sionnest [Wed, 5 Nov 2008 00:14:37 +0000 (00:14 +0000)]
Fix check_http test (altinity.com redirects now).

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

16 years agoFixed the test (not the bug yet) and added similar one to test_ini (that one works)
Thomas Guyot-Sionnest [Tue, 4 Nov 2008 21:52:45 +0000 (21:52 +0000)]
Fixed the test (not the bug yet) and added similar one to test_ini (that one works)

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

16 years agoCorrected test_opts plan
Thomas Guyot-Sionnest [Tue, 4 Nov 2008 21:31:10 +0000 (21:31 +0000)]
Corrected test_opts plan

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

16 years agoAdding extra-opts check that crash on my prod servers (*** glibc detected *** malloc...
Thomas Guyot-Sionnest [Tue, 4 Nov 2008 21:29:36 +0000 (21:29 +0000)]
Adding extra-opts check that crash on my prod servers (*** glibc detected *** malloc(): memory corruption: 0x0804e248 ***)

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

16 years agoMake extra-opts (C plugins) behave more like N::P:
Thomas Guyot-Sionnest [Tue, 4 Nov 2008 17:41:53 +0000 (17:41 +0000)]
Make extra-opts (C plugins) behave more like N::P:

  N::P allows both '#' and ';' for comments. Extra-opts used to allow only '#', it now allows both (';' is the standard for ini files)
  Extra-opts does not allow trailing comments anymore (like N::P)

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

16 years agocheck_ups now sends a LOGOUT string (debian bug #387001)
Thomas Guyot-Sionnest [Tue, 4 Nov 2008 04:46:31 +0000 (04:46 +0000)]
check_ups now sends a LOGOUT string (debian bug #387001)

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

16 years agocheck_ifoperstatus -n flag now works as expected (sf.net #1569488)
Matthias Eble [Wed, 22 Oct 2008 21:35:15 +0000 (21:35 +0000)]
check_ifoperstatus -n flag now works as expected (sf.net #1569488)
check_ifoperstatus now supports ifType based lookup for ifIndex

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

16 years agoUpdated tinderbox server
Ton Voon [Tue, 21 Oct 2008 09:11:48 +0000 (09:11 +0000)]
Updated tinderbox server

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

16 years agocheck-users thresholds was >= rather than > as documented.
Thomas Guyot-Sionnest [Sun, 5 Oct 2008 15:28:18 +0000 (15:28 +0000)]
check-users thresholds was >= rather than > as documented.

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

16 years agoPreparation for 1.4.13
Ton Voon [Thu, 25 Sep 2008 08:15:58 +0000 (08:15 +0000)]
Preparation for 1.4.13

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

16 years agoFix small test failure
Ton Voon [Thu, 25 Sep 2008 08:04:42 +0000 (08:04 +0000)]
Fix small test failure

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

16 years agoMoving project administration documents to nagiosplugins.org site
Ton Voon [Thu, 25 Sep 2008 08:01:27 +0000 (08:01 +0000)]
Moving project administration documents to nagiosplugins.org site

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

16 years agoTypo
Thomas Guyot-Sionnest [Tue, 2 Sep 2008 12:28:04 +0000 (12:28 +0000)]
Typo

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

16 years agoSome HTTP server applications/configurations cause trouble if the port is
Holger Weiss [Tue, 2 Sep 2008 11:26:31 +0000 (11:26 +0000)]
Some HTTP server applications/configurations cause trouble if the port is
explicitly specified in our "Host:" header line.  Therefore, we now specify the
port only if we're using a non-default port (Erik Wasser - 2082501).

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

16 years agoFix possible segfault in check_ntp_peer with deliberately invalid packets
Thomas Guyot-Sionnest [Tue, 2 Sep 2008 03:42:16 +0000 (03:42 +0000)]
Fix possible segfault in check_ntp_peer with deliberately invalid packets

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

16 years agocheck_ntp_peer/check_ntp_time used to show port in --help but ignored the argument...
Thomas Guyot-Sionnest [Mon, 1 Sep 2008 14:04:22 +0000 (14:04 +0000)]
check_ntp_peer/check_ntp_time used to show port in --help but ignored the argument - now implemented.

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

16 years agoRevert "Re-structure the HTTP 1.1 headers to prevent 301s on servers with virtual...
Thomas Guyot-Sionnest [Mon, 1 Sep 2008 14:04:04 +0000 (14:04 +0000)]
Revert "Re-structure the HTTP 1.1 headers to prevent 301s on servers with virtual hosts"

This reverts commit 2030

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

16 years agoUnder some circumstances, the 'url' path of a redirection target missed
Holger Weiss [Mon, 1 Sep 2008 12:20:32 +0000 (12:20 +0000)]
Under some circumstances, the 'url' path of a redirection target missed
a leading slash.  While this was fixed later on, the incomplete 'url'
was used for redirection loop detection and error messages.  This is now
fixed by adding the missing slash immediately.

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

16 years agoFix HTTP::Daemon::VERSION to get a fixed header size for tests
Ton Voon [Mon, 25 Aug 2008 18:39:27 +0000 (18:39 +0000)]
Fix HTTP::Daemon::VERSION to get a fixed header size for tests
(Sven Nierlein)

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

16 years agoUpdated with more tests re: multiple status codes (Sven Nierlein)
Ton Voon [Mon, 25 Aug 2008 13:26:11 +0000 (13:26 +0000)]
Updated with more tests re: multiple status codes (Sven Nierlein)

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

16 years agoThe "-e" option now accepts a comma-delimited list of expected status
Holger Weiss [Mon, 25 Aug 2008 11:42:57 +0000 (11:42 +0000)]
The "-e" option now accepts a comma-delimited list of expected status
lines (Sven Nierlein - 1894496).

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

16 years agoAdded HTTP tests for status codes
Ton Voon [Fri, 22 Aug 2008 13:08:08 +0000 (13:08 +0000)]
Added HTTP tests for status codes

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

16 years agoOnly include extra-opts tests if libtap is enabled
Ton Voon [Thu, 21 Aug 2008 21:52:05 +0000 (21:52 +0000)]
Only include extra-opts tests if libtap is enabled

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

16 years agoNote re: --enable-libtap
Ton Voon [Thu, 21 Aug 2008 15:21:11 +0000 (15:21 +0000)]
Note re: --enable-libtap

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

16 years agoCorrectly link to included libtap. Simplify invoking test scripts.
Ton Voon [Thu, 21 Aug 2008 15:18:58 +0000 (15:18 +0000)]
Correctly link to included libtap. Simplify invoking test scripts.
Removed basename test as we should use base_name from GNUlib which is
tested separately

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

16 years agoFix regexp of version number of snapshot
Ton Voon [Thu, 21 Aug 2008 15:15:54 +0000 (15:15 +0000)]
Fix regexp of version number of snapshot

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

16 years agoRemove .svn files in distribution
Ton Voon [Thu, 21 Aug 2008 15:12:57 +0000 (15:12 +0000)]
Remove .svn files in distribution

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

16 years agoRenamed altered tap file to nagios-plugins
Ton Voon [Thu, 21 Aug 2008 15:12:11 +0000 (15:12 +0000)]
Renamed altered tap file to nagios-plugins

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

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

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

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

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

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

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

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

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

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

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

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

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

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