Module: check_mk
Branch: master
Commit: 438d0b2c5417c11a08d561376034486f554a9f8f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=438d0b2c5417c1…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon May 30 09:10:19 2016 +0200
3624 FIX oracle_asm_diskgroup: fixed dismounted disk handling
---
.werks/3624 | 10 ++++++++++
ChangeLog | 1 +
checks/oracle_asm_diskgroup | 4 ++++
3 files changed, 15 insertions(+)
diff --git a/.werks/3624 b/.werks/3624
new file mode 100644
index 0000000..a0fa9e4
--- /dev/null
+++ b/.werks/3624
@@ -0,0 +1,10 @@
+Title: oracle_asm_diskgroup: fixed dismounted disk handling
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1464592188
+
+
diff --git a/ChangeLog b/ChangeLog
index ca6847f..3b2da98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -241,6 +241,7 @@
* 3577 FIX: Solaris agent: Fixed performance issue introduced with #3389
* 3623 FIX: ipmi: fixed discrete sensor discovery if sensor is disabled
* 3578 FIX: df: Fixed exception when monitoring filesystems without inode infos
+ * 3624 FIX: oracle_asm_diskgroup: fixed dismounted disk handling
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/oracle_asm_diskgroup b/checks/oracle_asm_diskgroup
index deb8595..9518b3d 100644
--- a/checks/oracle_asm_diskgroup
+++ b/checks/oracle_asm_diskgroup
@@ -61,6 +61,10 @@ def check_oracle_asm_diskgroup(item, params, info):
dg_name = name.rstrip('/')
if dg_name == item:
+
+ if state == "DISMOUNTED":
+ return 2, "Disk dismounted"
+
add_text = ""
if typ in ('NORMAL', 'HIGH'):
if typ == 'NORMAL':