Page 1 of 1
Nagios core 4.3.4not sending email after patch update centos
Posted: Wed Feb 27, 2019 2:45 am
by vasubabu
Hi,
Nagios core 4.3.4 is not pushing the emails after patch update "Yum update" in centos 7.0,I can able send the test mail through ssmtp,But where as in nagios i am not recieving emails.
Re: Nagios core 4.3.4not sending email after patch update ce
Posted: Wed Feb 27, 2019 5:37 pm
by tgriep
If you go to the Notification Report, do you see the Nagios server trying to send the email notifications to the contacts?
In the System > Process Info menu, are Notifications enabled?
If the Notifications are enabled and the system is trying to send the emails, do you see any errors in the nagios.log file?
If so, can you post them?
Re: Nagios core 4.3.4not sending email after patch update ce
Posted: Tue Mar 05, 2019 2:13 am
by vasubabu
Hi,Thanks for posting,Notification enabled in process info,Mailq is empty,I see email send in log.
Where as nagios is pushing automatically to gmail email accounts but mails are moving to spam,Where GMAIL is my relay with ssmtp.
Before yum update,By using Gmail relay ,email alerts are pushing to domain*****@domain.com to my official email account
Re: Nagios core 4.3.4not sending email after patch update ce
Posted: Tue Mar 05, 2019 11:03 am
by tgriep
What I would do is to see if the options have changed for the ssmtp command or if the config files in the /etc/ssmtp have been reverted back to the default settings and that is causing them to be marked as spam.
Re: Nagios core 4.3.4not sending email after patch update ce
Posted: Wed Mar 06, 2019 11:27 pm
by vasubabu
I check the ssmtp configuration,Every thing looking fine,Can you help me out,How to change from spam
Re: Nagios core 4.3.4not sending email after patch update ce
Posted: Thu Mar 07, 2019 1:36 pm
by tgriep
Which system is considering the emails as spam? Is it gmail?
Re: Nagios core 4.3.4not sending email after patch update ce
Posted: Fri Mar 08, 2019 12:21 am
by vasubabu
Currently I am not getting email alerts to my offical ID,In temporary case ,I went placing gmail account for receiving emails in contacts.cfg ,Where gmail is the relay and another gmail account is THE reciever,In gmail I receive nagios alerts in spam,Both relay and recieving gmail accounts are different
I am using sendmail,In /var/log/maillog/ i dont see any errors,Status=sent, if I place my offical ID in contacts.cfg i was not recieving the emails but log shows that status= sent,Some times "Connectionreset by domain.com"
Please find the attached /var/log/maillog/
Re: Nagios core 4.3.4not sending email after patch update ce
Posted: Fri Mar 08, 2019 1:32 pm
by tgriep
The emails that are showing up in the SPAM folder on your gmail account, you should be able to allow them in the gmail account to not be blocked.
Make sure to add the sender to the contacts for that account and make sure there is not a filter and that should fix that.
The upgrade probably changed the from address so make sure that is set correctly.
The maillog is showing a user unknown message and an authentication problem for that user.
The relay server require's a valid user account and relay server is blocking the emails as the account settings are not valid.
And, make sure the config files for the ssmtp application has not been reset back to default settings. Take a look at the following files.
Code: Select all
/etc/ssmtp/ssmtp.conf
/etc/ssmtp/revaliases