Page 1 of 2
Accessing Nagios after Hyper V upgrade
Posted: Thu Sep 10, 2015 3:06 pm
by lance.peterson
Our HyperV enviroment was upgraded last night after importing the Nagios VM over to HyperV 2012 and booting the computer up. It no longer has a way to to access via the web. It shows the correct information when I look at the config for eth0. When I do an ifconfig it only shows the loopback address though. Any ideas on how to get Nagios to see that adaptor?
Re: Accessing Nagios after Hyper V upgrade
Posted: Thu Sep 10, 2015 3:11 pm
by hsmith
What OS is this? How about a service network status?
Re: Accessing Nagios after Hyper V upgrade
Posted: Thu Sep 10, 2015 3:40 pm
by lance.peterson
CENTOS and
Configured devices
lo eth0
Currently Active devices
lo
Re: Accessing Nagios after Hyper V upgrade
Posted: Thu Sep 10, 2015 3:48 pm
by hsmith
lance.peterson wrote:CENTOS and
Configured devices
lo eth0
Currently Active devices
lo
What's inside of the
/etc/sysconfig/network-scripts/eth0 file?
Re: Accessing Nagios after Hyper V upgrade
Posted: Thu Sep 10, 2015 4:11 pm
by lance.peterson
when I type "vi /etc/sysconfig/network-scripts/eth0" it says [new file]????
Re: Accessing Nagios after Hyper V upgrade
Posted: Thu Sep 10, 2015 4:14 pm
by hsmith
lance.peterson wrote:when I type "vi /etc/sysconfig/network-scripts/eth0" it says [new file]????
That's because I told you to type the wrong thing.
/etc/sysconfig/network-scripts/ifcfg-eth0 was what I should have typed.
Sorry about that!
Re: Accessing Nagios after Hyper V upgrade
Posted: Thu Sep 10, 2015 7:46 pm
by Box293
It might be possible that the mac address of the NIC has changed. It would be defined in:
/etc/sysconfig/network-scripts/ifcfg-eth0
Re: Accessing Nagios after Hyper V upgrade
Posted: Fri Sep 11, 2015 9:02 am
by lance.peterson
Yes it has changed as it moved machines. Do I just change the MAC address then?
Re: Accessing Nagios after Hyper V upgrade
Posted: Fri Sep 11, 2015 9:12 am
by hsmith
lance.peterson wrote:Yes it has changed as it moved machines. Do I just change the MAC address then?
If it doesn't match, you're going to need to.
Re: Accessing Nagios after Hyper V upgrade
Posted: Fri Sep 11, 2015 9:23 am
by lance.peterson
Whats the best way to make that change?