7/30/10

Enable Nagios Serivce Acknowledgement Comments in Emails

If you would like to see acknowledgment comments in the Nagios email alerts that get sent so other admins do not need to login to view the comment.

edit your notification command cfg file and find this line: notify-service-by-email

Right after $SERVICEOUTPUT$\n\n append

"Notes: $SERVICEACKCOMMENT$"

Thats it, reload nagios and your done.

http://nagios.sourceforge.net/docs/2_0/macros.html

3 comments:

  1. Superb , I was looking for a solution like this . Thanks for Sharing .

    ReplyDelete
  2. Note you need to use the $NOTIFICATIONCOMMENT$ macro in newer versions of nagios, as the ACK macros have been deprecated.
    See: http://nagios.sourceforge.net/docs/3_0/macrolist.html#note8

    ReplyDelete