Gmail Account for Email Alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Gmail Account for Email Alerts

Post 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?
Previous Nagios employee
Hugo
Posts: 7
Joined: Thu Nov 21, 2013 8:01 pm

Re: Gmail Account for Email Alerts

Post 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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Gmail Account for Email Alerts

Post 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?
Previous Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Gmail Account for Email Alerts

Post by Box293 »

On the screenshot it shows a telnet error message for an IPv6 address.

Make sure your network allows outbound IPv6 traffic.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Hugo
Posts: 7
Joined: Thu Nov 21, 2013 8:01 pm

Re: Gmail Account for Email Alerts

Post by Hugo »

so is it possible just to disable IPv6 on the NagiosXI Box instead?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Gmail Account for Email Alerts

Post 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
Previous Nagios employee
Locked