Page 2 of 2
Re: cannot send email
Posted: Wed Nov 29, 2017 6:01 pm
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?
Re: cannot send email
Posted: Thu Nov 30, 2017 9:36 am
by tonkaUser
I can upload profile.zip to
http://otrs.nagios.com/upload.php once you give me the ticket number. Thanks
Re: cannot send email
Posted: Thu Nov 30, 2017 11:23 am
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
Re: cannot send email
Posted: Thu Nov 30, 2017 11:33 am
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.
Re: cannot send email
Posted: Thu Nov 30, 2017 12:32 pm
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
Re: cannot send email
Posted: Thu Nov 30, 2017 5:08 pm
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
Re: cannot send email
Posted: Thu Nov 30, 2017 5:29 pm
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
Re: cannot send email
Posted: Thu Dec 07, 2017 10:51 am
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.
Re: cannot send email
Posted: Thu Dec 07, 2017 4:05 pm
by kyang
Glad you figured this out!
Did you have any more questions or are we okay to close this thread?