Module: check_mk
Branch: master
Commit: 05138645e7cc7733f41387435b064c045c6728da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=05138645e7cc77…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Tue Sep 18 11:49:31 2012 +0200
Linux Agent: Skip FreeNAS iSCSI targets (iirc NetBSD initiator)
---
agents/plugins/smart | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/agents/plugins/smart b/agents/plugins/smart
index caeb769..0890c85 100755
--- a/agents/plugins/smart
+++ b/agents/plugins/smart
@@ -21,6 +21,9 @@ 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
+ continue
+ fi
smartctl $SPECOPS -v 9,raw48 -A $D | grep Always | egrep -v
'^190(.*)Temperature(.*)' | sed "s|^|$D $VEND $MODEL |"
done 2>/dev/null
fi