diff options
author | Thomas Guyot-Sionnest <dermoth@solaris.beaubien.net> | 2009-03-16 18:49:51 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@solaris.beaubien.net> | 2009-03-16 18:49:51 -0500 |
commit | c3c528952d593dea59c2b6dcee05bab625db307a (patch) | |
tree | b0f85865b2a6e2500b926a3dfe242964561448f0 | |
parent | d89d0b40f9cef4c1e04127dc4f71fad5057e1930 (diff) | |
download | monitoring-plugins-c3c528952d593dea59c2b6dcee05bab625db307a.tar.gz |
Fix check_snmp test on solaris
-rw-r--r-- | plugins/t/check_snmp.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t index c2c965d4..6d3dcb4a 100644 --- a/plugins/t/check_snmp.t +++ b/plugins/t/check_snmp.t | |||
@@ -94,7 +94,7 @@ SKIP: { | |||
94 | skip "no non invalid host defined", 2 if ( ! $hostname_invalid ); | 94 | skip "no non invalid host defined", 2 if ( ! $hostname_invalid ); |
95 | $res = NPTest->testCmd( "./check_snmp -H $hostname_invalid -C $snmp_community -o system.sysUpTime.0 -w 1: -c 1:"); | 95 | $res = NPTest->testCmd( "./check_snmp -H $hostname_invalid -C $snmp_community -o system.sysUpTime.0 -w 1: -c 1:"); |
96 | cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); | 96 | cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); |
97 | like($res->output, '/External command error: .*(nosuchhost|Name or service not known)/', "String matches invalid host"); | 97 | like($res->output, '/External command error: .*(nosuchhost|Name or service not known|Unknown host)/', "String matches invalid host"); |
98 | } | 98 | } |
99 | 99 | ||
100 | } | 100 | } |