Add current alarm to current_alarms

This commit is contained in:
Trey Blancher 2023-08-14 16:41:41 -04:00
parent 73eb6adb4a
commit a99e3c3ab9

View File

@ -135,6 +135,7 @@ send () {
local subj
printf "Pressure Stall Information for ${host} triggered on ${psi_type} at $(date +'%FT%T %Z')\n\n" > ${email}
if [[ -n "${current_alarms}" ]]; then
current_alarms="${current_alarms}|${psi_type}"
subj="PSI on ${host} ${current_alarms} triggered!"
printf "Multiple alarms triggered: ${current_alarms}\n\n" >> ${email}
else