change source/dest

This commit is contained in:
mischa 2024-05-15 20:53:09 +02:00
parent 4353ba4d86
commit 74c95118d3
1 changed files with 1 additions and 1 deletions

2
cpu.sh
View File

@ -65,7 +65,7 @@ for VM in ${OUT}; do
if [[ $(( ${TIMESTAMP} - ${LASTSEEN} )) -gt $(( 60 * ${TTL} )) ]]; then
echo "notify!"
/home/mischa/bin/notify.pl cpu ${VM}
echo "${VM} over ${LOAD}% CPU load for ${GRACE} hours" | mail -s "${HOSTNAME} - ${VM} over ${LOAD}% CPU load for ${GRACE} hours" -r mischa@high5.nl mischa@high5.nl
echo "${VM} over ${LOAD}% CPU load for ${GRACE} hours" | mail -s "${HOSTNAME} - ${VM} over ${LOAD}% CPU load for ${GRACE} hours" -r root@obsda.ms cpu@obsda.ms
rm -rf /tmp/${VM}
fi
fi