From f433389f0e8268a5ed1c7c2f430259b0b933a23c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 21 Feb 2020 08:50:07 +0100 Subject: [PATCH] Try to display info even for unsupported device --- xymon/plugins/client/ext/smart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xymon/plugins/client/ext/smart b/xymon/plugins/client/ext/smart index 79f95f6..ddcbf30 100755 --- a/xymon/plugins/client/ext/smart +++ b/xymon/plugins/client/ext/smart @@ -105,6 +105,9 @@ if test -s /tmp/dscan; then DRES=$(printf '%s' "SMART Health Status can't be determine because of:\n${SMART_SUPPORT_MSG}") DCODE="2" TYPE="unsupported" + ### Still try to display informations about unsupported device (eg. RAID controller,…) + DID="unsupported-${DISK}" + DINFO=$(smartctl -i -d "${SCANNED_TYPE}" "${DISK}" | grep -v -E "^smartctl|^Copyright|^$" || printf '%s' "Can't get informations due to no SMART support.") else [ "${debug}" -eq "0" ] && printf "${c_magentab}%-6b${c_reset}\n" "DEBUG : SMART seems fully supported, proceed normally." ### Get SMART Health Status and return code