Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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.
|
|
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
|
|
check_cluster.c: Added data argument validation.
|
|
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.
|
|
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
|
|
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
|
|
On Travis with a local squid
|
|
Simple format, avoids refactoring the CONNECT feature.
|
|
As of 10.2 MariaDB no longer defines MYSQL_PORT.
|
|
Output plugin's stderr to stderr and do not exit with WARNING in that case
|
|
Added tests for virtual port behaviour. Separated from all other test…
|
|
|
|
time.
|
|
sles 12 systems have netcat symlinked to nc and so expect nc syntax for netcat.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
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>
|
|
and make it configurable
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
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>
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
(or try to fix it...)
|
|
|
|
|
|
|
|
|
|
|
|
used"
|
|
SSLv23_client_method() and friends return a pointer to a const-qualified
SSL_METHOD.
|
|
|
|
check_smtp: extended support for expect option
|
|
check_http: added timeout to perfdata as max val
Resolves #1350
|
|
check_disk - show all disks if state is ok and option error only is used
|
|
* monitoring-plugins/pr/1443:
add openssl 1.1 support
|
|
|
|
The radcli library no longer offers the rc_get_ipaddr(),
rc_good_ipaddr(), and rc_own_ipaddress() functions.
|
|
With radcli, the rc_send_server() function expects an additional
argument.
|
|
The radcli library doesn't define the ENV type, and we don't use it
anyway.
|
|
http://radcli.github.io/radcli/
(Closes #1437)
|
|
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>
|
|
If a web page contains a nul character, check_http reads the complete page but --string does not search beyond this character.
|
|
This reverts commit 6cd50bc42cb4b25a3c0f7153df7f83b7262f404b.
|
|
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
Signed-off-by: Sven Nierlein <sven@nierlein.de>
|
|
|
|
check_dig: use +retry instead of +tries
|