diff --git a/xymon/plugins/client/ext/smart b/xymon/plugins/client/ext/smart index fd65cb4..2e0c13d 100755 --- a/xymon/plugins/client/ext/smart +++ b/xymon/plugins/client/ext/smart @@ -42,11 +42,11 @@ do echo "" >>/tmp/dres done < /tmp/dscan >/tmp/dcheck -COLOR=$(cat /tmp/dcheck | awk '{print $1}' | sort | uniq | head -1 | cut -c3-) +COLOR=$(< /tmp/dcheck awk '{print $1}' | sort | uniq | head -1 | cut -c3-) $XYMON $XYMSRV "status ${MACHINE}.smart ${COLOR} SMART health check -$(cat /tmp/dcheck | cut -c2-) +$(< /tmp/dcheck cut -c2-) ==================== Detailed status ==================== @@ -56,4 +56,3 @@ $(cat /tmp/dres) rm -f /tmp/dres /tmp/dcheck /tmp/dscan exit 0 -