summaryrefslogtreecommitdiffstats
path: root/plugins/tests/check_snmp.t
AgeCommit message (Collapse)AuthorFilesLines
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-01-31Fix snmpd testsThomas Guyot-Sionnest1-1/+1
2014-01-31Add tests for negative thresholds in check_snmpThomas Guyot-Sionnest1-1/+29
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
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
2011-01-06Test updates...Thomas Guyot-Sionnest1-1/+4
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-Sionnest1-7/+7
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 justnagios1-1/+16
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 resultstonvoon1-1/+17
2010-06-23Added state retention APIs. Implemented for check_snmp with --rate option.Ton Voon1-1/+38
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
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-Sionnest1-0/+56
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