Notification Variables Not Working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
santosltd
Posts: 18
Joined: Thu Feb 16, 2012 6:45 pm

Notification Variables Not Working

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification Variables Not Working

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
santosltd
Posts: 18
Joined: Thu Feb 16, 2012 6:45 pm

Re: Notification Variables Not Working

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification Variables Not Working

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked