Commit Diff


commit - 74c95118d3fea1c7e7e64e07bbc07478ddaab723
commit + 6f6364cd451ccc661a9382300f0b27886b959f75
blob - 42a2b9945fb4188b48c60d65c440bd02bdcd996b
blob + af77f0c9934d93e40eff61596708f78ae6ef0e65
--- cpu.sh
+++ 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}