Use script name to detect plugin name on server

This commit is contained in:
Jeremy Gardais 2020-02-24 13:32:00 +01:00
parent 8efe91c0e8
commit ddc0d42eed
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ fi
COLOR=$(< /tmp/dcheck awk '{print $1}' | sort | uniq | head -1 | cut -c3-) COLOR=$(< /tmp/dcheck awk '{print $1}' | sort | uniq | head -1 | cut -c3-)
# Send informations to Xymon server # Send informations to Xymon server
$XYMON "${XYMSRV}" "status ${MACHINE}.smart ${COLOR} SMART health check $XYMON "${XYMSRV}" "status ${MACHINE}.${0} ${COLOR} SMART health check
$(< /tmp/dcheck cut -c2-) $(< /tmp/dcheck cut -c2-)