[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2166] nagiosplug/trunk/plugins/t/check_snmp.t
dermoth at users.sourceforge.net
dermoth at users.sourceforge.net
Tue Mar 17 00:51:15 CET 2009
Revision: 2166
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2166&view=rev
Author: dermoth
Date: 2009-03-16 23:51:15 +0000 (Mon, 16 Mar 2009)
Log Message:
-----------
Fix check_snmp test on solaris
From: Thomas Guyot-Sionnest <dermoth at solaris.beaubien.net>
Modified Paths:
--------------
nagiosplug/trunk/plugins/t/check_snmp.t
Modified: nagiosplug/trunk/plugins/t/check_snmp.t
===================================================================
--- nagiosplug/trunk/plugins/t/check_snmp.t 2009-03-16 07:12:43 UTC (rev 2165)
+++ nagiosplug/trunk/plugins/t/check_snmp.t 2009-03-16 23:51:15 UTC (rev 2166)
@@ -94,7 +94,7 @@
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");
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list