Module: check_mk
Branch: master
Commit: 9724a0dfaf1f92992d0d2277fe3581c823c96a93
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9724a0dfaf1f92…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 12 08:08:29 2011 +0200
FIX: ipmi: fix ugly ouput in case of warning and error
---
ChangeLog | 1 +
checks/ipmi | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3be9e57..b524bc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,7 @@
* Allow moving hosts from one to another config file
Checks & Agents:
+ * FIX: ipmi: fix ugly ouput in case of warning and error
* FIX: vms_df: fix, was completely broken due to conversion to df.include
* FIX: blade_bays: add missing SNMP OIDs (check was always UNKNOWN)
* FIX: df: fix layout problems in PNP template
diff --git a/checks/ipmi b/checks/ipmi
index 2aba5b8..3b12ac8 100644
--- a/checks/ipmi
+++ b/checks/ipmi
@@ -149,6 +149,8 @@ def check_ipmi_summarized(info):
if len(crit_texts) > 0:
infotext += "critical are: %s" % ", ".join(crit_texts)
if len(warn_texts) > 0:
+ if infotext != "":
+ infotext += ", "
infotext += "warning are: %s" % ", ".join(warn_texts)
return (worst_status, "%s - %s" % (statname, infotext), perfdata)