aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
AgeCommit message (Collapse)Author
2022-11-07Check curl detect ipv6 (#1809)Gravatar Lorenz
* If server_address is an IPv6 address surround it with brackets * If the message is too short, we should not have an underflow * Add simple conditional test case available if IPv6 is
2022-09-19Display total and scaled load values if check_load scales the values by ↵Gravatar Lorenz
number of CPUs (#1778) * Renew copyright * Display more verbose output, if scaled load values are used * Actually use scaled value for determining status and print the fitting perfdata depending on input parameters * Add test cases for scaled mode
2022-07-20Remove check_http and check_curl test which are somehow always failing (#1777)Gravatar Lorenz
* Remove failing checks for check_http * Remove failing checks for check_curl
2021-11-17Merge pull request #1688 from bazzisoft/masterGravatar RincewindsHat
check_curl.c: bugfix: verify certificates option should not force SSL to be used
2021-10-26Fix some testsGravatar RincewindsHat
2021-10-25Update check_load.tGravatar Harald Jenny
adjust tests for new plugin output
2021-09-26Remove spaces from testsGravatar RincewindsHat
2021-09-02Improvements suggested by tobiaswieseGravatar Jonny007-MKD
2021-09-02check_dns: add --expect-nxdomainGravatar Jonny007-MKD
2021-05-24check_curl.c: bugfix: verify certificates option should not force SSL to be usedGravatar Barak Shohat
2021-05-19Refactor check_fpingGravatar Jacob Hansen
* Set correct amount of tests based on conditionals. * When running the test as non-root, we would previously check is the setuid bit is set. This doesn't seem to be needed, so just check if the binary is executable for the user running the test. * Use cmp_ok to check if tests succeeds rather than couting. Signed-off-by: Jacob Hansen <jhansen@op5.com>
2021-05-18check_curl.t: Adjust test to use -f curlGravatar Jacob Hansen
It appears that `-f follow` doesn't work correctly in `check_curl` at the moment. Test adjusted to use `-f curl` instead. Issue for the above created: https://github.com/monitoring-plugins/monitoring-plugins/issues/1685 Signed-off-by: Jacob Hansen <jhansen@op5.com>
2021-04-30Fix conditional tests for check_http, check_curlGravatar Aksel Sjögren
Set correct number of tests in skip- blocks to avoid the error "Bad plan. You planned 50 tests but ran 55" when run with/without /usr/bin/faketime and NP_INTERNET_ACCESS=yes/no.
2021-04-30migrate travis ci to github actionsGravatar Sven Nierlein
2021-04-30fix fping testGravatar Sven Nierlein
in case of dns errors, fping returns an unknown and thats ok.
2021-04-07Merge pull request #1669 from bazzisoft/verify-certGravatar Sven Nierlein
Add an option to check_curl to verify the peer certificate & host using the system CA's
2021-04-07Add an option to check_curl to verify the peer certificate & host using the ↵Gravatar Barak Shohat
system CA's
2021-04-07Updated check_curl.c to display a specific human-readable error message ↵Gravatar Barak Shohat
where possible
2020-05-18update test parameter according to check_httpGravatar Sven Nierlein
2019-04-04Merge branch 'master' into feature_check_curlGravatar Andreas Baumann
2019-02-04travis-ci: Use RSA keys for SSH testsGravatar Jan Wagner
2018-12-04tests: rework test parametersGravatar Sven Nierlein
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-06test: Add proxy tests via proxyGravatar Markus Frosch
On Travis with a local squid
2018-10-25check_curl: rewrite connect_to / host headersGravatar Sven Nierlein
since CURLOPT_CONNECT_TO is only available in later curl versions, we do it the other way round now and set the url from the address we want to connect to and then set the host header accordingly.
2018-10-22made check_curl tests copies of check_http tests because they will differ ↵Gravatar Andreas Baumann
slightly
2018-10-22check_curl: make check_curl use the same tests as check_httpGravatar Sven Nierlein
2018-10-22add check_curl testGravatar Sven Nierlein
just a copy of check_http for now... Signed-off-by: Sven Nierlein <sven@nierlein.de>
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-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-11-20Creating and mounting randisk to make use of check_disk testsGravatar Jan Wagner
2016-11-11check_http: add host header testsGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.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-07tests: adjust check_http to new output formatGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07check_users: add new test casesGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-02-22Let check_http test use HTTP/1.1Gravatar Holger Weiss
2015-10-08Merge branch 'maint'Gravatar Holger Weiss
* maint: sslutils: Remove superfluous parenthesis for sslv3 function too sslutils: remove superfluous parenthesis check_snmp: modified tests check_snmp.c: switched DEFAULT_TIMEOUT to DEFAULT_SOCKET_TIMEOUT (provided by utils.h), already used by help description, see issue #1318 install snmpd on travis tests enable libtab on travis builds add perl snmp to travis dependencies NEWS: Mention check_ups performance data fix Fix incorrect performance data thresholds check_dhcp: Fix option parsing Fixes segfaults when running via monitoring worker (off-by-one) travis: fix http test host sslutils: Check if OpenSSL supports SSLv3. Conflicts: NEWS plugins/sslutils.c
2015-10-04check_snmp: modified testsGravatar Oliver Skibbe
(Closes #1325)
2015-10-02add faketime based tests for check_httpGravatar Sven Nierlein
2015-10-02travis: fix http test hostGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-01travis: fix http test hostGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-04-23check_ldap: fix number of skipable testsGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>