Module: check_mk
Branch: master
Commit: cafe7e55ea7106ae427eebcc9d545be3da683b31
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cafe7e55ea7106…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Sep 21 10:06:31 2015 +0200
#2627 FIX knuerr_sensors: no longer creates a service for unnamed sensor
The device seems to send readings for unconnected sensor slots. A missing name seems to be
the only
indication that no sensor is connected.
---
.werks/2627 | 10 ++++++++++
ChangeLog | 1 +
checks/knuerr_sensors | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/2627 b/.werks/2627
new file mode 100644
index 0000000..5834fb7
--- /dev/null
+++ b/.werks/2627
@@ -0,0 +1,10 @@
+Title: knuerr_sensors: no longer creates a service for unnamed sensor
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1442822660
+Class: fix
+
+The device seems to send readings for unconnected sensor slots. A missing name seems to
be the only
+indication that no sensor is connected.
diff --git a/ChangeLog b/ChangeLog
index fe028fa..1f5b67a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -193,6 +193,7 @@
* 2428 FIX: "Clustered services for overlapping cluster": Improved rule
matching...
* 2608 FIX: kemp_loadmaster_ha: Fixed wrong discovery on snmp monitored linux
systems
* 2609 FIX: mysql_capacity: Can now handle sizes reported being NULL...
+ * 2627 FIX: knuerr_sensors: no longer creates a service for unnamed sensor...
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce
unhandled exceptions...
diff --git a/checks/knuerr_sensors b/checks/knuerr_sensors
index 968fcde..5b2e1db 100644
--- a/checks/knuerr_sensors
+++ b/checks/knuerr_sensors
@@ -26,7 +26,8 @@
def inventory_knuerr_sensors(info):
for sensor, state in info:
- yield sensor, None
+ if sensor:
+ yield sensor, None
def check_knuerr_sensors(item, _no_params, info):
for sensor, state in info: