summaryrefslogtreecommitdiffstats
path: root/plugins/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-07-31tests: skip extented snmp tests if snmpd has no perl supportSven Nierlein1-1/+10
solaris snmpd has no perl support by default, so this test will fail. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-21plugins/tests/check_http.t: Adjust date stringsHolger Weiss1-4/+4
Adjust the expected date strings to the now-localized output produced by plugins/sslutils.c. Closes #1275.
2014-06-13tests: freebsds snmpd does not use quotesSven Nierlein1-1/+1
when returning syscontact. So make them optional since we want to test check_snmp and not the snmpd. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-06-13tests: check_proc tests fail if uid -2 does not map to nobodySven Nierlein1-0/+1
so make sure our tests only run if -2 maps to nobody Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-06-13require at least HTTP::Daemon 6.01Sven Nierlein1-1/+2
since the test uses send_header from HTTP::Daemon::ClientConn which has been introduced in HTTP::Daemon 6.01
2014-06-12tests: testCmd has own timeout which overwrites local oneSven Nierlein1-15/+9
so add configurable/optional timeout to testCmd. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-06-12tests: parts of the check_procs test only work when uid -2 existsSven Nierlein1-12/+16
skip those tests if the uid does not exist Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-02-18check_procs test fails if there is no user with uid 501Sven Nierlein1-9/+17
thats because check_procs verifys there is a user for a given uid filter. So even we use sample data for this test, we still need a real user. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-01-31Add perfdata in check_proc output testsThomas Guyot-Sionnest1-15/+15
2014-01-31Fix snmpd testsThomas Guyot-Sionnest1-1/+1
2014-01-31Enable tests in tests/ subdirsThomas Guyot-Sionnest1-0/+0
2014-01-31Add tests for negative thresholds in check_snmpThomas Guyot-Sionnest2-8/+36
Next commit will work on fixing these!
2014-01-27Rename MP_STATE_DIRECTORY to MP_STATE_PATHThomas Guyot-Sionnest1-2/+2
2014-01-25Rename ENV variable, keep backward compatibilityThomas Guyot-Sionnest1-2/+2
Rename NAGIOS_PLUGIN_STATE_DIRECTORY to MP_STATE_DIRECTORY
2014-01-21New default installation prefix: /usr/localHolger Weiss1-1/+1
Install into /usr/local instead of /usr/local/nagios by default, in order to comply with the Filesystem Hierarchy Standard (FHS) and presumably the expectations of most users.
2014-01-19Project rename initial commit.Monitoring Plugins Development Team2-3/+3
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
2013-08-18Fix the "check_http -d" testsHolger Weiss1-4/+4
2013-08-18added ability to check regex against http headers. booyah!linkslice1-0/+11
2012-08-10tests/check_http.t: Fix whitespace issuesHolger Weiss1-10/+8
In tests/check_http.t, tabs are used for indentation. While at it, apply another few cosmetic changes.
2012-08-10tests/check_http.t: Update the number of SSL testsHolger Weiss1-1/+1
2012-08-10tests/check_http.t: Fix test caseHolger Weiss1-1/+1
Fix the test case which is meant to make sure that check_http -C <n>,<m> [...] returns a CRITICAL state if <m> is large enough.
2012-06-26check_snmp: use single quotes for perf data labelsSven Nierlein1-1/+5
2012-06-26Fix performance data label containing spaces in check_snmp (Jochen Bern)Sven Nierlein1-1/+22
Add --perf-oids option for check_snmp to retain optional 1.4.14 compatibility
2012-06-25added test case for certificate checs with both warning and critical valuesWilliam Leibzon1-0/+4
2011-02-04check_http: check for and print the certificate cnThomas Guyot-Sionnest1-3/+3
This patch adds a check for the certificate cn (hostname) to normal certificate checks. It returns CRITICAL if th cn is missing, otherwise it prints it in the normal output. Patch by Stéphane Urbanovski
2011-01-21Fix for regex input of '|', being output causing problems with Nagios' ↵Ton Voon1-1/+5
parsing of performance data. Now replaced with ','
2011-01-06Test updates...Thomas Guyot-Sionnest2-4/+8
1. Timetick test could fail with uptime > 115 days. Thresholds are double type, so it's safe to put a large number even for 32bit systems. 2. Add a test based on an invalid bug report, worthy anyway.
2010-12-01Fix minor test issuesThomas Guyot-Sionnest2-21/+28
My Test::More wouldn't print the total number of tests anymore, moving the plan at the top appears to fix it. At the same time I made check-http.t eval the special modules so it can skip the tests instead of failing.
2010-12-01Revert "check_snmp now considers strings returned by SNMP that contain just"Thomas Guyot-Sionnest1-5/+1
This reverts commit 896962a1ad1b7d7c75d42c565b06cc799feb0a7c. Conflicts: NEWS plugins/tests/check_snmp.t Notes: Reverting because I rebased a patch that was doing the same thing, plus fixing more related regressions, and both didn't work together. I kept the tests intact except for one that wouldn't pass on 1.4.14 either
2010-12-01State-based tests enhancementsThomas Guyot-Sionnest1-1/+4
- Use /var/tmp for state if no state dir environment variable is set, this avoid the need for a writable localstatedir during tests. - Use "rm -f", mostly to avoid printing out garbage of the directory doesn't exists
2010-11-15check_snmp now considers strings returned by SNMP that contain justnagios2-4/+19
numbers (according to strtod) to be a numeric value for threshold and performance data
2010-06-30Corrected rate_multiplier calculationtonvoon1-1/+1
2010-06-30Removed suffix of "-rate" and let user decide label via --labeltonvoon1-5/+5
2010-06-30Tests for --rate-multiplier optiontonvoon1-0/+13
2010-06-23Added option to invert search resultstonvoon2-4/+20
2010-06-23Display missing search string and URL when failed (Duncan Ferguson #2999924)tonvoon1-1/+9
2010-06-23Added state retention APIs. Implemented for check_snmp with --rate option.Ton Voon2-4/+41
See http://nagiosplugin.org/c-api-private for more details on the API. Also updated check_snmp -l option to change the perfdata label.
2010-04-22Fix tests and update NEWS fileThomas Guyot-Sionnest1-4/+49
2010-04-22Attempt at fixing check_snmp multiline output:Thomas Guyot-Sionnest1-6/+15
This patch tries to detect and output nicely multi-line strings. This method is broken by design; only a count of double-quotes and escapes could work in every situation.
2009-09-05Add a test that succeeds on check_snmp v1.4.13. Newer versions skip additionalThomas Guyot-Sionnest1-1/+8
lines so this new test fails on the current head. Note: check_snmp v1.4.13 with multi-line strings return somewhat v3 output; it's not exactly what the specs say but it doesn't appears to break them either. The fix could eventually supports both v2 and v3 output formats.
2009-07-31Add tests using custom snmp agentThomas Guyot-Sionnest3-0/+180
Only multi-line string test for now (regression test), counter rollover tests planed with my snmp_counters_new branch. NB: 64bit counters are broken in NetSNMP::agent from NetSNMP version 5.4.1 and lower, but might come in handy one day
2009-05-01Fixed crash from check_nt when -H unspecified or given multiple times ↵Matthias Eble1-1/+4
(sf.net #2731755, debian #521097)
2009-03-21check_http: add --onredirect=stickyport - also follow the same portThomas Guyot-Sionnest1-12/+36
2009-03-20tests/check_http.t: Add various timeout-related testsThomas Guyot-Sionnest1-3/+51
2009-03-19Revert "Add timezone support and fix checks around cert expiration" (keep ↵Thomas Guyot-Sionnest1-3/+3
the expiration fix) This reverts commit d41a33a434558189300113c28b26e2d3d681d390.
2009-03-18Add timezone support and fix checks around cert expirationThomas Guyot-Sionnest1-3/+3
2009-03-16Update extended check_http tests for 0d78171...Thomas Guyot-Sionnest1-42/+39
Also add some tests, and make debug mode loop infinitely.
2009-03-06Create expired cert for testing purposes. Updated tests to checkTon Voon3-10/+92
expired and unexpired certificates
2009-03-05Added inline tests for HTTPS using HTTP::Daemon::SSLTon Voon3-128/+230
2009-02-19Fixed coredump from check_nt when drive not found (Olli Hauer - SF 2179754)Ton Voon1-0/+77