Page 1 of 1

Contact Creation for Mail Notification

Posted: Wed May 08, 2019 9:18 am
by hoegh
Hi Team,

1. I have created a contact using Contact Management:
  • CCM => Alerting => Contacts => Add New
    • Under Alert Settings:
      Manage Host Notification Commands => notify-host-by-email, also tried : xi_host_notification_handler
      Manage Service Notification Commands => notify-service-by-email, also tried : xi_service_notification_handler
2. Then I've created Contact Group & added newly created user in that contact group.
3. Selected one service & Under Service Management,
  • Alert Settings => Manage Contact Groups = > Selected Newly created Contact Group
I want to send mail notification for host/service alerts in Nagios.
But i'm not getting. Please guide me, how to send mail notification to Contacts created with the help of
CCM => Alerting => Contacts => Add New


Thanks
Hoegh

Re: Contact Creation for Mail Notification

Posted: Wed May 08, 2019 2:25 pm
by lmiltchev
Nagios Core contacts (that are not xi users) can only use notify-host-by-email and notify-service-by-email commands. The handlers use sendmail exclusively and will not work with the XI SMTP settings. Nagios XI users and contacts are similar but not the same. See more on the topic here:

https://assets.nagios.com/downloads/nag ... Mailer.pdf

You could configure Core contacts to use the SMTP PHPMailer settings by following the steps, outlined in the document below:

https://assets.nagios.com/downloads/nag ... Mailer.pdf

After reviewing the two documents above, I would recommend that you start troubleshooting your notifications issues by following our KB article on notification problems:

https://support.nagios.com/kb/article/n ... ms-36.html

Let us know if this helped. Thank you!

Re: Contact Creation for Mail Notification

Posted: Thu May 09, 2019 2:12 am
by hoegh
Thanks @lmiltchev for the help.
I'll try this way & will let you know within 2 weeks.

Re: Contact Creation for Mail Notification

Posted: Thu May 09, 2019 7:43 am
by hoegh
Hi @lmiltchev,

Followed below documnet & it's working as expected.

https://assets.nagios.com/downloads/nag ... Mailer.pdf


But i request you keep this thread open till we finish testing in production.
We'll let you know once we finished testing in production.

Thank you for your help. :)

Thanks
Hoegh

Re: Contact Creation for Mail Notification

Posted: Thu May 09, 2019 8:36 am
by lmiltchev
I am glad I was able to help Hoegh! I will keep the thread open for a while per your request. Thank you!

Re: Contact Creation for Mail Notification

Posted: Mon May 13, 2019 6:16 am
by hoegh
Hi @lmiltchev,
Please close this thread. We've successfully implemented this in Production environment.

Thanks For your help.

Thanks
hoegh

Re: Contact Creation for Mail Notification

Posted: Mon May 13, 2019 8:55 am
by lmiltchev
Great! I am closing this topic now, and marking it as resolved. If you have any further questions, please start a new thread.