aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
AgeCommit message (Collapse)Author
2021-09-02check_dns: add --expect-nxdomainGravatar Jonny007-MKD
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>
2015-04-22add check_ldap testGravatar Sven Nierlein
install openldap on travis and grep base dn from slapcat. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-07-31tests: negate test fails when not run from plugins folderGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-31tests: get current directory the perl wayGravatar Sven Nierlein
instead of hoping to have it in the environment. This at least broke tests on solaris. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-30check_dns: added test for nonresponsive dns server (#982)Gravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-07-21plugins/t/check_dns.t: Fix Perl warningGravatar Holger Weiss
Perl said: "Unrecognized escape \d passed through at ./t/check_dns.t line 57."
2014-07-20travis-ci: Adding ports for check_hpjdGravatar Jan Wagner
2014-07-20added tests for check_hpjd port optionsGravatar abrist
--- Closes #1160 and #973
2014-07-20check_ntp.t - fixed tests for new status outputGravatar abrist
closes #1236 and #1239
2014-07-10check_procs: Add delay after forking in testGravatar Mikael Falkvidd
Forking raises a race condition, where the parent might run the test before the child has had time to fork. If that happens, an error similar to this is produced: Failed test 'Output correct' at ./t/check_procs.t line 32. 'PROCS OK: 0 processes with args 'sleep 7' | processes=0;;;0;' doesn't match '/^PROCS OK: 1 process?/' Sleeping a bit should avoid the problem. It might be enough to sleep less than a second, but perl's built-in sleep function only supports integer seconds. In our build environment, the build failed 3 of 4 times before this patch. After the patch it failed 0 of 7 times. Signed-off-by: Mikael Falkvidd <mfalkvidd@op5.com>