Module: check_mk
Branch: master
Commit: 80f75d6038960e3a20a9a3b31c5644d543fa227c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=80f75d6038960e…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jan 8 12:53:35 2019 +0100
6999 FIX ipmi_sensors: Treat "S0/G0" as "System full operational,
working" state
Change-Id: I38003b0b5416bfd0cfa7718169b73204694194a5
---
.werks/6999 | 11 +++++++++++
checks/ipmi_sensors.include | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6999 b/.werks/6999
new file mode 100644
index 0000000..c339490
--- /dev/null
+++ b/.werks/6999
@@ -0,0 +1,11 @@
+Title: ipmi_sensors: Treat "S0/G0" as "System full operational,
working" state
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1546948273
+
+
diff --git a/checks/ipmi_sensors.include b/checks/ipmi_sensors.include
index b1857ae..865ef3d 100644
--- a/checks/ipmi_sensors.include
+++ b/checks/ipmi_sensors.include
@@ -124,7 +124,7 @@ def parse_freeipmi(info):
status_txt = status_txt[:-1]
if status_txt in ["NA", "N/A", "Unknown"] or
"_=_" in status_txt:
status_txt = None
- elif status_txt == "S0G0":
+ elif status_txt in ["S0G0", "S0/G0"]:
status_txt = "System full operational, working"
else:
status_txt = status_txt.replace("_", " ")