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.
Email Notification for Contacts
Re: Email Notification for Contacts
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?
Former Nagios employee
Re: Email Notification for Contacts
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.
I have made changes to the email notification at - nagiosadmin->notification messages->email -> email notifications.
Re: Email Notification for Contacts
Up at the top of that page is the following message:
So essentially it works on users or contact groups, but not *all* contacts. This is also mentioned in the following warning: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.
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.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.
Former Nagios employee
Re: Email Notification for Contacts
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
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
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.
Former Nagios employee
Re: Email Notification for Contacts
ok, you can close this post as resolved. Thank you for your support