Module: check_mk
Branch: master
Commit: 4977cb0d595b2cbd6883b0c762f00224645de0b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4977cb0d595b2c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 6 10:33:40 2015 +0100
#2737 FIX bluecoat_sensors: fix crash when using Nagios as core (missing include)
Thanks to Markus Weber!
---
.werks/2737 | 9 +++++++++
ChangeLog | 1 +
checks/bluecoat_sensors | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/2737 b/.werks/2737
new file mode 100644
index 0000000..997762d
--- /dev/null
+++ b/.werks/2737
@@ -0,0 +1,9 @@
+Title: bluecoat_sensors: fix crash when using Nagios as core (missing include)
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1446802395
+Class: fix
+
+Thanks to Markus Weber!
diff --git a/ChangeLog b/ChangeLog
index 0a0c94b..cd35d9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,7 @@
* 1301 FIX: cmciii: Some rewrites of the cmciii Temperature and Power Phase
Checks...
NOTE: Please refer to the migration notes!
* 2735 FIX: esx_vsphere_datastores: fix labelling, help and performance data of
provisioned space...
+ * 2737 FIX: bluecoat_sensors: fix crash when using Nagios as core (missing
include)...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/bluecoat_sensors b/checks/bluecoat_sensors
index c8e1bb1..feb8c83 100644
--- a/checks/bluecoat_sensors
+++ b/checks/bluecoat_sensors
@@ -75,6 +75,6 @@ check_info["bluecoat_sensors"] = {
'service_description': '%s',
'has_perfdata': True,
'snmp_info': ('.1.3.6.1.4.1.3417.2.1.1.1.1.1', [9, 5,
7, 4, 3]),
- 'snmp_scan_function': \
- lambda oid: '1.3.6.1.4.1.3417.1.1' in oid(".1.3.6.1.2.1.1.2.0"),
+ 'snmp_scan_function': lambda oid: '1.3.6.1.4.1.3417.1.1' in
oid(".1.3.6.1.2.1.1.2.0"),
+ 'includes': [ "temperature.include" ],
}