Email Notification for Contacts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Email Notification for Contacts

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notification for Contacts

Post 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?
Former Nagios employee
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Email Notification for Contacts

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notification for Contacts

Post 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.
Former Nagios employee
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Email Notification for Contacts

Post 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)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notification for Contacts

Post by tmcdonald »

That should work, yes.
Former Nagios employee
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Email Notification for Contacts

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notification for Contacts

Post 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.
Former Nagios employee
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Email Notification for Contacts

Post by MSPk »

ok, you can close this post as resolved. Thank you for your support
Locked