Module: check_mk
Branch: master
Commit: 43b8953672f2196685e9c115e30588e9e2981d60
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=43b8953672f219…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jun 6 13:38:32 2017 +0200
4770 FIX ipmi_sensors: Added performance data for all temperature sensors
Change-Id: Idc3eac106467133bbb74632e3a376bb413c1d20e
---
.werks/4770 | 11 +++++++++++
checks/ipmi_common.include | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/4770 b/.werks/4770
new file mode 100644
index 0000000..9f2f128
--- /dev/null
+++ b/.werks/4770
@@ -0,0 +1,11 @@
+Title: ipmi_sensors: Added performance data for all temperature sensors
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1496749032
+
+
diff --git a/checks/ipmi_common.include b/checks/ipmi_common.include
index d6a71e3..e568fe8 100644
--- a/checks/ipmi_common.include
+++ b/checks/ipmi_common.include
@@ -95,7 +95,8 @@ def check_ipmi_common_detailed(item, params, data, what,
status_txt_mapping):
old_perf_val += unit
perfdata = [ (item, old_perf_val, warn_high, crit_high) ]
- elif what == "freeipmi" and "temperature" in item.lower():
+ elif what == "freeipmi" and \
+ ("temperature" in item.lower() or "temp" in
item.lower()):
# Do not save performance data for FANs. This produces
# much data and is - in my opinion - useless.
perfdata = [ ("value", val, None, crit_high) ]