commit - 33a3da36cd2cf11f6ee181603b5b72d73aef18e8
commit + 44f9daedb1cb9e652225afecfdd56c39cf8f6e81
blob - af77f0c9934d93e40eff61596708f78ae6ef0e65
blob + 595bbfaa95957dd3bf27c953c220e2b3d0c185b0
--- cpu.sh
+++ cpu.sh
fi
if [[ $(( ${TIMESTAMP} - ${FIRSTSEEN} )) -gt $(( 60 * 60 * ${GRACE} )) ]]; then
if [[ $(( ${TIMESTAMP} - ${LASTSEEN} )) -gt $(( 60 * ${TTL} )) ]]; then
- echo -n "notify! "
+ cd /home/mischa
/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 root@obsda.ms cpu@obsda.ms
rm -rf /tmp/${VM}