Page 1 of 1
Nagios XI and VMware
Posted: Thu Mar 28, 2019 10:20 am
by azubarev
Hi guys! We have esxi 6.0 platforms at our environment, I've installed prerequisitions for monitoring according to manual, but when I try to add host via configuration wizard and choose host metrics (CPU, Memory, Networking and Memorys status, for example), I've got an error "Configuration verification failed."
I've deploy Nagios XI at esxi platform by downloaded VMware template.
Here is some information
uname -a
Linux vnagiosxi 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/*release
CentOS Linux release 7.6.1810 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="
https://www.centos.org/"
BUG_REPORT_URL="
https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.6.1810 (Core)
CentOS Linux release 7.6.1810 (Core)
I will appreciate any help. Thank you!
Re: Nagios XI and VMware
Posted: Thu Mar 28, 2019 10:34 am
by lmiltchev
Did you have any config errors/issues (that you know of) prior to running the wizard?
It's possible that you have a file that is "stuck" in the "/usr/local/nagios/etc/import" directory. To check, run the following command:
Code: Select all
ls -l /usr/local/nagios/etc/import
Try the following:
1. Run the Config File Management Tool - CCM > Tools > Config File Management Tool > Delete Files > Write Configs > Verify Files > Apply Configuration (apply configuration if there are no config errors that is)
2. Rerun the wizard
3. Check to see if you have any new issues
Re: Nagios XI and VMware
Posted: Thu Mar 28, 2019 11:15 am
by azubarev
lmiltchev wrote:Did you have any config errors/issues (that you know of) prior to running the wizard?
It's possible that you have a file that is "stuck" in the "/usr/local/nagios/etc/import" directory. To check, run the following command:
Code: Select all
ls -l /usr/local/nagios/etc/import
Try the following:
1. Run the Config File Management Tool - CCM > Tools > Config File Management Tool > Delete Files > Write Configs > Verify Files > Apply Configuration (apply configuration if there are no config errors that is)
2. Rerun the wizard
3. Check to see if you have any new issues
Hello! Thanks for the quick reply!
I haven't problems with other wizards, so I can succesfully add Cisco router for example. But I've tried all that you advised with same result.
Here is output of ls -l
[root@vnagiosxi]# ls -l /usr/local/nagios/etc/import
total 0
Re: Nagios XI and VMware
Posted: Thu Mar 28, 2019 11:19 am
by azubarev
lmiltchev wrote:Did you have any config errors/issues (that you know of) prior to running the wizard?
It's possible that you have a file that is "stuck" in the "/usr/local/nagios/etc/import" directory. To check, run the following command:
Code: Select all
ls -l /usr/local/nagios/etc/import
Try the following:
1. Run the Config File Management Tool - CCM > Tools > Config File Management Tool > Delete Files > Write Configs > Verify Files > Apply Configuration (apply configuration if there are no config errors that is)
2. Rerun the wizard
3. Check to see if you have any new issues
Hello and many thanks for the quick reply!
Here is outut of ls -l
[root@vnagiosxi tmp]# ls -l /usr/local/nagios/etc/import
total 0
So I've tried your recommendations with same result... Other wizards working with no problems, I can succesfully use Router wizard for example, but not VMware.
Re: Nagios XI and VMware
Posted: Thu Mar 28, 2019 12:19 pm
by lmiltchev
Can you show us a screenshot of the error that you are seeing in the GUI, and PM me your profile?
Admin > System Config > System Profile > Download Profile
Re: Nagios XI and VMware
Posted: Fri Mar 29, 2019 9:09 am
by lmiltchev
I believe I found what the issue was, while reviewing the logs in the profile. I found this error:
Error: Service check command 'check_vmware_api_host!xxx' specified in service 'CPU Usage for VMHost' for host 'xxx' not defined anywhere!
For some reason, you are missing both commands that are used in the new version of the vmware wizard - check_vmware_api_host and check_vmware_api_guest. I am not sure why this happened, but here's how you can fix it.
1. Go to the Admin > System Extensions > Manage Config Wizards and delete the VMware wizard by clicking on the "x" button.
2. Open a SSH (putty) terminal to your Nagios XI server, and run the following commands as root:
Running the upgrade script with the "-f" flag will force reinstalling all of the addons, including the VMware wizard you just deleted. It will also add the missing "check_vmware_api" commands. If for some reason you deleted the original install directory (/tmp/nagiosxi), you could re-download the tarball.
Code: Select all
cd /tmp
rm -rf xi* nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.11.tar.gz
tar xvf xi-5.5.11.tar.gz
cd nagiosxi
./upgrade -f
After running the upgrade script, check to see if the VMware wizard and both "check_vmware_api" commands were installed. If everything is in place, try rerunning the wizard.
Hope this helps.
Re: Nagios XI and VMware
Posted: Sat Mar 30, 2019 1:56 am
by azubarev
lmiltchev wrote:I believe I found what the issue was, while reviewing the logs in the profile. I found this error:
Error: Service check command 'check_vmware_api_host!xxx' specified in service 'CPU Usage for VMHost' for host 'xxx' not defined anywhere!
For some reason, you are missing both commands that are used in the new version of the vmware wizard - check_vmware_api_host and check_vmware_api_guest. I am not sure why this happened, but here's how you can fix it.
1. Go to the Admin > System Extensions > Manage Config Wizards and delete the VMware wizard by clicking on the "x" button.
2. Open a SSH (putty) terminal to your Nagios XI server, and run the following commands as root:
Running the upgrade script with the "-f" flag will force reinstalling all of the addons, including the VMware wizard you just deleted. It will also add the missing "check_vmware_api" commands. If for some reason you deleted the original install directory (/tmp/nagiosxi), you could re-download the tarball.
Code: Select all
cd /tmp
rm -rf xi* nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.11.tar.gz
tar xvf xi-5.5.11.tar.gz
cd nagiosxi
./upgrade -f
After running the upgrade script, check to see if the VMware wizard and both "check_vmware_api" commands were installed. If everything is in place, try rerunning the wizard.
Hope this helps.
Thank you for the advice, you're rock! Wizard is started, trying to add our hosts. Many thanks to you from cold Mother Russia!

Re: Nagios XI and VMware
Posted: Mon Apr 01, 2019 8:11 am
by scottwilkerson
azubarev wrote:
Thank you for the advice, you're rock! Wizard is started, trying to add our hosts. Many thanks to you from cold Mother Russia!

Great!
Locking thread