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.
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.
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
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.