Page 1 of 2
Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 12:03 pm
by nagiosmits
I am currently having an issue with NagiosXI on our network via the VMWare instance. I am not able to communicate with devices on my network and the root cause is that the instance (which is configured via Bridged Adapter) is not being issued an IP address for us to communicate with via DHCP. Would that be a CentOS issue or something that I could configure within Nagios XI itself?
I am using the VMWare 64-bit instance (which uses CentOS 6.7) with VirtualBox Version 5.0.20 r106931
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 12:38 pm
by rkennedy
What is the output of ifconfig? It should be set to pick up a DHCP address by default.
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 2:31 pm
by nagiosmits
I'm not getting any IPv4 being assigned to the guest OS using the setup described in the first post
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 3:49 pm
by rkennedy
It looks like you're getting an IPv6 address. Can you post a screenshot of your 'Network' tab from Virtualbox?
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 4:01 pm
by nagiosmits
Yes I am just not receiving an IPv4 address.
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 4:13 pm
by rkennedy
At first you said the adapter was bridged, but now it looks like it's a 'host-only adapter'. This will stop any communication with your DHCP server as the network is limited between you and the VM.
Try changing it to bridged, and see if you're able to communicate with DHCP at that point.
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 4:42 pm
by nagiosmits
Yes, my apologies I have been trying other network types to enable it to communicate on my network but when I had sent the first screen shot with the
command the VM's NIC was in Bridged Adapter Mode. The only configuration with which I can communicate with the Nagios VM instance is via the Host-Only Adapter. Is it possible that I would have to configure the VM with the DHCP server that would be delivering the IP Address to the guest OS, or is it that it should be configured right out of the box since by using Bridged Adapter I am already using the NIC on the physical box which would be able to communicate with the DHCP server in question to deliver the guest OS with an IP?
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 5:01 pm
by rkennedy
Did you reboot the machine after changing the network adapter type?
Re: Setting up Nagios XI on VM with DHCP
Posted: Wed Jun 01, 2016 5:03 pm
by lmiltchev
Can you run the following command and show us the output?
Code: Select all
cat /etc/sysconfig/network-scripts/ifcfg-eth0
Re: Setting up Nagios XI on VM with DHCP
Posted: Thu Jun 02, 2016 10:52 am
by nagiosmits
Did you reboot the machine after changing the network adapter type?
Yes I did reboot the machine after changing the network adapter type
Can you run the following command and show us the output?
cat /etc/sysconfig/network-scripts/ifcfg-eth0