summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
authorOliver Skibbe <oliskibbe@gmail.com>2015-03-06 12:43:34 +0100
committerJan Wagner <waja@cyconet.org>2015-10-04 13:40:04 +0200
commit2d677b19ed34ff8171dbf07fb7744e560737d143 (patch)
treefc61840bdb04ddcaf26c2878649881a7556d42a1 /plugins/t
parent6ba26122f4746a7e16272b1b9546342820400a78 (diff)
downloadmonitoring-plugins-2d677b19ed34ff8171dbf07fb7744e560737d143.tar.gz
check_snmp: modified tests
(Closes #1325)
Diffstat (limited to 'plugins/t')
-rw-r--r--plugins/t/check_snmp.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t
index 2d6c44a7..aefd872a 100644
--- a/plugins/t/check_snmp.t
+++ b/plugins/t/check_snmp.t
@@ -166,8 +166,8 @@ SKIP: {
166SKIP: { 166SKIP: {
167 skip "no non responsive host defined", 2 if ( ! $host_nonresponsive ); 167 skip "no non responsive host defined", 2 if ( ! $host_nonresponsive );
168 $res = NPTest->testCmd( "./check_snmp -H $host_nonresponsive -C np_foobar -o system.sysUpTime.0 -w 1: -c 1:"); 168 $res = NPTest->testCmd( "./check_snmp -H $host_nonresponsive -C np_foobar -o system.sysUpTime.0 -w 1: -c 1:");
169 cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); 169 cmp_ok( $res->return_code, '==', 2, "Exit CRITICAL with non responsive host" );
170 like($res->output, '/External command error: Timeout: No Response from /', "String matches timeout problem"); 170 like($res->output, '/Plugin timed out while executing system call/', "String matches timeout problem");
171} 171}
172 172
173SKIP: { 173SKIP: {