diff --git a/psi-alerts.sh b/psi-alerts.sh index 5a79546..b0b80e3 100755 --- a/psi-alerts.sh +++ b/psi-alerts.sh @@ -133,12 +133,12 @@ send () { local email=$(mktemp /tmp/psi.eml.XXXX) local subj - printf "Pressure Stall Information triggered on ${psi_type} at $(date +'%FT%T %Z')\n\n" > ${email} + printf "Pressure Stall Information for ${host} triggered on ${psi_type} at $(date +'%FT%T %Z')\n\n" > ${email} if [[ -n "${current_alarms}" ]]; then - subj="PSI on deltachunk ${current_alarms} triggered!" + subj="PSI on ${host} ${current_alarms} triggered!" printf "Multiple alarms triggered: ${current_alarms}\n\n" >> ${email} else - subj="PSI on deltachunk ${psi_type} triggered!" + subj="PSI on ${host} ${psi_type} triggered!" current_alarms="${psi_type}" fi