From 6f6364cd451ccc661a9382300f0b27886b959f75 Mon Sep 17 00:00:00 2001 From: mischa Date: Wed, 15 May 2024 20:54:43 +0200 Subject: [PATCH] minor echo change --- cpu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.sh b/cpu.sh index 42a2b99..af77f0c 100755 --- a/cpu.sh +++ b/cpu.sh @@ -63,7 +63,7 @@ for VM in ${OUT}; do fi if [[ $(( ${TIMESTAMP} - ${FIRSTSEEN} )) -gt $(( 60 * 60 * ${GRACE} )) ]]; then if [[ $(( ${TIMESTAMP} - ${LASTSEEN} )) -gt $(( 60 * ${TTL} )) ]]; then - echo "notify!" + echo -n "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 root@obsda.ms cpu@obsda.ms rm -rf /tmp/${VM}