Module: check_mk
Branch: master
Commit: 13f7d2c791ab64bc4f7ac2348cf3f3ac99e66e24
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=13f7d2c791ab64…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Mon Mar 30 17:01:07 2015 +0200
#2110 FIX netapp_api_aggr: check did not take configured levels when using Nagios
---
.werks/2110 | 10 ++++++++++
ChangeLog | 1 +
checks/netapp_api_aggr | 16 +++++++++-------
3 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/.werks/2110 b/.werks/2110
new file mode 100644
index 0000000..c0f040b
--- /dev/null
+++ b/.werks/2110
@@ -0,0 +1,10 @@
+Title: netapp_api_aggr: check did not take configured levels when using Nagios
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1427727624
+
+
diff --git a/ChangeLog b/ChangeLog
index 22e50d8..bb712c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -292,6 +292,7 @@
* 2109 FIX: netapp_api_volumes: now using the defined levels when using the Nagios
core
* 1241 FIX: hp_prolaint: Unkown state is not longer handled as OK...
* 2171 FIX: netapp_api_vf_status: Handling "DR backup" as normal (OK) state
now
+ * 2110 FIX: netapp_api_aggr: check did not take configured levels when using Nagios
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/netapp_api_aggr b/checks/netapp_api_aggr
index 22ee9e2..d9f6a02 100644
--- a/checks/netapp_api_aggr
+++ b/checks/netapp_api_aggr
@@ -48,12 +48,14 @@ def check_netapp_api_aggr(item, params, parsed):
return df_check_filesystem_list(item, params, [(item, size_total, size_avail, 0)])
check_info["netapp_api_aggr"] = {
- 'check_function' : check_netapp_api_aggr,
- 'parse_function' : lambda info: netapp_api_convert_info(info,
+ 'check_function' : check_netapp_api_aggr,
+ 'parse_function' : lambda info: netapp_api_convert_info(info,
configs = {"aggr-list-info":
{"block-name": "aggr-info", "key": "name"}}),
- 'inventory_function' : inventory_netapp_api_aggr,
- 'service_description' : 'Aggregation %s',
- 'group' : 'filesystem',
- 'has_perfdata' : True,
- 'includes' : [ "df.include",
"netapp_api.include" ]
+ 'inventory_function' : inventory_netapp_api_aggr,
+ 'service_description' : 'Aggregation %s',
+ 'group' : 'filesystem',
+ 'has_perfdata' : True,
+ 'includes' : [ "df.include",
"netapp_api.include" ]
+ 'default_levels_variable' : 'filesystem_default_levels',
+
}