Nagios core 4.3.4not sending email after patch update centos

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vasubabu
Posts: 4
Joined: Fri Nov 09, 2018 5:43 am

Nagios core 4.3.4not sending email after patch update centos

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios core 4.3.4not sending email after patch update ce

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
vasubabu
Posts: 4
Joined: Fri Nov 09, 2018 5:43 am

Re: Nagios core 4.3.4not sending email after patch update ce

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios core 4.3.4not sending email after patch update ce

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vasubabu
Posts: 4
Joined: Fri Nov 09, 2018 5:43 am

Re: Nagios core 4.3.4not sending email after patch update ce

Post by vasubabu »

I check the ssmtp configuration,Every thing looking fine,Can you help me out,How to change from spam
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios core 4.3.4not sending email after patch update ce

Post by tgriep »

Which system is considering the emails as spam? Is it gmail?
Be sure to check out our Knowledgebase for helpful articles and solutions!
vasubabu
Posts: 4
Joined: Fri Nov 09, 2018 5:43 am

Re: Nagios core 4.3.4not sending email after patch update ce

Post 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/
Attachments
nagios er1.JPG
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios core 4.3.4not sending email after patch update ce

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked