From e2aec83e61487916d32ac98bd4c3171cd6899efd Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Mon, 16 Mar 2009 01:37:00 -0400 Subject: check_snmp fixes: - Fix broken compilation caused by typo in command ending - Remove extra whitespaces at EOL - Fix invalid host test on Ubuntu Hardy (and possibly others) --- plugins/t/check_snmp.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/t') diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t index 4820aace..c2c965d4 100644 --- a/plugins/t/check_snmp.t +++ b/plugins/t/check_snmp.t @@ -94,7 +94,7 @@ SKIP: { skip "no non invalid host defined", 2 if ( ! $hostname_invalid ); $res = NPTest->testCmd( "./check_snmp -H $hostname_invalid -C $snmp_community -o system.sysUpTime.0 -w 1: -c 1:"); cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); - like($res->output, '/External command error: .*nosuchhost/', "String matches invalid host"); + like($res->output, '/External command error: .*(nosuchhost|Name or service not known)/', "String matches invalid host"); } } -- cgit v1.2.3