commit 1f7cf7d9e59ba11fd7e5bb3263ec34c8c2572ee7 from: mischa date: Wed Jun 12 09:32:55 2024 UTC no HOME needed, needs to be done in cron commit - 44f9daedb1cb9e652225afecfdd56c39cf8f6e81 commit + 1f7cf7d9e59ba11fd7e5bb3263ec34c8c2572ee7 blob - 595bbfaa95957dd3bf27c953c220e2b3d0c185b0 blob + 5cca959d3d1e061aeabbc9753de33ed4231bf839 --- cpu.sh +++ cpu.sh @@ -63,7 +63,6 @@ for VM in ${OUT}; do fi if [[ $(( ${TIMESTAMP} - ${FIRSTSEEN} )) -gt $(( 60 * 60 * ${GRACE} )) ]]; then if [[ $(( ${TIMESTAMP} - ${LASTSEEN} )) -gt $(( 60 * ${TTL} )) ]]; then - 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}