Page 1 of 1

Email Notification for Contacts

Posted: Mon Jun 30, 2014 7:23 am
by MSPk
Hi Team,

We are setting up alerts for our new Nagiox XI instance and during the testing we understood that the chnages we made to the email template (nagiosadmin->notification messages->email -> email notifications) were not reflecting in the email alerts received by the nagios contacts (just contacts, not users). I have tested it for nagiosadmin user and the email alert received by this contact has the new contact added to the email content, Please help.

Re: Email Notification for Contacts

Posted: Mon Jun 30, 2014 11:25 am
by tmcdonald
I'm a bit confused here. There is a big difference between users and contacts. Users are meant for logging in to Nagios XI and for receiving emails/SMS, and contacts are *only* for receiving email/SMS alerts. Users and contacts also use different commands for receiving alerts. In your post it almost sounds like you are using contact and user interchangeably. So just for the sake of clarification, could you explain a bit more precisely what is and is not working?

Re: Email Notification for Contacts

Posted: Tue Jul 01, 2014 3:29 am
by MSPk
We have made some changes to the email notification template to reflect some additional info, However That addtional content is not reflecting on emails received by contacts, though it reflects on the emails received by users (Nagios XI user, who can login).

I have made changes to the email notification at - nagiosadmin->notification messages->email -> email notifications.

Re: Email Notification for Contacts

Posted: Tue Jul 01, 2014 9:24 am
by tmcdonald
Up at the top of that page is the following message:
This page allows for notification messages and settings to be saved and deployed to a selected list of Nagios XI users or contact groups. This component will only update notification settings for contacts that are created by Nagios XI, or contacts created according to the following documentation: XI Users and Contacts. This page can also be used to modify the default notification settings for all users.
So essentially it works on users or contact groups, but not *all* contacts. This is also mentioned in the following warning:
Note: Contacts must have the "xi_host_notification_handler" and "xi_service_notification_handler" commands defined for the selected contacts in order for these notification settings to be applied.
Basically if you created the contact as part of a user creation it should work, but normally-created contacts will not unless you edit the notification command.

Re: Email Notification for Contacts

Posted: Tue Jul 01, 2014 11:25 am
by MSPk
Can I select the notification command as XI_Host_notification_handler and XI_service notification_handler for contacts not created by Nagios XI (i.e for only contacts, not users)

Re: Email Notification for Contacts

Posted: Tue Jul 01, 2014 11:54 am
by tmcdonald
That should work, yes.

Re: Email Notification for Contacts

Posted: Wed Jul 02, 2014 9:42 am
by MSPk
Ya, that worked. but i'm little curious to understand if we can change the template for email notifications to contacts (only contacts, not users) without using the xi_host/service_notification_handlers on these contacts.

Re: Email Notification for Contacts

Posted: Wed Jul 02, 2014 1:20 pm
by tmcdonald
That template only affects the xi_host/service_notification_handlers, so the only way to avoid using those commands is to modify the commands that your contacts *are* using, which is somewhat redundant since at that point you may as well use the xi_host/service_notification_handlers commands.

Re: Email Notification for Contacts

Posted: Thu Jul 03, 2014 9:02 pm
by MSPk
ok, you can close this post as resolved. Thank you for your support