Setting up Nagios XI on VM with DHCP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nagiosmits
Posts: 5
Joined: Wed Jun 01, 2016 11:29 am

Setting up Nagios XI on VM with DHCP

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting up Nagios XI on VM with DHCP

Post by rkennedy »

What is the output of ifconfig? It should be set to pick up a DHCP address by default.
Former Nagios Employee
nagiosmits
Posts: 5
Joined: Wed Jun 01, 2016 11:29 am

Re: Setting up Nagios XI on VM with DHCP

Post by nagiosmits »

I'm not getting any IPv4 being assigned to the guest OS using the setup described in the first post
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting up Nagios XI on VM with DHCP

Post by rkennedy »

It looks like you're getting an IPv6 address. Can you post a screenshot of your 'Network' tab from Virtualbox?
Former Nagios Employee
nagiosmits
Posts: 5
Joined: Wed Jun 01, 2016 11:29 am

Re: Setting up Nagios XI on VM with DHCP

Post by nagiosmits »

Yes I am just not receiving an IPv4 address.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting up Nagios XI on VM with DHCP

Post 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.
Former Nagios Employee
nagiosmits
Posts: 5
Joined: Wed Jun 01, 2016 11:29 am

Re: Setting up Nagios XI on VM with DHCP

Post 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

Code: Select all

ifconfig
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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Setting up Nagios XI on VM with DHCP

Post by rkennedy »

Did you reboot the machine after changing the network adapter type?
Former Nagios Employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Setting up Nagios XI on VM with DHCP

Post by lmiltchev »

Can you run the following command and show us the output?

Code: Select all

cat /etc/sysconfig/network-scripts/ifcfg-eth0
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiosmits
Posts: 5
Joined: Wed Jun 01, 2016 11:29 am

Re: Setting up Nagios XI on VM with DHCP

Post 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
You do not have the required permissions to view the files attached to this post.
Locked