X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Ft%2Fcheck_snmp.t;h=6d3dcb4ac844820820e7b897087bd390459e1008;hb=c3c528952d593dea59c2b6dcee05bab625db307a;hp=4820aace81a698300a40031a7deabeaf40871f89;hpb=36e58ae0c3ad7a9d3660722b35d3ed9c97687dd2;p=nagiosplug.git diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t index 4820aac..6d3dcb4 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|Unknown host)/', "String matches invalid host"); } }