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
Email notification not working
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Email notification not working
What do you get if you try to ping the server on you Nagios XI machine?
Code: Select all
ping linkgroup.com
-
- Posts: 6
- Joined: Tue May 15, 2018 3:40 am
Re: Email notification not working
Hello Scott,
This is what I get -
[root@localhost saved]# ping linkgroup.com
ping: linkgroup.com: Name or service not known
Thanks
Tarun
This is what I get -
[root@localhost saved]# ping linkgroup.com
ping: linkgroup.com: Name or service not known
Thanks
Tarun
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Email notification not working
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
Make sure you have internet connectivity and that you have valid DNS server in /etc/resolv.conf
-
- Posts: 6
- Joined: Tue May 15, 2018 3:40 am
Re: Email notification not working
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Email notification not working
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
-
- Posts: 6
- Joined: Tue May 15, 2018 3:40 am
Re: Email notification not working
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
Thanks again for your support!
Tarun
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Email notification not working
Glad to hear it is workingtarunbartwal 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
Locking