Page 1 of 1

Access Nagios webpage on 2 interfaces.

Posted: Thu Apr 05, 2012 11:43 pm
by salim
Dear All,
I have Nagios running on a PC which has two ethernet cards, eth0 and eth1. Each interface is on a different network, like eth0 is on n/w 10.111.X.X and eth1 is on n/w 100.1.X.X (recently configured). The Nagios webpage is accessed remotely by typing "http://10.111.X.X/nagios3/index.html". Now, I would like to access the same webpage from the 100.1.X.X network i.e. via the eth1 interface.
Is this possible? Are there any configuration parameters that need to be changed/added? If so, where?
Thanks for your replies.
Regards.

Re: Access Nagios webpage on 2 interfaces.

Posted: Fri Apr 06, 2012 10:10 am
by agriffin
You shouldn't have to change anything on the Nagios side. You may need to change your network or web server setup, but I would be surprised if you couldn't already view the pages from both IP addresses. Did you try this yet, and if so, what happened?

Re: Access Nagios webpage on 2 interfaces.

Posted: Sat Apr 07, 2012 2:59 am
by salim
Hi agrifin,
Thanks for your reply. This network has just been configured by our data team. I will try to access Nagios from this network and I hope you are right and I do not need to change anything. I will post the outcome as soon as I complete the test.
Regards.

Re: Access Nagios webpage on 2 interfaces.

Posted: Sat Apr 07, 2012 9:40 am
by salim
Hi Agrifin,
When I am on the PC running Nagios itself, I can access the webpage by either:
(i) http://10.111.X.X/nagios3/index.html or
(ii) http://localhost/nagios3/index.html
When I try http://100.1.X.X/nagios3/index.html, I cannot access the webpage. Does this mean that if I am on a PC on network 100.1.X.X, I will not be able to access the Nagios webpage??
Thanks for replying.

Re: Access Nagios webpage on 2 interfaces.

Posted: Mon Apr 09, 2012 10:11 am
by agriffin
Again, that all depends on how your network was configured. You may wish to speak to your data team about this. Can you access the page from some other computer with a 10.111.X.X IP address (other than the one Nagios is installed on)? Testing on localhost is not very useful because you'll almost always have access even if it's misconfigured. This is likely a firewall issue, either on your Nagios server or some network-wide firewall.

Re: Access Nagios webpage on 2 interfaces.

Posted: Mon Apr 09, 2012 11:30 am
by salim
Sorry, but forgot to mention that the system is in place and working since six months now, for the 10.111 network. The nagios webpage can be accessed from any PC on that network. No problem. Now, I would like to use the eth1 interface and this will be on the 100.1 network. For a first test, I try accessing (from the PC running Nagios itself) the same webpage but with a different address (http://100.1.... instead of http://10.111....).
After some investigation on the net, I understand that the webpage can be accessed either by the localhost or the active eth, in my case eth0 unless apache is bound to another ip address.

Re: Access Nagios webpage on 2 interfaces.

Posted: Fri Apr 20, 2012 11:04 am
by agriffin
If you're still having troubles with this, could you post your Apache configuration so I can take a look at it? Minus any sensitive information of course.