Page 1 of 1

Email notification not working

Posted: Wed Jun 20, 2018 2:13 am
by tarunbartwal
Hello,
I installed Nagios XI from VM Ware image and am able to setup monitoring fine. However, email notification isn't going out.

/var/log/maillog is showing following errors -
Jun 20 17:10:14 localhost postfix/error[60828]: 71B1C1E16D3: to=<[email protected]>, relay=none, delay=176727, delays=176717/10/0/0.01, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=linkgroup.com type=MX: Host not found, try again)
Jun 20 17:10:14 localhost postfix/error[60825]: 708841E160B: to=<[email protected]>, relay=none, delay=168424, delays=168414/10/0/0.01, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=linkgroup.com type=MX: Host not found, try again)
Jun 20 17:10:14 localhost postfix/error[60834]: 3686D1E1161: to=<[email protected]>, relay=none, delay=306911, delays=306901/10/0/0.01, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=linkgroup.com type=MX: Host not found, try again)


Thanks
Tarun

Re: Email notification not working

Posted: Wed Jun 20, 2018 10:39 am
by scottwilkerson
What do you get if you try to ping the server on you Nagios XI machine?

Code: Select all

ping linkgroup.com

Re: Email notification not working

Posted: Wed Jun 20, 2018 11:58 pm
by tarunbartwal
Hello Scott,
This is what I get -

[root@localhost saved]# ping linkgroup.com
ping: linkgroup.com: Name or service not known


Thanks
Tarun

Re: Email notification not working

Posted: Thu Jun 21, 2018 8:26 am
by scottwilkerson
This looks like your machine cannot resolve the domain name

Make sure you have internet connectivity and that you have valid DNS server in /etc/resolv.conf

Re: Email notification not working

Posted: Tue Jul 03, 2018 12:53 am
by tarunbartwal
Hello Scot,
I tried to configure SMTP instead of Sendmail and was able to send test e-mail successfully. But alerts are still failing with 'domain or host not found'.
Thanks
Tarun

Re: Email notification not working

Posted: Tue Jul 03, 2018 9:16 am
by scottwilkerson
Please send your profile.zip from Admin -> System profile so we can see what notification handlers your server are using, if your contacts are not set to use the xi notification handlers then they will still send through postfix and not SMTP

Re: Email notification not working

Posted: Tue Jul 03, 2018 9:38 pm
by tarunbartwal
Thanks Scott, that exactly was the issue. I updated contacts to use xi notification handlers and it's working :)
Thanks again for your support!
Tarun

Re: Email notification not working

Posted: Thu Jul 05, 2018 9:19 am
by scottwilkerson
tarunbartwal wrote:Thanks Scott, that exactly was the issue. I updated contacts to use xi notification handlers and it's working :)
Thanks again for your support!
Tarun
Glad to hear it is working

Locking