Changing the XI Virtual Machine Network Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Changing the XI Virtual Machine Network Configuration

Post by lyle »

In regards to the article "Changing the XI Virtual Machine Network Configuration", if the VM never gets any initial network info from DHCP, you can't really "yum install" anything, or is there a trick?
I mean until the VM gets an IP and default route, it can't really get anyplace. At least mine can't.
Unfortunately first try at editing ifcfg-eth0 by hand means it won't boot at all. :roll:

Thanks...Lyle
Last edited by lyle on Fri May 03, 2013 12:29 pm, edited 1 time in total.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Changing the XI Virtual Machine Network Configuration

Post by lmiltchev »

You are correct - you can't run "yum install" in this case, however this tutorial describes cases, when you need to use a static IP, or change the DNS name for the machine, provided you've obtained an IP via DHCP already. If you do a minimal install, you will have to edit the "ifcfg-eth0" file:

Code: Select all

vi /etc/sysconfig/network-scripts/ifcfg-eth0
Make sure you have the following two lines:

Code: Select all

ONBOOT=yes
BOOTPROTO=dhcp
Restart the network to obtain an IP address:

Code: Select all

service network restart
In addition, you can configure a static IP in the ifcfg-eth0. Please, review this guide:
http://www.lifelinux.com/how-to-configu ... on-centos/
Be sure to check out our Knowledgebase for helpful articles and solutions!
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: Changing the XI Virtual Machine Network Configuration

Post by lyle »

That guide was pretty good, but no matter how I tried, the VM would not withstand a reboot, just kept hanging up on the boot.

Finally after several reinstalls of the OVA, I manually reconfigured & restarted the network, did not reboot, and used that opportunity to install system-config-network-tui. Using that tool to set the static IP did make the VM bootable.

Your doc "Virtual Machine Notes" doesn't mention that one has to run /usr/local/installNagiosXI.sh

Thanks for the help....Lyle
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Changing the XI Virtual Machine Network Configuration

Post by slansing »

Your doc "Virtual Machine Notes" doesn't mention that one has to run /usr/local/installNagiosXI.sh
Could you elaborate on what you mean by running "/usr/local/installNagiosXI.sh?"
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: Changing the XI Virtual Machine Network Configuration

Post by lyle »

I downloaded "vSphere OVF Template 64-bit 2012R1.8" from the Nagios XI Downloads page. I deployed the VM under ESX 5.1, and *finally* getting the networking to work (no DHCP here, only static IP's).

But none of the Nagios products were installed. Looking under /usr/local I found the "installNagiosXI.sh" script, which checks to see if XI is installed, and downloads & installs if not. I had to run this script, which did a fine job of installing all the products mentioned in the "Virtual Machine Notes" doc, then rebooted.

So it was a happy ending, but the doc should probably mention this. Hope this helps....Lyle
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Changing the XI Virtual Machine Network Configuration

Post by scottwilkerson »

Glad you got it working. I believe this is a bug in the latest vSphere OVF Template 64-bit 2012R1.8, I will be checking into this
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked