Page 2 of 2

Re: nagios "Email Settings" are beig gignored

Posted: Tue Sep 10, 2019 1:14 pm
by benjaminsmith
Hello,

The phpmailer and Nagios logs are looking normal now.

Code: Select all

[09-10-2019 11:25:14] Message sent! (method=smtp;host=host-name.com;port=25;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[09-10-2019 11:33:13] Message sent! (method=smtp;host=host-name.com;port=25;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[09-10-2019 11:54:52] Message sent! (method=smtp;host=host-name.com;port=25;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[09-10-2019 11:54:53] Message sent! (method=smtp;host=host-name.com;port=25;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[09-10-2019 11:54:53] Message sent! (method=smtp;host=host-name.com;port=25;security=none), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
Looks like certain specific services always send notifications correctly and certain other services always send them incorrectly.
If some services are working and some are not, this is typically a configuration issue. What is the exact names of the hosts and services that are not sending notifications?

Please see this guide for troubleshooting tips:
Nagios XI - Notification Problems

Re: nagios "Email Settings" are beig gignored

Posted: Tue Sep 10, 2019 2:18 pm
by gornm565
No, they are all working but they are coming out from email address [email protected] instead of the one in Email Settings. And those emails are going to the Internet using the MX record lookup, instead of using the internal Exchange server that is defined in Email settings.

Re: nagios "Email Settings" are beig gignored

Posted: Tue Sep 10, 2019 4:05 pm
by benjaminsmith
Hello @gornm565,

Those emails are being sent by postfix (Sendmail) rather than PHPmailer. Can you post a screen shot of the Email Settings page?

Also, you have a few contacts configured to use the Nagios Core handlers and not XI notification commands. Specifically, AlphaSuiteSupport, Ze Wang, agrybas, alphasuitedev, asingh, hfrancisco and munter.

You'll need to configure those contacts to use the XI notification handlers so they will use the SMTP PHPMailer settings.

See this guide for step-by-step instructions:

Configuring Core Contacts to Use Nagios XI PHPMailer SMTP Settings