Module: check_mk
Branch: master
Commit: bc3448ea20339bb117817f949d56e6d6b9c9b349
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bc3448ea20339b…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Apr 10 13:32:06 2017 +0200
8631 FIX netapp_api_luns: Fix nonsensical infotext, treat LUN offline status as CRIT
instead of WARN
Change-Id: I1d7cca70911d8a7e227e62688a73fd0a83b44978
---
.werks/8631 | 11 +++++++++++
checks/netapp_api_luns | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/8631 b/.werks/8631
new file mode 100644
index 0000000..b52fa23
--- /dev/null
+++ b/.werks/8631
@@ -0,0 +1,11 @@
+Title: netapp_api_luns: Fix nonsensical infotext, treat LUN offline status as CRIT
instead of WARN
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1491823896
+
+
diff --git a/checks/netapp_api_luns b/checks/netapp_api_luns
index df040f2..99844b3 100644
--- a/checks/netapp_api_luns
+++ b/checks/netapp_api_luns
@@ -45,7 +45,7 @@ def check_netapp_api_luns(item, params, parsed):
return
if lun.get("online") != "true":
- yield 1, "LUN is %s" % lun.get("online")
+ yield 2, "LUN is offline"
if lun.get("read-only") != "false":
yield 1, "read-only is %s" % lun.get("read-only")