cannot send email

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: cannot send email

Post by dwhitfield »

Whoops, wrong clipping! You'll need to PM it, or just post it as an attachment.

Was it 5.4.11 when you downloaded it, or did you upgrade?
tonkaUser
Posts: 54
Joined: Tue Nov 28, 2017 10:27 am

Re: cannot send email

Post by tonkaUser »

I can upload profile.zip to http://otrs.nagios.com/upload.php once you give me the ticket number. Thanks
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: cannot send email

Post by dwhitfield »

Was the OVA already on 5.4.11 when you downloaded it, or did you download it in early October (or earlier) and then upgrade to 5.4.11? Without this information, I cannot tell you whether you have the package error or not.

UPDATE: Profile received and shared with techs
Last edited by dwhitfield on Thu Nov 30, 2017 11:37 am, edited 1 time in total.
Reason: pm received
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: cannot send email

Post by dwhitfield »

I'm noticing the following in your profile:
Notifications will be disabled until the service stabilizes.
There definitely could be more going on, but until the issue is resolved can you turn off flapping detection globally?

You can disable it (and then re-enable it) at:
http://YOURSERVER/nagiosxi/admin/syssta ... ringengine
(make sure you replace YOURSERVER with the actual server address)

Flapping is the fourth from the bottom on the Monitoring Engine Process dashlet.
tonkaUser
Posts: 54
Joined: Tue Nov 28, 2017 10:27 am

Re: cannot send email

Post by tonkaUser »

Based on our /usr/local/nagios/etc/commands.cfg, notify-host-by-email/notify-service-by-email are configured to use /bin/mail.
We did not configure it bin/mail at all on the Nagios server. We configured via web UI Admin->Manage Email Settings to use SMTP.
I do see errors in /var/log/maillog related to trying to send email to the DL.
I am guessing we have to resolve issues with /bin/mail, right? When is SMTP configuration used that's configured via Web UI?

Thanks
tonkaUser
Posts: 54
Joined: Tue Nov 28, 2017 10:27 am

Re: cannot send email

Post by tonkaUser »

What should we do to make Nagios use SMTP only(not sendmail/mail)?
What handler should we be using. We are using xi_host_notification_handler currently.
Thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: cannot send email

Post by npolovenko »

@tonkaUser , Yep, that's the right handler to choose if you're sending email over smtp. However xi_service_notification_handler and xi_host_notification_handler only work with contacts that were created as a result of adding a new user. It wouldn't work for a standalone contact with no user associated with it. Is there a possibility of creating a new user account for TestMonitorAlerts?
Or you can use this document to create a separate notification command that uses php mailer, that doesn't require a separate user. And then you'd need to assign that command to the TestMonitorAlerts user.
https://assets.nagios.com/downloads/nag ... Mailer.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tonkaUser
Posts: 54
Joined: Tue Nov 28, 2017 10:27 am

Re: cannot send email

Post by tonkaUser »

We figured it out. It was related to Exchange configuration for DL "require all senders be authenticated". Hope it will save time for other people.
kyang

Re: cannot send email

Post by kyang »

Glad you figured this out!

Did you have any more questions or are we okay to close this thread?
Locked