Page 1 of 1

Cannot See Web Interface from Remote PC

Posted: Fri Jun 13, 2014 7:16 am
by XoBiA
Hi All,

Im new to Linux/Nagios, and have stumbled across a problem.

I have Nagios running inside a vm in vsphere. Almost everything is working as i want except for 2 things.

When i access http://localhost/nagios or http://10.0.0.14/nagios (static ip of the nagios box) from a browser all is fine, however when i want to see it from my work pc, it just doesn't load the page. I have google for an answer but am not getting anywhere.

Please help

:)

Re: Cannot See Web Interface from Remote PC

Posted: Fri Jun 13, 2014 8:19 am
by XoBiA
I found the solution to this problem.

The reason was because the iptables were not allowing connections to HTTP 80 or 443

Im on CentOS 6.5

I opened /etc/sysconfig/iptables in a text editer and added these rules

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
## Open 443 port i.e. HTTPS
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT


then restarted the iptables service with

/etc/init.d/iptables restart

found here http://www.cyberciti.biz/faq/linux-ipta ... n-port-80/

Thanks All

Re: Cannot See Web Interface from Remote PC

Posted: Fri Jun 13, 2014 8:21 am
by eloyd
Most likely your virtual guest is not accessible to the outside world because of firewalls. Without knowing your specific setup, I would check that iptables is not running on the Linux machine, check that the VMware virtual networking is allowing connectivity to your guest, and that the VMware server itself is not behind and firewalls that would block traffic to it.

This is kind of hard to diagnose from a forum post, and it sounds more like a general Unix or networking question rather than Nagios itself, so please feel free to PM me with any further questions.