Module: check_mk
Branch: master
Commit: 56aa339108f44827e9b251668b4895900e2026e9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=56aa339108f448…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Fri Mar 27 12:54:00 2015 +0100
#2109 FIX netapp_api_volumes: now using the defined levels when using the Nagios core
---
.werks/2109 | 10 ++++++++++
ChangeLog | 1 +
checks/netapp_api_volumes | 15 ++++++++-------
3 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/.werks/2109 b/.werks/2109
new file mode 100644
index 0000000..8c8d9f3
--- /dev/null
+++ b/.werks/2109
@@ -0,0 +1,10 @@
+Title: netapp_api_volumes: now using the defined levels when using the Nagios core
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1427457104
+
+
diff --git a/ChangeLog b/ChangeLog
index 9e4da13..f8b31f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -289,6 +289,7 @@
* 2164 FIX: printer_supply: Fixed handling different capacities than percentage when
used upturned levels
* 2169 FIX: jolokia_metrics.threads: Fixed graph template...
* 2170 FIX: jolokia_metrics_gc: Fixed exception when GC time not reported by server
+ * 2109 FIX: netapp_api_volumes: now using the defined levels when using the Nagios
core
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/netapp_api_volumes b/checks/netapp_api_volumes
index 8640cd4..0af8698 100644
--- a/checks/netapp_api_volumes
+++ b/checks/netapp_api_volumes
@@ -103,13 +103,14 @@ def check_netapp_api_volumes(item, params, parsed):
return state, info, perf
check_info["netapp_api_volumes"] = {
- 'check_function' : check_netapp_api_volumes,
- 'inventory_function' : inventory_netapp_api_volumes,
- 'parse_function' : lambda info: netapp_api_convert_info(info,
+ 'check_function' : check_netapp_api_volumes,
+ 'inventory_function' : inventory_netapp_api_volumes,
+ 'parse_function' : lambda info: netapp_api_convert_info(info,
configs = {"volume-list-info":
{"block-name": "volume-info", "key": "name"}},
counter_key = "instance_name"),
- 'service_description' : 'Volume %s',
- 'has_perfdata' : True,
- 'group' : "netapp_volumes",
- 'includes' : [ "df.include",
"netapp_api.include" ]
+ 'service_description' : 'Volume %s',
+ 'has_perfdata' : True,
+ 'group' : "netapp_volumes",
+ 'includes' : [ "df.include",
"netapp_api.include" ],
+ "default_levels_variable" : "filesystem_default_levels",
}