Change Nagios Notification Email Message


Is it possible to change the message Nagios sends out as notification?

We are looking at getting at least some of the messages forwarded from an email address to cellphones but because of the length of the message they come in as 3 text messages.

I am sure that some of the information can be removed such as the Nagios title in the body of the email, and the time and date (as that will be on the email itself) etc - but cannot see where I could modify this.





You should look at editing the notify-host/service-by-email object definitions in command.cfg. For example, the “time and date” is generated from the “$LONGDATETIME$” macro