Cannot See Web Interface from Remote PC

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
XoBiA
Posts: 2
Joined: Fri Jun 13, 2014 6:33 am

Cannot See Web Interface from Remote PC

Post 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

:)
XoBiA
Posts: 2
Joined: Fri Jun 13, 2014 6:33 am

Re: Cannot See Web Interface from Remote PC

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cannot See Web Interface from Remote PC

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Locked