We are currently running a Nagios XI appliance (version 5.8.2). We are trying to monitor several VMWare ESXi hosts (version 6.7.0, 14320388). I have four identical hosts which are HP DL 380 Gen 9 -- we are running the HP customized version of ESXi.
Of the four hosts, three of them test without issue. The fourth, however, returns the error mentioned in the subject (CHECK_VMWARE_API.PL CRITICAL - Host "" does not exist). As far as I can tell, the hosts are configured identically. The checks are also working for 4 other VMWare ESXi hosts which are running different hardware but the same ESXi version.
This is actually a continuation of https://support.nagios.com/forum/viewto ... =6&t=56682. Shortly after creating the ticket, I lost access to the NagiosXI forum and therefore couldn't update my own post to respond to @lmiltchev. With the pandemic starting, I eventually put this task aside and then forgot about it. The problem is still occurring for this one host, and a Google search brought me back to my own post.
I got to the point where I was convinced the host must have had something bad in it's configuration. I migrated all the VM's off of it and re-installed ESXi from scratch. The problem persisted to the fresh install. I am now even more baffled than I was back in December 2019.
To respond to the questions from the previous post ...
Yes, I did. And it's working for multiple other hosts without issue.lmiltchev wrote:Did you follow the instructions in the document below?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
lmiltchev wrote:Can you show us a command, run from the command line along with the output of it in "verbose mode"?
Code: Select all
/usr/local/nagios/libexec/check_vmware_api.pl -H "172.27.0.21" -u 'nagios' -p '<censored>' -l "CPU" -vvv
[extra-opts] check_vmware_api.pl -H 172.27.0.21 -u nagios -p <censored> -l CPU -vvv
Use of uninitialized value in concatenation (.) or string at /usr/local/nagios/libexec/check_vmware_api.pl line 963.
CHECK_VMWARE_API.PL CRITICAL - Host "" does not existYeslmiltchev wrote:Also, try the following:Were you able to connect?Code: Select all
cd /usr/lib/vmware-vcli/apps/general ./connect.pl --url https://<ip address>/sdk/vimService --username '<username>' --password '<password>'
Code: Select all
./connect.pl --url https://172.27.0.21/sdk/vimService --username 'nagios' --password '<censored>'
Connection Successful
Server Time : 2021-03-27T22:04:38.994158Z