Unable to find IP address for Web UI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bluegreen
Posts: 6
Joined: Fri Feb 15, 2013 1:21 pm

Unable to find IP address for Web UI

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to find IP address for Web UI

Post 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
bluegreen
Posts: 6
Joined: Fri Feb 15, 2013 1:21 pm

Re: Unable to find IP address for Web UI

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to find IP address for Web UI

Post 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?
bluegreen
Posts: 6
Joined: Fri Feb 15, 2013 1:21 pm

Re: Unable to find IP address for Web UI

Post 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/
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to find IP address for Web UI

Post by lmiltchev »

Can you open a terminal to your VM, type the following command, and show us the output:

Code: Select all

ifconfig
Be sure to check out our Knowledgebase for helpful articles and solutions!
bluegreen
Posts: 6
Joined: Fri Feb 15, 2013 1:21 pm

Re: Unable to find IP address for Web UI

Post by bluegreen »

ifconfig output.png
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to find IP address for Web UI

Post by scottwilkerson »

The IP address is 192.168.21.2
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bluegreen
Posts: 6
Joined: Fri Feb 15, 2013 1:21 pm

Re: Unable to find IP address for Web UI

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to find IP address for Web UI

Post 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"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked