Email config question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Email config question

Post by jenstar13 »

Hi,
We have the email set up in the Gui to use [email protected]
but when it sends emails , it's sending emails as [email protected]
I can not figure out where that is set at?
can you help
I think pagerduty is rejecting email because of the hostname in the email address

the normal Xi Version
Installed Version: 5.6.5

Thank you in advance
Jen
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Email config question

Post by mbellerue »

I believe that is an artifact of using sendmail for email alerts. You also have the option of connecting to a proper SMTP server with a dedicated nagios user, and sending email that way. But you're absolutely right, a lot of services reject email from strange domain names, or domains where the reverse DNS lookup fails.

Here's a doc on configuring email in Nagios XI.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: Email config question

Post by jenstar13 »

Yes correct, I said we had email configured in the GUI to use SMTP on an external host, I tested it and it works fine.
but XI is also using sendmail.
What I'm trying to find is the config file that tells Nagios to use either the GUI config or sendmail, and not both
Can you help with that?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Email config question

Post by lmiltchev »

It is possible that Nagios XI sends emails via sendmail as you have some contacts that are not "xi users". Contacts and users are similar but not the same. Contacts are usually configured to use "notify-host-by-email" and "notify-service-by-email" notification handlers. They usually get their notifications via sendmail. On the other hand, "xi users" are configured with "xi_host_notification_handler" and "xi_service_notification_handler" commands. They get their notifications via SMTP. It is possible that you have "xi users" that are misconfigured (using both handlers). Check the configuration of the contacts that receive notifications via sendmail to find out if they are set up to use the correct notification commands and/or templates.

Read more on "xi users" and "contacts" here:

https://assets.nagios.com/downloads/nag ... ntacts.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: Email config question

Post by jenstar13 »

ok, thank you, I see my solution will require sendmail research since we have plenty of contacts that are not XI users
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Email config question

Post by lmiltchev »

Sure, let us know if you have any further questions or it is OK to close this topic. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked