aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests
AgeCommit message (Collapse)Author
2014-01-27Rename MP_STATE_DIRECTORY to MP_STATE_PATHGravatar Thomas Guyot-Sionnest
2014-01-25Rename ENV variable, keep backward compatibilityGravatar Thomas Guyot-Sionnest
Rename NAGIOS_PLUGIN_STATE_DIRECTORY to MP_STATE_DIRECTORY
2014-01-21New default installation prefix: /usr/localGravatar Holger Weiss
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.Gravatar Monitoring Plugins Development Team
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" testsGravatar Holger Weiss
2013-08-18added ability to check regex against http headers. booyah!Gravatar linkslice
2012-08-10tests/check_http.t: Fix whitespace issuesGravatar Holger Weiss
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 testsGravatar Holger Weiss
2012-08-10tests/check_http.t: Fix test caseGravatar Holger Weiss
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-27check_snmp: use single quotes for perf data labelsGravatar Sven Nierlein
2012-06-26Fix performance data label containing spaces in check_snmp (Jochen Bern)Gravatar Sven Nierlein
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 valuesGravatar William Leibzon
2011-02-04check_http: check for and print the certificate cnGravatar Thomas Guyot-Sionnest
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' ↵Gravatar Ton Voon
parsing of performance data. Now replaced with ','
2011-01-05Test updates...Gravatar Thomas Guyot-Sionnest
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-11-30Fix minor test issuesGravatar Thomas Guyot-Sionnest
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-11-30Revert "check_snmp now considers strings returned by SNMP that contain just"Gravatar Thomas Guyot-Sionnest
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-11-30State-based tests enhancementsGravatar Thomas Guyot-Sionnest
- 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 justGravatar nagios
numbers (according to strtod) to be a numeric value for threshold and performance data
2010-06-30Corrected rate_multiplier calculationGravatar tonvoon
2010-06-30Removed suffix of "-rate" and let user decide label via --labelGravatar tonvoon
2010-06-30Tests for --rate-multiplier optionGravatar tonvoon
2010-06-23Added option to invert search resultsGravatar tonvoon
2010-06-23Display missing search string and URL when failed (Duncan Ferguson #2999924)Gravatar tonvoon
2010-06-23Added state retention APIs. Implemented for check_snmp with --rate option.Gravatar Ton Voon
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-21Fix tests and update NEWS fileGravatar Thomas Guyot-Sionnest
2010-04-21Attempt at fixing check_snmp multiline output:Gravatar Thomas Guyot-Sionnest
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 additionalGravatar Thomas Guyot-Sionnest
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 agentGravatar Thomas Guyot-Sionnest
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 ↵Gravatar Matthias Eble
(sf.net #2731755, debian #521097)
2009-03-21check_http: add --onredirect=stickyport - also follow the same portGravatar Thomas Guyot-Sionnest
2009-03-20tests/check_http.t: Add various timeout-related testsGravatar Thomas Guyot-Sionnest
2009-03-19Revert "Add timezone support and fix checks around cert expiration" (keep ↵Gravatar Thomas Guyot-Sionnest
the expiration fix) This reverts commit d41a33a434558189300113c28b26e2d3d681d390.
2009-03-18Add timezone support and fix checks around cert expirationGravatar Thomas Guyot-Sionnest
2009-03-16Update extended check_http tests for 0d78171...Gravatar Thomas Guyot-Sionnest
Also add some tests, and make debug mode loop infinitely.
2009-03-06Create expired cert for testing purposes. Updated tests to checkGravatar Ton Voon
expired and unexpired certificates
2009-03-05Added inline tests for HTTPS using HTTP::Daemon::SSLGravatar Ton Voon
2009-02-19Fixed coredump from check_nt when drive not found (Olli Hauer - SF 2179754)Gravatar Ton Voon
2008-11-08Fixed bug where extra headers and redirect caused segfault (Dieter Van de ↵Gravatar Ton Voon
Walle - 2089159) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2076 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08check_http now has options to specify the HTTP method (Jan - 2155152)Gravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2075 f882894a-f735-0410-b71e-b25c423dba1c
2008-09-25Fix small test failureGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2056 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25Fix HTTP::Daemon::VERSION to get a fixed header size for testsGravatar Ton Voon
(Sven Nierlein) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2048 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25Updated with more tests re: multiple status codes (Sven Nierlein)Gravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2047 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25The "-e" option now accepts a comma-delimited list of expected statusGravatar Holger Weiss
lines (Sven Nierlein - 1894496). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2046 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-22Added HTTP tests for status codesGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2045 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-18Include test for check_procs, using input fileGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1955 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-18Updated check_procs with a hidden --input-file option.Gravatar Ton Voon
Include some sample outputs for testing git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1954 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-13Move new util_* functions to lib/Gravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-12Moving parameter_list into utils_disk.h. Given list of mount points, canGravatar Ton Voon
now work out best match or exact match. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1448 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-12Moving check_disk functions into utils_disk.c and testing themGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1447 f882894a-f735-0410-b71e-b25c423dba1c