summaryrefslogtreecommitdiffstats
path: root/plugins/t
AgeCommit message (Collapse)AuthorFilesLines
2021-05-24check_curl.c: bugfix: verify certificates option should not force SSL to be usedrefs/pull/1688/headBarak Shohat1-1/+1
2021-05-19Refactor check_fpingJacob Hansen1-15/+14
* 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 curlJacob Hansen1-2/+1
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_curlAksel Sjögren2-4/+4
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 actionsSven Nierlein1-54/+0
2021-04-30fix fping testSven Nierlein1-6/+3
in case of dns errors, fping returns an unknown and thats ok.
2021-04-07Merge pull request #1669 from bazzisoft/verify-certSven Nierlein1-1/+4
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 ↵refs/pull/1669/headBarak Shohat1-1/+4
system CA's
2021-04-07Updated check_curl.c to display a specific human-readable error message ↵refs/pull/1668/headBarak Shohat1-2/+2
where possible
2020-05-18update test parameter according to check_httpSven Nierlein1-26/+9
2019-04-04Merge branch 'master' into feature_check_curlAndreas Baumann14-205/+87
2019-02-04travis-ci: Use RSA keys for SSH testsrefs/pull/1580/headJan Wagner1-1/+1
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-06test: Add proxy tests via proxyrefs/pull/1476/headMarkus Frosch2-1/+27
On Travis with a local squid
2018-10-25check_curl: rewrite connect_to / host headersSven Nierlein1-1/+13
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 ↵Andreas Baumann1-1/+204
slightly
2018-10-22check_curl: make check_curl use the same tests as check_httpSven Nierlein2-233/+36
2018-10-22add check_curl testSven Nierlein1-0/+200
just a copy of check_http for now... Signed-off-by: Sven Nierlein <sven@nierlein.de>
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-01-04Merge remote-tracking branch 'upstream/pr/1457'Jan Wagner1-1/+17
2016-12-31Add --only-critical switch to check_aptrefs/pull/1457/headChristian Schmidt1-1/+17
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 infoNicolai1-2/+20
2016-11-20Creating and mounting randisk to make use of check_disk testsJan Wagner1-1/+1
2016-11-11check_http: add host header testsSven Nierlein1-1/+27
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07tests: enable snmp testsSven Nierlein1-2/+2
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-07check_snmp: fix number of tests skipedSven Nierlein1-1/+1
2016-11-07check_snmp: add testcase for no datatypeSven Nierlein1-1/+5
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07tests: adjust check_http to new output formatSven Nierlein1-2/+2
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07check_users: add new test casesSven Nierlein1-1/+3
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-02-22Let check_http test use HTTP/1.1Holger Weiss1-1/+1
2015-10-08Merge branch 'maint'Holger Weiss1-2/+2
* 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 testsOliver Skibbe1-2/+2
(Closes #1325)
2015-10-02add faketime based tests for check_httpSven Nierlein1-3/+40
2015-10-02travis: fix http test hostSven Nierlein1-1/+1
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-01travis: fix http test hostSven Nierlein1-1/+1
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-04-23check_ldap: fix number of skipable testsSven Nierlein1-2/+2
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2015-04-22add check_ldap testSven Nierlein2-0/+82
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 folderSven Nierlein1-1/+1
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-31tests: get current directory the perl waySven Nierlein1-1/+2
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)Sven Nierlein1-1/+11
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-07-21plugins/t/check_dns.t: Fix Perl warningHolger Weiss1-1/+1
Perl said: "Unrecognized escape \d passed through at ./t/check_dns.t line 57."
2014-07-20travis-ci: Adding ports for check_hpjdJan Wagner1-0/+2
2014-07-20added tests for check_hpjd port optionsabrist1-7/+28
--- Closes #1160 and #973
2014-07-20check_ntp.t - fixed tests for new status outputabrist1-2/+2
closes #1236 and #1239
2014-07-10check_procs: Add delay after forking in testrefs/pull/1272/headMikael Falkvidd1-1/+1
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>