etsy / nagios-herald

Add context to Nagios alerts
https://codeascraft.com/2014/06/06/introducing-nagios-herald/
MIT License
321 stars 32 forks source link

Pager emails should be more concise #34

Open pnaf opened 9 years ago

pnaf commented 9 years ago

In pager emails, if you test nagios-herald with, for instance, the included check_disk.CRITICAL test, you get the following output in the body of the email:

CRITICAL for 0d 0h 5m 12s (was CRITICAL) after 3 / 3 checks

DISK CRITICAL - free space: / 7002 MB (18% inode 60%): /data 16273093 MB (26% inode 99%):

Normally, the host_info section is shown on the first line. Instead, state_info takes up the first line, and the hostname information is displayed in the subject of the email instead. This may cause problems because 1) different carriers may have different ways of incorporating SUBJECT headers into SMS messages, 2) which leaves us with less fluidity as to how we want our messages to be formatted (unless we have nagios-herald send out a blank subject), and 3) once the host_info section is fixed to show up in the body of the pager email, there will be redundancy in the SMS due to displaying the hostname in both the subject and body.