Email notification not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tarunbartwal
Posts: 6
Joined: Tue May 15, 2018 3:40 am

Email notification not working

Post 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=<Tarun.Bartwal@linkgroup.com>, 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=<Tarun.Bartwal@linkgroup.com>, 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=<tarun.bartwal@linkgroup.com>, 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Email notification not working

Post by scottwilkerson »

What do you get if you try to ping the server on you Nagios XI machine?

Code: Select all

ping linkgroup.com
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
tarunbartwal
Posts: 6
Joined: Tue May 15, 2018 3:40 am

Re: Email notification not working

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Email notification not working

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
tarunbartwal
Posts: 6
Joined: Tue May 15, 2018 3:40 am

Re: Email notification not working

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Email notification not working

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
tarunbartwal
Posts: 6
Joined: Tue May 15, 2018 3:40 am

Re: Email notification not working

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Email notification not working

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked