Page 1 of 2

Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 1:27 pm
by bluegreen
Hi,

I have installed nagiosxi using the virtual machine and changed the login credentials. When I run "ifconfig" I do not get an IP address. I tried changing to a static IP address using this video http://www.youtube.com/watch?v=0tZcrM4rpqY but the static IP did not work when I typed it into the browser.

Any advice would be greatly appreciated.

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 2:23 pm
by slansing
I would follow this guide here:

http://www.cyberciti.biz/faq/linux-conf ... -tutorial/

It is thorough, also keep in mind to switch from static to DHCP just change the BOOTPROTO= to DHCP

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 3:57 pm
by bluegreen
Thank you for your reply. I believe i have the static ip address configured. When i try "wget [new ip address]" on the virtual machine i get an index.html page that looks like a nagios page.

However, I am unable to access the virtual box (CentOS) from the host (Windows Server 2008). Pinging the new IP address of the virtual box from the host times out and telnet to port 80 gives "connect failed". I tried turning off both firewalls (iptables -F on the virtual box and windows firewall on the host) with no success.

Any suggestions?

Thanks again

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 4:04 pm
by slansing
Can you share what your ifconfig outputs? If it is an internal local IP it should not be confidential. Is apache running?

Code: Select all

service httpd status
How are you defining the nagios server's web UI URL in your browser?

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 4:47 pm
by bluegreen
ifconfig gives the following

inet addr of 192.169.21.2 Bcast:192.168.21.255 Mask 255.255.255.0

httpd status is running

I also tried setting the ip to 192.169.21.1 which is the private ip listed for "VMware Network Adapter VMnet1" which showed up in my "Network and Sharing Center" on the Windows host. When i did this i was able to ping but still got "connect failed" when i tried to telnet to port 80.

When I try to open the UI in the browser i try both http://192.168.21.1/nagiosxi and http://192.168.21.1/

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 5:17 pm
by lmiltchev
Can you open a terminal to your VM, type the following command, and show us the output:

Code: Select all

ifconfig

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 5:33 pm
by bluegreen
ifconfig output.png

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 5:38 pm
by scottwilkerson
The IP address is 192.168.21.2

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 5:44 pm
by bluegreen
Yes, sorry for the confusion I have been trying both 192.168.21.2 and 192.168.21.1. When the ip is set to 192.168.21.2 i am unable to ping, telnet or reach the UI via a browser on the host. When it is set to 192.168.21.1 i can ping but not telnet or reach the UI in a browser. Both times I restart both eth0 using

ifdown eth0
ifup eth0

and httpd using

service httpd restart

after changing the static IP of the virtual machine

Re: Unable to find IP address for Web UI

Posted: Fri Feb 15, 2013 5:48 pm
by lmiltchev
What happens when you type:

Code: Select all

http://192.168.21.2/nagiosxi
in the browser's address bar and hit "Enter"?