Page 1 of 1

Email COntacts not working

Posted: Wed Sep 26, 2018 2:51 pm
by matson-itops
I'm not able to send email alerts to contacts.
Please help

I have a contact "John Doe" who is a nagios contact, but NOT
a nagios user. I can email him directly from nagios server,
but when I add that contact to an alert, no email is received.

I have a conctact "myself: who is a nagios contact, AND a nagios user.
I can email myself, and when I add myself to alerts, I get the email.

what am I missing?

Re: Email COntacts not working

Posted: Wed Sep 26, 2018 3:01 pm
by lmiltchev
Nagios XI users and contacts are similar but not the same, and need to be configured differently. Please, review our documentation on how to configure email and text notifications here:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Also, check out our KB article on Nagios XI notification problems here:

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

Let us know if this helped. Thank you!

Re: Email COntacts not working

Posted: Wed Sep 26, 2018 3:52 pm
by matson-itops
Nope, still no joy.

I am referring to a mailing list, aka "contact only"
I was already using notify-host-by-email and notify-service-by-email
I am using xi_generic_contact, should I try to switch to generic_contact?

notifications are 24x7 and "ON"

still no email when alert is triggered.

Re: Email COntacts not working

Posted: Wed Sep 26, 2018 4:32 pm
by lmiltchev
I was already using notify-host-by-email and notify-service-by-email
I am using xi_generic_contact, should I try to switch to generic_contact?
Most probably you don't need to - the notify-host-by-email and notify-service-by-email commands, that are defined on a "contact level" will override the commands, inherited from the template.

What is the version of Nagios XI that you are currently using? Can you show us the config of a host or a service that you don't receive notifications about (but you should)? Also, show the contact's definition of the monitoring contact, added to this host/service, along with all relevant templates.

Show us a screenshot of the State History report, showing the host/service in question in a hard non-ok state, and a screenshot of the Notifications report for the same time period.

Are you using Sendmail or SMTP (Admin > System Config > Manage Email Settings)? Have you checked the mail logs for issues (/usr/local/nagiosxi/tmp/phpmailer.log and /var/log/maillog or /var/log/mail.log)?