summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/t
AgeCommit message (Collapse)AuthorFilesLines
2014-10-06check_file_age: Provide performance dataJonas Genannt1-1/+7
2014-07-31tests: check_disk_smb may exit with critical for unresponsive hosts tooSven Nierlein1-1/+1
Unknown (ex. debian 7) %> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv /usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du No Answer from Client Critical (ex. debian 8) %> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv /usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du Connection to 1.1.1.1 failed CRITICAL Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-01-24check_file_age: support for --ignore-missingJan Wagner1-1/+6
Patch to provide for a -i | --ignore-missing option. This allows files that don't exist to be monitored for without causing an error. The use case is: * one process periodically pushes files to an "input" queue for a second process * the second process, when running cleanly will "consume" (process and remove) these files So the conditions to meet are: 1. If the file doesn't exist, that's fine (OK) 2. If the file exists, but is less than X seconds, that's fine (OK) 3. If the file exists, but greater than X seconds, no good (CRITICAL) Since now check_file_age doesn't permit this behavior, as a non-existent file is considered CRITICAL. Test case was contributed by our lovely Holger. Closes #1181, Closes #989, Closes #862, Closes #1187, Closes #845 Closes Debian Bug #496307
2013-09-17check_disk_smb: fixed number of tests to skipSven Nierlein1-5/+5
2010-11-28add test cases for check_disk_smbMatthias Eble1-0/+96
2009-06-13Fixed testcases for check_snmp, check_ifstatus and check_ifoperstatus when ↵Matthias Eble2-6/+10
no snmp community is specified The checks for invalid/unavailable hosts need a complete command line. They failed on hosts where no community was specified. Now, an invalid community is used so the tests can run on hosts w/o snmp host/community in NPTest.cache. Execution will fail anyway.
2009-06-13Further test parameters and skip blocks for check_ifoperstatus.t. ↵Matthias Eble2-23/+43
getTestparam changes for check_ifstatus.t and ifoperstatus.t Added snmp_interface and snmp_ifxtable test parameters to check_ifoperstatus.t. Also getTestParameter calls for both plugins were converted to use three arguments instead of undocumented >3 arg behaviour which led to redundant data in NPTest.cache.
2009-06-11Fixed SNMPv3 behaviour of check_ifstatus. Added -P to define privprotocol ↵Matthias Eble1-0/+63
(#2343438 - Robin Schroeder) check_ifstatus didn't function correctly with SNMPv3. This is fixed now. Created argument-hash for SNMP session creation. This removes redundant code. Session creation was moved out of process_arguments() and now takes place after setting the timeout handler. Additionally the -P argument was added to specify the privprotocol.
2009-06-11Added testcases for check_ifoperstatusMatthias Eble1-0/+73
Added testcases for check_ifoperstatus. No SNMPv3 testing included for now.
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest3-3/+0
For contrib/, full tags have been imported from subversion git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2006-12-12Enhanced test for single letters in fqdnTon Voon1-0/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1549 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-27More edge testcases. Allow anything if ends with a . as long as correctTon Voon1-3/+18
characters git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1531 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-26Fixed regression where hostnames with hyphens were rejected (1581402 - ↵Ton Voon1-0/+34
Holger Weiss) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1528 f882894a-f735-0410-b71e-b25c423dba1c
2005-12-15Allow directories and links to be tested by check_file_age. Sanitise output.Ton Voon1-0/+88
Added tests git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1297 f882894a-f735-0410-b71e-b25c423dba1c
2005-07-25[1185704] New Testing Infrastructure.Peter Bray1-10/+13
Complete rewrite of the original testing infrastructure and all test cases (to use the new infrastructure) See NPTest.pm and issue 1185704 for more details. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1207 f882894a-f735-0410-b71e-b25c423dba1c
2002-02-28Initial revisionEthan Galstad1-0/+19
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2 f882894a-f735-0410-b71e-b25c423dba1c