Add current alarm to current_alarms
This commit is contained in:
parent
73eb6adb4a
commit
a99e3c3ab9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user