SMTP Error: Could not connect to SMTP host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bojha
Posts: 55
Joined: Thu Jul 26, 2012 1:18 am

SMTP Error: Could not connect to SMTP host

Post by bojha »

Hi All,

We are using Nagios XI 2011R1.9 which is running in RHEL 5 and set up the mail setting methods to SMTP and when we are giving the IP of the mail servers we are getting the test mail but when giving dns name of the same mail server not getting the test mail.
from Nagios XI , i did an ping to both IP and dns name and it is pinging both way.

is there any set up or change we need to do in any configuration file to make it work for the dns name ?

Thanks in advance..

Bijay
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SMTP Error: Could not connect to SMTP host

Post by scottwilkerson »

you should be able to use the DNS name just fine as long as your Nagios server can resolve the DNS name.

When you did the ping, did you do it on the Nagios XI server to the DNS name? It would be possible that your XI machine doesn't have proper DNS setup.

Can you run the following on the XI server to see if it outputs you DNS servers

Code: Select all

cat /etc/resolv.conf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bojha
Posts: 55
Joined: Thu Jul 26, 2012 1:18 am

Re: SMTP Error: Could not connect to SMTP host

Post by bojha »

Thank you very much Scott that resolved my issues..


With Regards,

Bijay
Locked