Not receiving email alerts notification from my Nagios 4.3.4

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
mark.quilates
Posts: 21
Joined: Sat Feb 27, 2016 3:12 am

Not receiving email alerts notification from my Nagios 4.3.4

Post by mark.quilates »

Hi Guys,

Is their anyone who can help me with my issue? I tried to setup an email alerts notification on my Nagios-4.3.4. But when I tried to test it, I didn't receive any email alerts on my Gmail from my nagios. I just followed the procedure on how to configure it using this link. https://access.redhat.com/documentation ... ifications

Thanks in advance
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: Not receiving email alerts notification from my Nagios 4

Post by gwakem »

Is there a reason this is in the ideas forum instead of the General Support forum?

Anyway, a good first step is to check your maillog. On RHEL/CentOS, it would be in /var/log/maillog. Look for the time frame you sent the alerts (or better yet, send more while doing a tail -F on the file) and see if the connection got rejected by gmail's servers. It should give you the error/response code, which usually has something to do with not having a reverse lookup, or your system not having a FQDN. Gmail won't accept mail from "server", it needs "server.domain.com". This can be set with hostnamectl set-hostname $SERVER.DOMAIN.COM.
--
Griffin Wakem
dwasswa

Re: Not receiving email alerts notification from my Nagios 4

Post by dwasswa »

Thanks @ gwakem,

@ mark.quilates ,try that and let us know if it helps.
User avatar
bestazy
Posts: 2
Joined: Mon Jan 15, 2018 7:17 am

Re: Not receiving email alerts notification from my Nagios 4

Post by bestazy »

I have the same problem with nagios 4.3.4.Well that there is an already existing topic for discussion.
I tried the tips that are provided above.
It did not work out.Still no email alert.. :? I hope this is not a very old topic, give me advice please.Thanks!
Apple MacBook Air 13" 128Gb (MQD32)3d designer of 4 years.
All the best.Bestazy.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Not receiving email alerts notification from my Nagios 4

Post by tgriep »

Do you know if your Nagios system it using Sendmail or Postfix as the mailer daemon for sending emails?
Do you see any errors in the /var/log/maillog file when the system tries to send an email notification?
If you do see an error, can you post it here so we can view it?

Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
bestazy
Posts: 2
Joined: Mon Jan 15, 2018 7:17 am

Re: Not receiving email alerts notification from my Nagios 4

Post by bestazy »

tgriep wrote:Do you know if your Nagios system it using Sendmail or Postfix as the mailer daemon for sending emails?
Do you see any errors in the /var/log/maillog file when the system tries to send an email notification?
If you do see an error, can you post it here so we can view it?

Thanks
ye,ther error,will send later.Thanks!
Apple MacBook Air 13" 128Gb (MQD32)3d designer of 4 years.
All the best.Bestazy.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Not receiving email alerts notification from my Nagios 4

Post by tgriep »

OK, when you get the time, go ahead and post them.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked