Notification Variables Not Working
Posted: Wed Mar 14, 2012 7:22 pm
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
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