Sven Nierlein
8442ed5b41
renew test certificates
...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2019-02-19 16:35:28 +01:00
Rolf Eike Beer
763eb740b3
check_dns: fix typo in parameter description
2019-02-15 17:31:29 +01:00
Sven Nierlein
2962148d8b
Merge pull request #1582 from towolf/show_body_for_http_expect_case
...
Also support the --show-body/-B flag when --expect is used
2019-02-15 09:02:43 +01:00
Sven Nierlein
8f1d3de0b7
Merge pull request #1545 from DerDakon/dns_order
...
check_dns: improve support for checking multiple addresses
2019-02-15 09:00:45 +01:00
Tobias Wolf
f7f0f7d467
Also support the --show-body/-B flag when --expect is used
2019-02-12 13:01:23 +01:00
Jan Wagner
2dcfbbcad0
travis-ci: Use RSA keys for SSH tests
2019-02-04 14:24:29 +01:00
Sven Nierlein
22f47fc0c5
tests: make check_snmp test more reliable
...
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-21 17:41:02 +01:00
Iustin Pop
8520c643dd
Simply initializes n before it is used
...
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-18 22:52:54 +01:00
Kostyantyn Hushchyn
f79f016238
check_hpjd: Added -D option to disable warning on 'out of paper'
...
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2019-01-04 15:01:28 +01:00
Sven Nierlein
ac6f101f05
Merge pull request #1564 from jacobbaungard/check_cluster_arg_validation
...
check_cluster.c: Added data argument validation.
2018-12-07 17:35:58 +01:00
Sven Nierlein
d7dcca22ae
tests: rework test parameters
...
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-12-04 15:20:19 +01:00
Kostyantyn Hushchyn
910894a4e2
check_cluster.c: Added data argument validation.
...
Signed-off-by: Kostyantyn Hushchyn <kgushtin@op5.com>
2018-11-29 16:37:59 +01:00
Tobias Wolf
9966ebcd84
Add new flag --show-body/-B to print body
...
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-09 23:48:56 +01:00
Markus Frosch
198611a3c2
test: Add proxy tests via proxy
...
On Travis with a local squid
2018-11-06 12:33:24 +01:00
Markus Frosch
d659f8d99f
Allow user to specify HTTP method after proxy CONNECT
...
Simple format, avoids refactoring the CONNECT feature.
2018-11-06 11:32:27 +01:00
Rolf Eike Beer
fd9a7d2e00
check_dns: allow forcing complete match of all addresses
2018-07-25 21:14:47 +02:00
Rolf Eike Beer
a03068743f
check_dns: allow returned addresses to be in any order
2018-07-25 20:18:47 +02:00
Rolf Eike Beer
e60c6c04f0
check_dns: simplify loop
2018-07-25 19:05:16 +02:00
Bernard Spil
399cc14152
Fix build issue with MariaDB 10.2
...
As of 10.2 MariaDB no longer defines MYSQL_PORT.
2017-11-06 17:31:44 +01:00
Michael Kraus
6e67b638f8
Output plugin's stderr to stderr
...
Output plugin's stderr to stderr and do not exit with WARNING in that case
2017-09-04 16:36:19 +02:00
Sven Nierlein
b3d39e605e
Merge pull request #1474 from odenbach/vport
...
Added tests for virtual port behaviour. Separated from all other test…
2017-05-04 23:19:51 +02:00
Karol Babioch
e0b8ebaa77
plugins: check_dig: Fix spelling
2017-04-21 01:38:39 +02:00
Christopher Odenbach
9326543c2e
Added tests for virtual port behaviour. Separated from all other tests this time.
2017-03-26 22:36:58 +02:00
Sven Nierlein
77aa6d4ebf
udp test: prefer nc over netcat syntax
...
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-12 22:55:52 +01:00
Sven Nierlein
e90c63712e
check_disk test: increase assumed thresholds
...
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-12 22:55:52 +01:00
Sven Nierlein
0cff5f2d93
remove hardcoded verisign.com tests
...
and make it configurable
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12 22:55:52 +01:00
Sven Nierlein
b3dee5c4bf
make snmp tests more reliable
...
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-12 22:55:52 +01:00
Sven Nierlein
9daeceaed3
check_dns: fix error detection on sles nslookup
...
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-03-12 21:02:58 +01:00
Valentin Vidic
43ce70bcdb
check_apt: Add -l/--list option to print packages
2017-01-16 17:54:00 +01:00
Jan Wagner
10fa79a97a
Merge branch 'spell_fix'
2017-01-10 20:33:16 +01:00
Jan Wagner
3fc149f499
Merge remote-tracking branch 'upstream/pr/1457'
2017-01-04 14:53:16 +01:00
Christian Schmidt
bf18dc42dd
Add --only-critical switch to check_apt
2016-12-31 12:00:46 +01:00
Nicolai
6a0f4fe275
check_dns: Small test cleanup
2016-12-23 22:59:42 +01:00
Nicolai
b9f00386a1
check_dns: Fix travis tests
...
(or try to fix it...)
2016-12-23 21:04:36 +01:00
Nicolai
ea756ac4ad
check_dns: Tests and info
2016-12-23 20:44:45 +01:00
Nicolai Søborg
22e78763ea
check_dns: Accept CIDR
2016-12-21 17:24:29 +01:00
Patrick Rauscher
f524b15e57
check_dns: allow for IPv6 RDNS
2016-12-20 21:59:58 +01:00
Jan Wagner
dbb92c347e
Spelling fixes suggested by lintian
2016-12-01 12:49:40 +01:00
Holger Weiss
fae05eb178
check_radius: Make compiler happy
2016-11-21 14:49:03 +01:00
Oliver Skibbe
d03a2a82b3
Revert "check_disk - show all disks if state is ok and option error only is used"
2016-11-21 13:26:28 +01:00
Holger Weiss
8b727baec5
sslutils: Address compiler warning
...
SSLv23_client_method() and friends return a pointer to a const-qualified
SSL_METHOD.
2016-11-21 09:31:08 +01:00
Jan Wagner
6d0c111631
Creating and mounting randisk to make use of check_disk tests
2016-11-20 20:38:41 +01:00
Oliver Skibbe
6438fec788
Merge pull request #1382 from riskersen/smtp_tls_expec
...
check_smtp: extended support for expect option
2016-11-19 16:38:07 +01:00
Oliver Skibbe
6026ff5c18
Merge pull request #1374 from riskersen/check_http_perfdata_timeo
...
check_http: added timeout to perfdata as max val
Resolves #1350
2016-11-19 16:36:26 +01:00
Oliver Skibbe
4430b63b0f
Merge pull request #1436 from riskersen/check_disk_iss1420
...
check_disk - show all disks if state is ok and option error only is used
2016-11-19 16:35:50 +01:00
Holger Weiss
303acfc64f
Merge remote-tracking branch 'monitoring-plugins/pr/1443'
...
* monitoring-plugins/pr/1443:
add openssl 1.1 support
2016-11-18 11:51:12 +01:00
Jan Wagner
1723a3c761
It's useful to use 'useful' instead of 'usefull'
2016-11-18 11:47:20 +01:00
Holger Weiss
487a9d0a8b
check_radius: Replace functions removed in radcli
...
The radcli library no longer offers the rc_get_ipaddr(),
rc_good_ipaddr(), and rc_own_ipaddress() functions.
2016-11-17 17:22:37 +01:00
Holger Weiss
bfc745a79d
check_radius: Fix rc_send_server() call for radcli
...
With radcli, the rc_send_server() function expects an additional
argument.
2016-11-17 00:03:50 +01:00
Holger Weiss
14929f2687
check_radius: Remove unused variable
...
The radcli library doesn't define the ENV type, and we don't use it
anyway.
2016-11-15 23:36:59 +01:00