summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d89d0b4)
raw | patch | inline | side by side (parent: d89d0b4)
author | Thomas Guyot-Sionnest <dermoth@solaris.beaubien.net> | |
Mon, 16 Mar 2009 23:49:51 +0000 (18:49 -0500) | ||
committer | Thomas Guyot-Sionnest <dermoth@solaris.beaubien.net> | |
Mon, 16 Mar 2009 23:49:51 +0000 (18:49 -0500) |
plugins/t/check_snmp.t | patch | blob | history |
diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t
index c2c965d4cc6715b53077328d898b3d5bd9e0089c..6d3dcb4ac844820820e7b897087bd390459e1008 100644 (file)
--- a/plugins/t/check_snmp.t
+++ b/plugins/t/check_snmp.t
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|Name or service not known)/', "String matches invalid host");
+ like($res->output, '/External command error: .*(nosuchhost|Name or service not known|Unknown host)/', "String matches invalid host");
}
}