Email Notifications containing Macros - Acknowledgement
Posted: Sun Dec 09, 2012 1:43 pm
Hi guys,
I'm using the latest version of Nagios, and have come up with a problem from the email notifications' Macros.
When Nagios sends a notification email of ACKNOWLEDGEMENT,I added $HOSTACKAUTHOR$ and $HOSTACKCOMMENT$ to the command.
My intention was obviously to display the username acknowledging the problem, and his comments.
I've accomplished that.
However, these 2 macros also appear with WARNING and CRITICAL notifications, and this is exactly what cannot happen according to the definition of these macros:
"This macro is only valid in notifications where the $NOTIFICATIONTYPE$ macro is set to "ACKNOWLEDGEMENT".
So service alerts look like this:
Notification Type: RECOVERY
Host: us-terminal
Address: us-terminal
State: OK
Author:
Comments:
Is this a bug in Nagios?
Those macros should automatically operate with acknowledgements only, but they do regardless of the notification type!
Have any of you ever encountered such a thing?
Thanks in advance,
Ido
I'm using the latest version of Nagios, and have come up with a problem from the email notifications' Macros.
When Nagios sends a notification email of ACKNOWLEDGEMENT,I added $HOSTACKAUTHOR$ and $HOSTACKCOMMENT$ to the command.
My intention was obviously to display the username acknowledging the problem, and his comments.
I've accomplished that.
However, these 2 macros also appear with WARNING and CRITICAL notifications, and this is exactly what cannot happen according to the definition of these macros:
"This macro is only valid in notifications where the $NOTIFICATIONTYPE$ macro is set to "ACKNOWLEDGEMENT".
So service alerts look like this:
Notification Type: RECOVERY
Host: us-terminal
Address: us-terminal
State: OK
Author:
Comments:
Is this a bug in Nagios?
Those macros should automatically operate with acknowledgements only, but they do regardless of the notification type!
Have any of you ever encountered such a thing?
Thanks in advance,
Ido