aboutsummaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)Author
2018-07-25check_dns: allow forcing complete match of all addressesGravatar Rolf Eike Beer
2018-07-25check_dns: allow returned addresses to be in any orderGravatar Rolf Eike Beer
2018-07-25check_dns: simplify loopGravatar Rolf Eike Beer
2017-09-04Output plugin's stderr to stderrGravatar Michael Kraus
Output plugin's stderr to stderr and do not exit with WARNING in that case
2017-05-04Merge pull request #1474 from odenbach/vportGravatar Sven Nierlein
Added tests for virtual port behaviour. Separated from all other test…
2017-04-21plugins: check_dig: Fix spellingGravatar Karol Babioch
2017-03-26Added tests for virtual port behaviour. Separated from all other tests this ↵Gravatar Christopher Odenbach
time.
2017-03-12udp test: prefer nc over netcat syntaxGravatar Sven Nierlein
sles 12 systems have netcat symlinked to nc and so expect nc syntax for netcat. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12check_disk test: increase assumed thresholdsGravatar Sven Nierlein
The check_disk fails if the build system has more than 100GB of free disk space. Lets make this 100TB and we are safe for a couple more years. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12remove hardcoded verisign.com testsGravatar Sven Nierlein
and make it configurable Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12make snmp tests more reliableGravatar Sven Nierlein
snmp tests fail if the snmp daemon runs systemd, then the process with 1 has arguments. Convert the test into a regex which works for sysv and systemd. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12check_dns: fix error detection on sles nslookupGravatar Sven Nierlein
on sles (ex. 11sp1) systems the nslookup output for not found was not parsed correctly and interpreted as ok when it should be critical: ./check_dns -H nosuchhost.nodomain -t 1 -vvv /usr/bin/nslookup -sil nosuchhost.nodomain Server: 10.0.2.3 Address: 10.0.2.3#53 Non-authoritative answer: *** Can't find nosuchhost.nodomain: No answer DNS OK: 0.011 seconds response time. nosuchhost.nodomain returns |time=0.010892s;;;0.000000 Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-01-16check_apt: Add -l/--list option to print packagesGravatar Valentin Vidic
2017-01-10Merge branch 'spell_fix'Gravatar Jan Wagner
2017-01-04Merge remote-tracking branch 'upstream/pr/1457'Gravatar Jan Wagner
2016-12-31Add --only-critical switch to check_aptGravatar Christian Schmidt
2016-12-23check_dns: Small test cleanupGravatar Nicolai
2016-12-23check_dns: Fix travis testsGravatar Nicolai
(or try to fix it...)
2016-12-23check_dns: Tests and infoGravatar Nicolai
2016-12-21check_dns: Accept CIDRGravatar Nicolai Søborg
2016-12-20check_dns: allow for IPv6 RDNSGravatar Patrick Rauscher
2016-12-01Spelling fixes suggested by lintianGravatar Jan Wagner
2016-11-21check_radius: Make compiler happyGravatar Holger Weiss
2016-11-21Revert "check_disk - show all disks if state is ok and option error only is ↵Gravatar Oliver Skibbe
used"
2016-11-21sslutils: Address compiler warningGravatar Holger Weiss
SSLv23_client_method() and friends return a pointer to a const-qualified SSL_METHOD.
2016-11-20Creating and mounting randisk to make use of check_disk testsGravatar Jan Wagner
2016-11-19Merge pull request #1382 from riskersen/smtp_tls_expecGravatar Oliver Skibbe
check_smtp: extended support for expect option
2016-11-19Merge pull request #1374 from riskersen/check_http_perfdata_timeoGravatar Oliver Skibbe
check_http: added timeout to perfdata as max val Resolves #1350
2016-11-19Merge pull request #1436 from riskersen/check_disk_iss1420Gravatar Oliver Skibbe
check_disk - show all disks if state is ok and option error only is used
2016-11-18Merge remote-tracking branch 'monitoring-plugins/pr/1443'Gravatar Holger Weiss
* monitoring-plugins/pr/1443: add openssl 1.1 support
2016-11-18It's useful to use 'useful' instead of 'usefull'Gravatar Jan Wagner
2016-11-17check_radius: Replace functions removed in radcliGravatar Holger Weiss
The radcli library no longer offers the rc_get_ipaddr(), rc_good_ipaddr(), and rc_own_ipaddress() functions.
2016-11-17check_radius: Fix rc_send_server() call for radcliGravatar Holger Weiss
With radcli, the rc_send_server() function expects an additional argument.
2016-11-15check_radius: Remove unused variableGravatar Holger Weiss
The radcli library doesn't define the ENV type, and we don't use it anyway.
2016-11-15This patch adds support for using the readcli lib.Gravatar Jan Wagner
http://radcli.github.io/radcli/ (Closes #1437)
2016-11-13add openssl 1.1 supportGravatar vagrant
changes: - CRYPTO_lock detection replaced in configure.ac. We don't use that function anywhere, so just replace it with the suggested one from https://wiki.openssl.org/index.php/Library_Initialization#Autoconf - OPENSSL_NO_SSL2 is no longer defined while ssl2 is not included. Set it ourself using the suggested openssl 1.1 version check from https://wiki.openssl.org/index.php/1.1_API_Changes#Backward_compatibility - openssl 1.1 sends a sigpipe if the connection is still open when calling SSL_shutdown(), so move the close before the shutdown. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11Merge pull request #1391 from lausser/patch-1Gravatar Sven Nierlein
If a web page contains a nul character, check_http reads the complete page but --string does not search beyond this character.
2016-11-11Revert "adopt http test to changed ssl expire date output"Gravatar Sven Nierlein
This reverts commit 6cd50bc42cb4b25a3c0f7153df7f83b7262f404b.
2016-11-11tests: make tests reliable for forcing the locale to CGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11check_http: add host header testsGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11adopt http test to changed ssl expire date outputGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11patch to support the concept of virtual portsGravatar Christopher Odenbach
2016-11-08Merge pull request #1442 from waja/check_dig_use_retry_instead_triesGravatar Sven Nierlein
check_dig: use +retry instead of +tries
2016-11-08check_dig: use +retry instead of +triesGravatar Christian Kujau
After upgrading from an Ubuntu/15.10 to 16.04 installation, I noticed that check_dig is always returning a WARNING: $ /usr/lib/nagios/plugins/check_dig -l localhost -v /usr/bin/dig -p 53 @127.0.0.1 localhost A +tries=3 +time=6 Looking for: 'localhost' DNS WARNING - 0.008 seconds response time (dig returned an error status)|time=0.008274s;;;0.000000 The older Ubuntu installation got its check_dig from the nagios-plugins-standard package[0] which did not include the +tries option. The current Ubuntu version provides its check_dig from the monitoring-plugins-standard package[1], which _does_ use the +tries option that was introduced with df53473[2]. On my system, it so happens that /usr/bin/dig is provided not by the (BIND) dnsutils package but by knot-dnsutils[3] from the Knot DNS project. The Knot dig(1) command doesn't support the +tries option[4] but does support +retry (which is also supported[5] by the BIND dig(1) command). One way to fix that would be for me to install the BIND dnsutils package. But I did not want to do that: it's so much larger in size and pulls in much more dependencies than the knot-dnsutils package. The patch below changes check_dig to use +retry instead of +tries. Both options are similar, but not the same: +retry - Sets the number of times to retry UDP queries to server to T instead of the default, 2. Unlike +tries, this does not include the initial query As number_tries seems to be hard coded to 3, I've lowered DEFAULT_TRIES to 2 so check_dig should behave as before (with +tries=3). Thanks, Christian. [0] http://packages.ubuntu.com/wily/nagios-plugins-standard [1] http://packages.ubuntu.com/xenial/monitoring-plugins-standard [2] https://github.com/monitoring-plugins/monitoring-plugins/commit/df53473 [3] http://packages.ubuntu.com/xenial/knot-dnsutils [4] https://www.knot-dns.cz/docs/2.x/html/man_kdig.html#notes [5] https://ftp.isc.org/isc/bind9/cur/9.10/doc/arm/man.dig.html Signed-off-by: Christian Kujau <lists@nerdbynature.de>
2016-11-08check_ide_smart: remove unused functionGravatar Sebastian Herbszt
Remove function unused since commit b5cc292. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2016-11-08tests: enable snmp testsGravatar Sven Nierlein
Enabled snmp tests against snmpd on localhost. It was installed already in the travis file, we just need to enable the tests by setting the parameters in the answers file. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-08check_snmp: fix number of tests skipedGravatar Sven Nierlein
2016-11-08check_snmp: add testcase for no datatypeGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-08Revert "check_snmp: fix push request 1173 for SNMP responses without ↵Gravatar Sven Nierlein
datatype indicator" This reverts commit 3178c8c0ff18822a04fe01c749f3564887473eed.
2016-11-08check_snmp: fix push request 1173 for SNMP responses without datatype indicatorGravatar Thomas Kurschel