[monitoring-plugins] check_snmp: modified tests

Jan Wagner git at monitoring-plugins.org
Sun Oct 4 13:50:10 CEST 2015


    Module: monitoring-plugins
    Branch: maint
    Commit: 2d677b19ed34ff8171dbf07fb7744e560737d143
    Author: Oliver Skibbe <oliskibbe at gmail.com>
 Committer: Jan Wagner <waja at cyconet.org>
      Date: Fri Mar  6 12:43:34 2015 +0100
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=2d677b1

check_snmp: modified tests

(Closes #1325)

---

 plugins/t/check_snmp.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t
index 2d6c44a..aefd872 100644
--- a/plugins/t/check_snmp.t
+++ b/plugins/t/check_snmp.t
@@ -166,8 +166,8 @@ SKIP: {
 SKIP: {
     skip "no non responsive host defined", 2 if ( ! $host_nonresponsive );
     $res = NPTest->testCmd( "./check_snmp -H $host_nonresponsive -C np_foobar -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: Timeout: No Response from /', "String matches timeout problem");
+    cmp_ok( $res->return_code, '==', 2, "Exit CRITICAL with non responsive host" );
+    like($res->output, '/Plugin timed out while executing system call/', "String matches timeout problem");
 }
 
 SKIP: {



More information about the Commits mailing list