Module: check_mk
Branch: master
Commit: 437ceaedbd653d11a83013e4a82111cdc16e75b3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=437ceaedbd653d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue May 14 16:22:25 2013 +0200
FIX: ipmi_sensors: ignore sensors in state [NA] (not available)
---
ChangeLog | 1 +
checks/ipmi_sensors | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 678a8e7..ef50023 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -131,6 +131,7 @@
* FIX: apache_status: use (also) apache_status.cfg instead of apache_status.conf
* FIX: f5_bigip_vserver: fix wrong OID (13 instead of 1), thanks to Miro Ramza
* FIX: f5_bigip_psu: handle more than first power supply, thanks to Miro Ramza
+ * FIX: ipmi_sensors: ignore sensors in state [NA] (not available)
1.2.2p1:
diff --git a/checks/ipmi_sensors b/checks/ipmi_sensors
index 6c4f511..9d89ea9 100644
--- a/checks/ipmi_sensors
+++ b/checks/ipmi_sensors
@@ -60,7 +60,7 @@
# 3680 Fan_FAN_PSU2 0.00_RPM_(2760.00/NA) [OK]
def inventory_freeipmi(info):
- return [ (line[1], "", None) for line in info if line[-1] !=
'[Unknown]' ]
+ return [ (line[1], "", None) for line in info if line[-1] not in (
'[Unknown]', '[NA]' ) ]
def check_freeipmi(item, _no_params, info):
for line in info: