Page 1 of 1

Notification Variables Not Working

Posted: Wed Mar 14, 2012 7:22 pm
by santosltd
Hi Team,

We are trying to use the %notificationauthor% and %notificationcomment% but they do not appear to be working where we have placed them. I understand that the summary provides the inclusion of the both but according the the PDF I should be able to put this wherever if we have %type% as ACKNOWLEDGEMENT

Configuration of my notification messages;

services;

%type% Service Alert - %hostalias%/%service% is %servicestate%

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

%alertsummary%

Notification Type: %type%

Service: %service%
Host: %hostalias%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: %datetime%
Author: %notificationauthor%
NoteComment: %notificationcomment%

Respond: %responseurl%
Nagios URL: %xiserverurl%


The email coming through after acknowledging the issue;

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

This service problem has been acknowledged by Hani with a comment of 'Problem is acknowledged'.

Notification Type: ACKNOWLEDGEMENT

Service: Memory Usage
Host: blah
Address: blah.host.com
State: WARNING
Info:
WARNING - Memory (71%) Swap (90%)
Date/Time: 15/03/2012 10:43:46
Author: %notificationauthor%
NoteComment: %notificationcomment%

Respond: http://someurl
Nagios URL: http://anotherurl


Could you please advise if this is a bug or if we are doing this wrong?

Thanks
Hani

Re: Notification Variables Not Working

Posted: Thu Mar 15, 2012 12:39 pm
by lmiltchev
We will have to do some testing to see if this is a bug in XI or not. Meanwhile, I would suggest trying one of our new variables - %alertsummary%. It will work on 2011R2.2 and above. It will give you nice, user-friendly message, which will include the author and the commend on acknowledgements. You can set it up by going to: Configure->More Options->My Account Settings->Notification Options->Notification Messages. See the picture bellow:
alertsummary.PNG
Hope this helps.

Re: Notification Variables Not Working

Posted: Thu Mar 15, 2012 6:19 pm
by santosltd
Thanks for the response.

We are already using the alert summary which is great.

I'm just wanting to confirm with the team whether a bug exists regarding the use of the other variables.


Regards
Hani

Re: Notification Variables Not Working

Posted: Fri Mar 16, 2012 10:42 am
by scottwilkerson
We dug into this a bit and realized we had bad information in the documentation and changelog.

The correct macros that should be used are
%author%
%comments%

Documentation and changelog are being updated.

http://tracker.nagios.com/view.php?id=246