Jeremy Gardais 2020-02-19 15:24:41 +01:00
parent a210b7bb38
commit fcf945748b
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 3 deletions

View File

@ -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