move to HOME
This commit is contained in:
parent
33a3da36cd
commit
44f9daedb1
2
cpu.sh
2
cpu.sh
|
@ -63,7 +63,7 @@ for VM in ${OUT}; do
|
||||||
fi
|
fi
|
||||||
if [[ $(( ${TIMESTAMP} - ${FIRSTSEEN} )) -gt $(( 60 * 60 * ${GRACE} )) ]]; then
|
if [[ $(( ${TIMESTAMP} - ${FIRSTSEEN} )) -gt $(( 60 * 60 * ${GRACE} )) ]]; then
|
||||||
if [[ $(( ${TIMESTAMP} - ${LASTSEEN} )) -gt $(( 60 * ${TTL} )) ]]; then
|
if [[ $(( ${TIMESTAMP} - ${LASTSEEN} )) -gt $(( 60 * ${TTL} )) ]]; then
|
||||||
echo -n "notify! "
|
cd /home/mischa
|
||||||
/home/mischa/bin/notify.pl cpu ${VM}
|
/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
|
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}
|
rm -rf /tmp/${VM}
|
||||||
|
|
Loading…
Reference in New Issue