Commit graph

2471 commits

Author SHA1 Message Date
Holger Weiss
6b28ae739b check_http: Support HTTP CONNECT method
Add the -Y/--http-connect[=<port>] option which tells check_http to use
the HTTP CONNECT method for tunneling an HTTPS connection through a
proxy server.

This is a modified version of a patch provided by Mark Frost in
SourceForge tracker item #2975393, updated for the current check_http
code.  Changes include:

- Let the new --http-connect option imply --ssl.
- Allow for specifying the server port the proxy should connect to.
2013-09-10 11:09:22 +02:00
Holger Weiss
5bfca4b34d s/--proxy_authorization/--proxy-authorization/
The check_http option "--proxy_authorization" is now called
"--proxy-authorization" instead.  It was always documented this way, and
we don't usually use underscores in option names.
2013-09-10 00:46:06 +02:00
Holger Weiss
e8594f461d check_snmp: Initialize size_t value to 0, not NULL 2013-09-05 00:19:36 +02:00
Holger Weiss
8230bbd4a4 Update bundled libtool files
Import the current libtool version 2.4.2.
2013-09-05 00:03:00 +02:00
Holger Weiss
317d2896dc check_icmp: Minor whitespace/indentation fixes 2013-09-04 22:28:50 +02:00
Holger Weiss
a480681cb7 check_icmp: Support "--help" and "--version"
Let check_icmp provide "--help" and "--version" flags (in addition to
"-h" and "-V"), just as the other plugins do.
2013-09-04 22:20:26 +02:00
Holger Weiss
b15adb7762 Remove "contrib" plugins
These days, sites such as "Nagios Exchange" are a much better place for
publishing plugins not maintained by the Plugins Development Team.
2013-09-02 13:16:24 +02:00
Holger Weiss
c4d5882b9e Remove the outdated "command.cfg" file 2013-09-02 13:09:24 +02:00
Holger Weiss
ba7615631a Merge branch 'hw/update-pm'
* hw/update-pm:
  Use own variable instead of ENV
  Updated with last working copy of build_perl_modules used by Opsview

Conflicts:
	tools/build_perl_modules
2013-08-30 18:15:00 +02:00
Holger Weiss
5789548373 developer-guidelines.sgml: Update copyright year
We touched the Development Guidelines this year.
2013-08-27 18:42:51 +02:00
Holger Weiss
8e9abad8e6 NEWS: Mention that check_snmp now supports >8 OIDs
Closes #37.
2013-08-27 18:38:18 +02:00
Holger Weiss
92fdab87b2 Partially revert "check_snmp: Close potential for using uninitialized memory"
This reverts the changes to plugins/common.h applied by commit
a20611d435.

- Clang defines __GNUC__.
- The new name of the __attribute__ parameter was misleading.
2013-08-27 18:32:38 +02:00
Holger Weiss
1cbc73bc8b check_snmp: Fix --help segfault 2013-08-27 16:08:49 +02:00
Holger Weiss
e9ede0f8e3 Merge branch 'master' of https://github.com/ozamosi/nagios-plugins
* 'master' of https://github.com/ozamosi/nagios-plugins:
  check_snmp: Close potential for using uninitialized memory
  check_snmp: Dynamically grow all data structures

Conflicts:
	plugins/check_snmp.c
2013-08-27 14:37:13 +02:00
Holger Weiss
69b1355286 NEWS: Mention new "check_disk -f" option
Closes #22.
2013-08-26 23:24:03 +02:00
Holger Weiss
efa9b0fc08 Merge branch 'master' of https://github.com/bugness-chl/nagios-plugins
* 'master' of https://github.com/bugness-chl/nagios-plugins:
  check_disk: option to ignore reserved space

Conflicts:
	plugins/check_disk.c
2013-08-26 23:23:55 +02:00
Ton Voon
af85216c79 Use own variable instead of ENV 2013-08-23 17:13:09 +01:00
Ton Voon
ed9a0f3a7b Updated with last working copy of build_perl_modules used by Opsview 2013-08-23 15:17:17 +01:00
Sven Nierlein
fae168a68b perlmods: fixed install_order
on older systems Module::Build is not available by default, therefore we have
to change the order of installation.
2013-08-23 12:40:55 +02:00
Holger Weiss
912a2eaf02 developer-guidelines.sgml: Multiline output
Document the multiline output format properly.

Thanks to Jochen Bern for providing this patch.
2013-08-22 20:45:53 +02:00
Holger Weiss
c542ca9136 developer-guidelines.sgml: Allow special value "U"
Allow a literal "U" to be specified in place of an actual value within
the performance data string.  An "U" corresponds to RRDtool's "UNKNOWN"
value; i.e., it's meant to indicate that data acquisition failed for
some reason.  PNP4Nagios already supports this extension.
2013-08-21 21:50:55 +02:00
Sven Nierlein
1609749226 removed duplicate entry 2013-08-21 22:20:59 +02:00
Sven Nierlein
817ea52cc0 fixed check_tcp test
A check with thresholds 9000,1 must exit with warning if the certificate expires in less
than 9000 but more than one day.
2013-08-21 17:48:14 +02:00
Sven Nierlein
43a913f281 no need to set verbose mode, thats what "make test-debug" is for 2013-08-21 17:23:22 +02:00
Sven Nierlein
d57941c4d2 check_snmp: added threshold tests 2013-08-21 15:59:56 +02:00
Holger Weiss
461cea4261 check_snmp: Fix support for inverse thresholds
Commit bd78299056 reintroduced support for
inverse threshold ranges such as "2:1", but it broke standard thresholds
such as "1:2" (by converting this range into "1") or "1:" (by converting
this range into "@:2").  This commit fixes those two bugs, plus an
off-by-one error while computing the number of bytes to allocate when
handling inverse thresholds (two additional bytes were allocated where
three were required to hold '@' and ':' and '\0').  While at it, we also
check whether malloc(3) succeeded.
2013-08-21 15:00:27 +02:00
Ton Voon
ae8ff32eac Updated perl modules 2013-08-21 00:20:30 +01:00
Holger Weiss
f7bc3a0965 Update the bundled Params::Validate module
Building the old version fails with recent Perl releases:

| Validate.xs: In function `get_type':
| Validate.xs:208:5: error: duplicate case value
| Validate.xs:205:5: error: previously used here
2013-08-20 23:47:01 +02:00
Holger Weiss
f4b90cabc0 Set SSL_MODE_AUTO_RETRY flag
We use OpenSSL (or GnuTLS) with blocking semantics, and we don't want
SSL_read(3) or SSL_write(3) calls to return SSL_ERROR_WANT_READ or
SSL_ERROR_WANT_WRITE (see #3614716).
2013-08-20 23:17:23 +02:00
Holger Weiss
7a80e27fb3 Ditch contrib/check_http-with-client-certificate.c
The standard check_http plugin now supports client certificate
authentication.
2013-08-20 23:11:38 +02:00
Holger Weiss
3a847fc60f Add new Gnulib files to .gitignore 2013-08-20 22:03:11 +02:00
Holger Weiss
1a329f250f Check for who(1) only if utmpx(5) isn't available
The who(1) command is only called by check_users if the system doesn't
provide an utmpx(5) interface.
2013-08-20 21:57:52 +02:00
Holger Weiss
92849a1a87 check_users: Use utmpx(5) only if available
For systems that don't provide an utmpx(5) interface, restore the code
that was replaced in commit 3e622f3a47.
2013-08-20 21:13:25 +02:00
Sven Nierlein
4083622f86 added missing header to fix build on freebsd 2013-08-20 17:02:02 +02:00
Holger Weiss
4eab02cdaf Merge branch 'master' of https://github.com/rafaeldriutti/nagios-plugins
* 'master' of https://github.com/rafaeldriutti/nagios-plugins:
  Changed the smbclient command used to fetch the free space available on the samba shares. Using du instead of ls, since it's much faster, specially with shares that have a lot of files.

Closes #63.
2013-08-20 16:50:52 +02:00
Sven Nierlein
f9ae9294d6 changed obsolete automake macro 2013-08-20 15:40:52 +02:00
Holger Weiss
8135f66739 check_ide_smart: "__linux__" instead of "linux"
C compilers in standards compliance mode will not define "linux", as it
doesn't begin with an underscore.
2013-08-20 00:55:43 +02:00
Holger Weiss
36a9b52cae check_ide_smart: Add support for NetBSD
Thanks to Emmanuel Dreyfus for providing the patch.
2013-08-20 00:41:16 +02:00
Holger Weiss
a15b062e44 Replace Gnulib's "getopt" module with "getopt-gnu"
The "getopt" module is marked as deprecated, these days we're supposed
to choose either "getopt-posix" or "getopt-gnu".
2013-08-19 23:38:06 +02:00
Holger Weiss
26fbe7f1e6 Sync with the latest Gnulib code (6f2d632) 2013-08-19 23:27:12 +02:00
Holger Weiss
5f79e3e9f6 Clean up check for _SC_NPROCESSORS_ONLN
Closes #62.
2013-08-19 22:47:36 +02:00
Holger Weiss
a064001173 Merge branch 'master' of https://github.com/bbense/nagios-plugins
* 'master' of https://github.com/bbense/nagios-plugins:
  Bug fix for ncpus if hyperthreading turned off in linux
2013-08-19 22:47:00 +02:00
Booker C. Bense
f12edfd073 Bug fix for ncpus if hyperthreading turned off in linux 2013-08-19 11:14:05 -07:00
Holger Weiss
30aa7a63f1 check_http: Document the new -E option
Mention the -E/--extended-perfdata flag in the --help output.
2013-08-18 23:18:18 +02:00
Holger Weiss
64b4d1fb66 Abbreviate function name
Make a very long function name at least a little bit shorter.
2013-08-18 23:11:11 +02:00
Holger Weiss
d86005e66c NEWS: Mention the new "check_http -J/-K" options
Closes #48.
2013-08-18 23:10:47 +02:00
Holger Weiss
8e444095e8 Merge branch 'master' of https://github.com/cern-mig/nagios-plugins
* 'master' of https://github.com/cern-mig/nagios-plugins:
  added support for client authentication via SSL

Conflicts:
	plugins/check_http.c
2013-08-18 23:10:31 +02:00
Holger Weiss
3ccf66613f NEWS: Mention the new "check_mysql -f/-g" options
Closes #32.
2013-08-18 22:35:32 +02:00
Holger Weiss
b5ac0d16b2 check_mysql: Don't accept new positional arguments
Do not also accept the new -f/--file and -g/--group options as
positional arguments (especially not prior to "db_pass" and "db", as
that would break backward compatibility).
2013-08-18 22:30:30 +02:00
Holger Weiss
779b91e48f check_mysql: Use xasprintf instead of asprintf 2013-08-18 22:29:31 +02:00