[checkmk-commits] Check_MK Git: check_mk: SMART Plugin: ignore logical disks named LOGICAL_DRIVE

git version control git at mathias-kettner.de
Tue Nov 20 09:45:30 CET 2012


Module: check_mk
Branch: master
Commit: 51ee2972d6d3b03c887190b872a72790462c3917
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=51ee2972d6d3b03c887190b872a72790462c3917

Author: Florian Heigl <fh at mathias-kettner.de>
Date:   Tue Nov 20 09:45:10 2012 +0100

SMART Plugin: ignore logical disks named LOGICAL_DRIVE

---

 agents/plugins/smart |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/agents/plugins/smart b/agents/plugins/smart
index d5fd458..72045c5 100755
--- a/agents/plugins/smart
+++ b/agents/plugins/smart
@@ -36,7 +36,8 @@ if which smartctl > /dev/null 2>&1 ; then
         else
             MODEL=$(smartctl -a $D | grep -i "device model" | sed -e "s/.*:[ ]*//g" -e "s/\ /_/g")
         fi
-        if [ "$MODEL" = "iSCSI_Disk" ]; then
+        # Excluded disk models for SAN arrays or certain RAID luns that are also not usable..
+        if [ "$MODEL" = "iSCSI_Disk" ] || ["$MODEL" = "LOGICAL_VOLUME" ]; then
             continue
         fi
 



More information about the checkmk-commits mailing list