summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2019-02-04travis-ci: Use RSA keys for SSH testsrefs/pull/1580/headJan Wagner1-1/+1
2019-01-21tests: make check_snmp test more reliablerefs/pull/1578/headSven Nierlein1-52/+58
The check_snmp rate tests depend on the exact amount of time spend between the plugin runs and will fail on busy machines, ex. the ci servers. Using faketime mitigates this issue and also removes all the sleeps. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2019-01-18Simply initializes n before it is usedrefs/pull/1574/headIustin Pop1-0/+1
When SSL is enabled, n is assigned the size of the server's second EHLO response (I think in bytes), which will usually be significantly higher than the command passed. As such, no commands are executed and no responses are checked, which - silently - defeats the desired checks and results in a success value.
2019-01-04check_hpjd: Added -D option to disable warning on 'out of paper'refs/pull/1569/headKostyantyn Hushchyn1-3/+9
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2018-12-07Merge pull request #1564 from jacobbaungard/check_cluster_arg_validationSven Nierlein1-0/+10
check_cluster.c: Added data argument validation.
2018-12-04tests: rework test parametersrefs/pull/1565/headSven Nierlein14-216/+72
there were 2 variants of calling getTestParameter: - parameter, description, default value - parameter, env value, default value, description, scope While scope was never actually used and having 2 names for the same value led to having 2 different entries in the cache file for the same configuration. This commit removes the variants and simplifies tests parameters by only using the first 3 parameter variant.
2018-11-29check_cluster.c: Added data argument validation.refs/pull/1564/headKostyantyn Hushchyn1-0/+10
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2018-11-09Add new flag --show-body/-B to print bodyrefs/pull/1560/headTobias Wolf1-1/+11
This should help with figuring out ia problem at a glance when enabled for healthz endpoints on web APIs, for example. The content of the body can point to what the problem is and help with diagnostics. Fixes #1559
2018-11-06test: Add proxy tests via proxyrefs/pull/1476/headMarkus Frosch2-1/+27
On Travis with a local squid
2018-11-06Allow user to specify HTTP method after proxy CONNECTMarkus Frosch1-3/+14
Simple format, avoids refactoring the CONNECT feature.
2017-11-06Fix build issue with MariaDB 10.2refs/pull/1522/headBernard Spil1-0/+5
As of 10.2 MariaDB no longer defines MYSQL_PORT.
2017-09-04Output plugin's stderr to stderrrefs/pull/1505/headMichael Kraus1-3/+1
Output plugin's stderr to stderr and do not exit with WARNING in that case
2017-05-04Merge pull request #1474 from odenbach/vportSven Nierlein1-2/+39
Added tests for virtual port behaviour. Separated from all other test…
2017-04-20plugins: check_dig: Fix spellingrefs/pull/1485/headKarol Babioch1-1/+1
2017-03-26Added tests for virtual port behaviour. Separated from all other tests this ↵refs/pull/1474/headChristopher Odenbach1-2/+39
time.
2017-03-12udp test: prefer nc over netcat syntaxrefs/pull/1469/headSven Nierlein1-3/+3
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 thresholdsSven Nierlein1-4/+4
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 testsSven Nierlein3-35/+47
and make it configurable Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12make snmp tests more reliableSven Nierlein1-3/+3
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 nslookupSven Nierlein1-0/+1
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 packagesrefs/pull/1427/headValentin Vidic1-7/+65
2017-01-10Merge branch 'spell_fix'Jan Wagner10-11/+11
2017-01-04Merge remote-tracking branch 'upstream/pr/1457'Jan Wagner2-4/+29
2016-12-31Add --only-critical switch to check_aptrefs/pull/1457/headChristian Schmidt2-4/+29
2016-12-23check_dns: Small test cleanuprefs/pull/1456/headNicolai2-4/+4
2016-12-23check_dns: Fix travis testsNicolai1-0/+2
(or try to fix it...)
2016-12-23check_dns: Tests and infoNicolai2-3/+21
2016-12-21check_dns: Accept CIDRNicolai Søborg1-5/+37
2016-12-20check_dns: allow for IPv6 RDNSPatrick Rauscher1-1/+1
2016-12-01Spelling fixes suggested by lintianrefs/pull/1452/headJan Wagner10-11/+11
2016-11-21check_radius: Make compiler happyHolger Weiss1-2/+2
2016-11-21Revert "check_disk - show all disks if state is ok and option error only is ↵refs/pull/1446/headOliver Skibbe1-15/+4
used"
2016-11-21sslutils: Address compiler warningHolger Weiss1-1/+1
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 testsJan Wagner1-1/+1
2016-11-19Merge pull request #1382 from riskersen/smtp_tls_expecOliver Skibbe1-15/+22
check_smtp: extended support for expect option
2016-11-19Merge pull request #1374 from riskersen/check_http_perfdata_timeoOliver Skibbe1-6/+6
check_http: added timeout to perfdata as max val Resolves #1350
2016-11-19Merge pull request #1436 from riskersen/check_disk_iss1420Oliver Skibbe1-4/+15
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'Holger Weiss4-7/+16
* monitoring-plugins/pr/1443: add openssl 1.1 support
2016-11-18It's useful to use 'useful' instead of 'usefull'Jan Wagner1-1/+1
2016-11-17check_radius: Replace functions removed in radcliHolger Weiss4-22/+23
The radcli library no longer offers the rc_get_ipaddr(), rc_good_ipaddr(), and rc_own_ipaddress() functions.
2016-11-16check_radius: Fix rc_send_server() call for radcliHolger Weiss1-0/+4
With radcli, the rc_send_server() function expects an additional argument.
2016-11-15check_radius: Remove unused variableHolger Weiss1-1/+0
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.Jan Wagner1-5/+7
http://radcli.github.io/radcli/ (Closes #1437)
2016-11-13add openssl 1.1 supportrefs/pull/1443/headvagrant4-7/+16
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-1refs/pull/1444/headSven Nierlein1-0/+4
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"Sven Nierlein1-4/+4
This reverts commit 6cd50bc42cb4b25a3c0f7153df7f83b7262f404b.
2016-11-11tests: make tests reliable for forcing the locale to CSven Nierlein1-0/+2
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11check_http: add host header testsSven Nierlein1-1/+27
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11adopt http test to changed ssl expire date outputSven Nierlein1-4/+4
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11patch to support the concept of virtual portsChristopher Odenbach1-8/+30