Page 1 of 1

Custom Variables not always working for email notifcations

Posted: Tue Feb 10, 2015 2:42 pm
by barathia
Good Day

Users Service Notification Messages for email notifications for user contains for following Variable

ContactGroup = %contactgroup% |


This Variable is defined in that specific service

_CONTACTGROUP Oracle Group

But this is not getting reflected and the group it picks up is from the default template and not what is explicitly mentioned.

At first I thought its the space " " inbetween the name but when I added an underscore that the problem still remains.

However I have other services that work well but there are a large number for which the custom variables are not reflected in the email notifications as it is suppose to.

Kind regards

Re: Custom Variables not always working for email notifcatio

Posted: Tue Feb 10, 2015 3:41 pm
by lmiltchev
Go to CCM->Services-><your service>Misc Settings tab->Manage Variable Definitions and show us a screenshot of this page.

Still in the CCM, go to Commands->type "noti" in the search bar and hit "Enter" to view the notification commands. Post the command that you use to send alerts, i.e. xi_host_notification_handler, xi_service_notification_handler, notify-host-by-email, notify-service-by-email, etc.

Click on the username in the upper right corner->Notification Messages, and show us the part where you have %contactgroup%.

Also, show us one of the actual email alerts that you received, which should've contained the macro.

Re: Custom Variables not always working for email notifcatio

Posted: Tue Feb 10, 2015 5:11 pm
by barathia
The same custom variable _CONTACTGROUP works on some services but not on all.

Re: Custom Variables not always working for email notifcatio

Posted: Tue Feb 10, 2015 5:45 pm
by scottwilkerson
Please post the other items lmiltchev asked for
lmiltchev wrote:Still in the CCM, go to Commands->type "noti" in the search bar and hit "Enter" to view the notification commands. Post the command that you use to send alerts, i.e. xi_host_notification_handler, xi_service_notification_handler, notify-host-by-email, notify-service-by-email, etc.
Please copy the whole command line and past in the post as it will run far off the screen for a screen shot
lmiltchev wrote:Click on the username in the upper right corner->Notification Messages, and show us the part where you have %contactgroup%.
Thanks