Page 1 of 1

Acknowledgement Message Missing

Posted: Tue Mar 24, 2015 11:46 am
by JohnFLi
I'm running Nagios XI v. 2014R2.6
For some odd reason, the email we get after acknowledging an alert, doesn't say WHO acknowledged it, or what message they entered for it.
The Acknowledge does work, and went I look at events (the Nagios core part) it does show who and what they said.

Code: Select all

[03-24-2015 09:42:20] SERVICE NOTIFICATION: myname.adm;G1VAVE01;Drive C: Disk Usage;ACKNOWLEDGEMENT (WARNING);notify-service-by-email;C:\ - total: 59.90 Gb - used: 55.16 Gb (92%) - free 4.74 Gb (8%);MyName;testing
and the email message i get

Code: Select all

***** Nagios Monitor XI Alert *****

Notification Type: ACKNOWLEDGEMENT
Service: Drive C: Disk Usage
Host: G1VAVE01
Address: G1VAVE01
State: WARNING
Date/Time: Tue Mar 24 09:42:20 PDT 2015
Additional Info:
C:\ - total: 59.90 Gb - used: 55.16 Gb (92%) - free 4.74 Gb (8%)

How do I fix this?

Re: Acknowledgement Message Missing

Posted: Tue Mar 24, 2015 1:18 pm
by JohnFLi
Ok, fixed it. (well mostly, Still need to add the user name)

I added

Code: Select all

Right after $SERVICEOUTPUT$\n\n append

"Notes: $SERVICEACKCOMMENT$"

to the notify-service-by-email and notify-service-by-host

Now the email I get back reads:

Code: Select all

***** Nagios Monitor XI Alert *****

Notification Type: ACKNOWLEDGEMENT

Service: Drive C: Disk Usage
Host: G1VAVE01
Address: G1VAVE01
State: WARNING

Date/Time: Tue Mar 24 11:15:26 PDT 2015

Additional Info:

C:\ - total: 59.90 Gb - used: 55.16 Gb (92%) - free 4.74 Gb (8%)

 Notes: testing