Page 1 of 1

Problem adding VMware host

Posted: Wed Jan 26, 2011 11:32 am
by BryanWB
first: running nagios xi R1.3G on the Centos 5.4 VM
I have installed the vmware sdk for perl
I have an ESXi 4.0 host that I want to monitor

I had trouble adding the vmware plugin. After I initally uploaded it, the Monitoring wizard did not appear. I got around this by unzipping the vmware.zip to /usr/local/nagiosxi/html/includes/configwizards

then the vmware wizard appeared

I took the additional step of uploading the check_esx3.pl plugin separately

I am having trouble adding a VMware host w/ the VMware Monitoring wizard

this is the error output that I get

Error: Service check command 'check_esx3_host' specified in service 'CPU Usage for VMHost' for host 'HQESX01' not defined anywhere!
Error: Service check command 'check_esx3_host' specified in service 'Input / Output for VMHost' for host 'HQESX01' not defined anywhere!
Error: Service check command 'check_esx3_host' specified in service 'Memory for VMHost' for host 'HQESX01' not defined anywhere!
Error: Service check command 'check_esx3_host' specified in service 'Networking for VMHost' for host 'HQESX01' not defined anywhere!
Error: Service check command 'check_esx3_host' specified in service 'Services for VMHost' for host 'HQESX01' not defined anywhere!
Error: Service check command 'check_esx3_host' specified in service 'VM Status for VMHost' for host 'HQESX01' not defined anywhere!

when i run the cmd /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl -H my_host_name -u user -p password
I get a nice full list of guests on my esx host

Any suggestions? tks in advance

Re: Problem adding VMware host

Posted: Wed Jan 26, 2011 3:10 pm
by admin
There should be a config file (.cfg extension) in the templates/ subdirectory where you unzipped the wizard. This file needs to get imported into Nagios. To do this:

1. Copy the file to:

/usr/local/nagios/etc/import

2. Run the following script:

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh

Re: Problem adding VMware host

Posted: Thu Jan 27, 2011 8:49 am
by BryanWB
Worked great, thanks!

Re: Problem adding VMware host

Posted: Thu Jan 27, 2011 3:12 pm
by rdedon
Thank you Bryan for the update, please feel free to contact us again if you have any issues or questions.