Page 2 of 2

Re: Gmail Account for Email Alerts

Posted: Mon Oct 10, 2016 9:09 am
by avandemore
From the XI box, you should be able to do a telnet smtp.gmail.com 465(SSL) or telnet smtp.gmail.com 587(TLS) and achieve a connection.

If you are able to do this from an XI terminal, then there is something else wrong.

If not, you most likely have some type of networking issue. It might be any number of things but the most likely culprit is some kind of firewall mostly likely within your own network, perhaps even the XI box.

What is the output of iptables -L?

Re: Gmail Account for Email Alerts

Posted: Mon Oct 10, 2016 6:20 pm
by Hugo
thanks for sticking with me avandemore

telnet for both ports results in "Network is unreachable"
NOTE: it does pickup smtp.gmail.com's ip address as 74.125.23.108 (SSL) and 74.125.23.109 (TLS)

IP-Tables below
Image

Re: Gmail Account for Email Alerts

Posted: Tue Oct 11, 2016 9:33 am
by avandemore
Unfortunately this isn't a problem I can help with any longer. Your issue is due some network port block. The two most likely candidates are your company's FW, or your ISP. Your network administrator should be able to help you track this down.

Are we ok to lock this thread as we've established it's not a Nagios issue?

Re: Gmail Account for Email Alerts

Posted: Tue Oct 11, 2016 4:27 pm
by Box293
On the screenshot it shows a telnet error message for an IPv6 address.

Make sure your network allows outbound IPv6 traffic.

Re: Gmail Account for Email Alerts

Posted: Thu Oct 13, 2016 1:48 am
by Hugo
so is it possible just to disable IPv6 on the NagiosXI Box instead?

Re: Gmail Account for Email Alerts

Posted: Thu Oct 13, 2016 11:15 am
by avandemore
It's certainly possible to disable IPv6, but the IP's you listed resolved to IPv4 address. Also those addresses aren't for TLS/SSL specifically they are different because of DNS round robin for smtp.gmail.com.

To disable IPv6 on CentOS 6, add to /etc/sysctl.conf:

Code: Select all

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
then sysctl -p