diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-03-16 01:37:00 -0400 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-03-16 01:37:00 -0400 |
commit | e2aec83e61487916d32ac98bd4c3171cd6899efd (patch) | |
tree | 9409571979ff96ec1678b63fedd565ef9377cac8 /plugins/t/check_snmp.t | |
parent | 12c17fe8a25ada493a87ed3d5a5885e3414052ac (diff) | |
download | monitoring-plugins-e2aec83e61487916d32ac98bd4c3171cd6899efd.tar.gz |
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)
Diffstat (limited to 'plugins/t/check_snmp.t')
-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 4820aace..c2c965d4 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/', "String matches invalid host"); | 97 | like($res->output, '/External command error: .*(nosuchhost|Name or service not known)/', "String matches invalid host"); |
98 | } | 98 | } |
99 | 99 | ||
100 | } | 100 | } |