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!
Nagios XI and VMware
Re: Nagios XI and VMware
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:
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
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/import1. 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI and VMware
Hello! Thanks for the quick reply!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:
Try the following:Code: Select all
ls -l /usr/local/nagios/etc/import
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
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
Hello and many thanks for the quick reply!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:
Try the following:Code: Select all
ls -l /usr/local/nagios/etc/import
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
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
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
Admin > System Config > System Profile > Download Profile
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI and VMware
I believe I found what the issue was, while reviewing the logs in the profile. I found this error:
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.
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.
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.Error: Service check command 'check_vmware_api_host!xxx' specified in service 'CPU Usage for VMHost' for host 'xxx' not defined anywhere!
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:
Code: Select all
cd /tmp/nagiosxi
./upgrade -fCode: 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 -fHope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI and VMware
Thank you for the advice, you're rock! Wizard is started, trying to add our hosts. Many thanks to you from cold Mother Russia!lmiltchev wrote:I believe I found what the issue was, while reviewing the logs in the profile. I found this error: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.Error: Service check command 'check_vmware_api_host!xxx' specified in service 'CPU Usage for VMHost' for host 'xxx' not defined anywhere!
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/nagiosxi ./upgrade -fAfter 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.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
Hope this helps.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI and VMware
Great!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!![]()
Locking thread