aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
AgeCommit message (Collapse)Author
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>
2014-06-30Merge PR #1265 from waja/check_tcp_server_addrGravatar Jan Wagner
2014-06-30check_jabber.t - fixed tests for new status output including hostnameGravatar abrist
2014-06-28tests: added check_dns performance data testGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-06-24tests: always build and test on travisGravatar Sven Nierlein
also make test is now working on travis-ci Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-06-13tests: fping checks require being root or setuid rootGravatar Sven Nierlein
on the fping binary. Check this before running the test. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-04-24check_snmp: Handle SNMPv3 noAuthNoPriv properlyGravatar Anton Lofgren
The SNMPv3 noAuthNoPriv security level, somewhat unintuitively, requires a security name to be passed along together with the request. Check_snmp previously did not do this, causing snmpget to throw an error: "External command error: No log handling enabled - turning on stderr logging snmpget: No securityName specified" This patch fixes the issue by always providing the security name when noAuthNoPriv is specified. See also: https:://bugs.op5.com/view.php?id=8385. Signed-off-by: Anton Lofgren <alofgren@op5.com>
2014-01-29TypoGravatar Thomas Guyot-Sionnest
2014-01-28Clarify check_mysql test promptsGravatar Thomas Guyot-Sionnest
Also default to "-u test -ptest" which are default MySQL accounts only missing the prescribed privileges. The database is no longer specified as it is not used. If wanted is should be its own parameter/tests.
2014-01-21Merge branch 'maint'Gravatar Holger Weiss
* maint: check_ssh: Get rid of sshd: Read from socket failed: Connection reset by peer fixed tests when there is no direct internet connection NEWS: Mention fix for check_http's -S option Fix for SSL Versioning when multiple options are used. Fix #1217 spec file fails to build due to duplicate files and unused files check_http: Don't let "-N" expect an argument README: Change GitHub URL README: Clarify license notice Update URLs and mailing list addresses Just using the posix conform extended regular expression grep check_oracle: --db +ASM bad string matching check_oracle doesn't correctly check for pmon +ASM instance from at least Oracle 11 as the pmon proces was renamed from ora_pmon_.* to asm_pmon_.*. -- Just turning attached patch of github issue #1207 into a push request. (Closes #1207) Update web site URLs Conflicts: FAQ NEWS README SUPPORT configure.in monitoring-plugins.spec.in pkg/solaris/pkginfo.in plugins-root/check_dhcp.c plugins-root/check_icmp.c plugins-scripts/check_ifoperstatus.pl plugins-scripts/check_mssql.pl plugins/check_apt.c plugins/check_by_ssh.c plugins/check_cluster.c plugins/check_dbi.c plugins/check_dig.c plugins/check_disk.c plugins/check_dns.c plugins/check_dummy.c plugins/check_fping.c plugins/check_game.c plugins/check_hpjd.c plugins/check_http.c plugins/check_ide_smart.c plugins/check_ldap.c plugins/check_load.c plugins/check_mrtg.c plugins/check_mrtgtraf.c plugins/check_mysql.c plugins/check_mysql_query.c plugins/check_nagios.c plugins/check_nt.c plugins/check_ntp.c plugins/check_ntp_peer.c plugins/check_ntp_time.c plugins/check_nwstat.c plugins/check_overcr.c plugins/check_pgsql.c plugins/check_ping.c plugins/check_procs.c plugins/check_radius.c plugins/check_real.c plugins/check_smtp.c plugins/check_snmp.c plugins/check_ssh.c plugins/check_swap.c plugins/check_tcp.c plugins/check_time.c plugins/check_ups.c plugins/check_users.c plugins/negate.c plugins/urlize.c plugins/utils.h po/Makevars po/de.po po/fr.po po/monitoring-plugins.pot
2014-01-20Minor fixes to be amended into "rename" commitGravatar Holger Weiss