Changing IP Address

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
thundaheed
Posts: 1
Joined: Fri Aug 21, 2015 5:20 am

Changing IP Address

Post by thundaheed »

Apologies if this is a stupid quesiton but I'm not exactly a linux or nagios admin but...

I have a Nagios Core server in a network (Network A) and want to move it to another network with a new IP Address (Network B)

I've added Network B ethernet card and configured it, my question is, how do I get nagios core website currently http://10.20.30.40/nagios to be the new website address http://20.30.40.50/nagios

or would it just be easier to build a new server and copy my config across.

I'd have thought it would be an address in apache or nagios somewhere but after googling for a few hours with no luck I thought I see if some uber Nagios dude can point me in the correct direction

cheers in advance
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Changing IP Address

Post by jdalrymple »

By default apache listens on all ports. You shouldn't have to change anything except maybe a firewall rule.

Code: Select all

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
Thunderhead
Posts: 1
Joined: Fri May 02, 2014 3:47 am

Re: Changing IP Address

Post by Thunderhead »

apologies for the delay, thanks for the response that's what I was looking for
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Changing IP Address

Post by hsmith »

Is there anything else we can do to assist you with this one?
Former Nagios Employee.
me.
Locked