Module: check_mk
Branch: master
Commit: 41cfda1174893a81983264cc20fff17444efa0ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=41cfda1174893a…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Fri Sep 27 13:58:30 2013 +0200
small fix of output syntax
---
checks/ups_capacity | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/ups_capacity b/checks/ups_capacity
index d376435..4fb4566 100644
--- a/checks/ups_capacity
+++ b/checks/ups_capacity
@@ -72,11 +72,11 @@ def check_ups_capacity(item, params, info):
cap_label = ""
if time_on_bat > crit:
state = 2
- time_label = "On battery since %ds(%ds/%dss)(!!), " % time_on_bat,
warn, crit
+ time_label = "On battery since %ds(%ds/%ds)(!!), " % time_on_bat, warn,
crit
#return(2, "On battery since %ds(!!) " % time_on_bat + info_text,
perf)
elif time_on_bat > warn:
state = 1
- time_label = "On battery since %ds(%ds/%dss)(!)" % time_on_bat, warn,
crit
+ time_label = "On battery since %ds(%ds/%ds)(!)" % time_on_bat, warn,
crit
#return(1, "On battery since %ds(!) " % time_on_bat + info_text, perf)
if percent_fuel < cap_crit:
state = 2