Module: check_mk
Branch: master
Commit: 17ccf05a9f6eeae392b8a2c9e66a4becf2c4a836
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=17ccf05a9f6eea…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri May 6 08:51:33 2016 +0200
3528 FIX netapp_api_protocol: fixed service discovery problem with older 7mode versions
---
.werks/3528 | 10 ++++++++++
ChangeLog | 1 +
checks/netapp_api_protocol | 4 ++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/3528 b/.werks/3528
new file mode 100644
index 0000000..15ad8cc
--- /dev/null
+++ b/.werks/3528
@@ -0,0 +1,10 @@
+Title: netapp_api_protocol: fixed service discovery problem with older 7mode versions
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1462517440
+Class: fix
+
+
+
diff --git a/ChangeLog b/ChangeLog
index 08ef33a..cc8dabc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -208,6 +208,7 @@
* 3563 FIX: fortigate_sslvpn: Fixed broken manpage
* 3564 FIX: logwatch_ec: Fixed discovery when Logwatch Event Console Forwarding rule
is set to "No forwarding"
* 3565 FIX: wmi checks: Fixed deprecation warning when WMI keys can not be found in
agent output
+ * 3528 FIX: netapp_api_protocol: fixed service discovery problem with older 7mode
versions
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/netapp_api_protocol b/checks/netapp_api_protocol
index f72f48f..05d3353 100644
--- a/checks/netapp_api_protocol
+++ b/checks/netapp_api_protocol
@@ -34,8 +34,8 @@
def inventory_netapp_api_protocol(parsed):
for key, values in parsed.items():
- if len(values) > 2: # only report instances which actuall have infos
- yield values["instance_name"], None
+ if len(values) > 2: # only create checks for protocols with infos
+ yield values["protocol"], None
def check_netapp_api_protocol(item, _no_params, parsed):
counter_data = parsed.get(item)