[checkmk-commits] Check_MK Git: check_mk: apc_inputs: Cleaned up infotext

Konstantin Büttner kb at mathias-kettner.de
Wed Apr 22 11:05:30 CEST 2015


Module: check_mk
Branch: master
Commit: 668313abc0e3511e79ec20574c34ceeed5595c97
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=668313abc0e3511e79ec20574c34ceeed5595c97

Author: Konstantin Büttner <kb at mathias-kettner.de>
Date:   Wed Apr 22 11:04:29 2015 +0200

apc_inputs: Cleaned up infotext

---

 checks/apc_inputs |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/checks/apc_inputs b/checks/apc_inputs
index 13ca8e0..bb09dd7 100644
--- a/checks/apc_inputs
+++ b/checks/apc_inputs
@@ -42,7 +42,7 @@ def check_apc_inputs(item, params, info):
     alarm_states = {
         '1' : "normal",
         '2' : "warning",
-        '3' : "cirtical",
+        '3' : "critical",
         '4' : "not applicable",
     }
     for name, location, state, alarm_status in info:
@@ -58,12 +58,10 @@ def check_apc_inputs(item, params, info):
 
             if params['state'] != state:
                 check_state = max( check_state, 1 )
-                messages.append("Port state Change from %s to %s(!)" % \
+                messages.append("Port state Change from %s to %s" % \
                     ( states[params['state']], states[state] ))
 
             return check_state, ", ".join(messages)
-    return 3, "Sensor not found"
-
 
 
 check_info['apc_inputs'] = {



More information about the checkmk-commits mailing list