diff --git a/xymon/plugins/client/ext/smart b/xymon/plugins/client/ext/smart index 85a6000..9a186bf 100755 --- a/xymon/plugins/client/ext/smart +++ b/xymon/plugins/client/ext/smart @@ -127,12 +127,14 @@ while IFS= read -r LINE; do echo "${COLOR} $DISK ${TYPE}" - echo "${COLOR} $DISK ${TYPE}" | cut -c2- >>/tmp/dres - echo "" >>/tmp/dres - echo "$DRES" | grep -v -E "^smartctl|^Copyright|^$|^===" >>/tmp/dres - echo "------------------------------------------------------------" >>/tmp/dres - echo "" >>/tmp/dres - echo "" >>/tmp/dres + { + echo "${COLOR} $DISK ${TYPE}" | cut -c2- + echo "" + echo "$DRES" | grep -v -E "^smartctl|^Copyright|^$|^===" + echo "------------------------------------------------------------" + echo "" + echo "" + } >>/tmp/dres done < /tmp/dscan >/tmp/dcheck # Set the global color according to the highest alert