Page 1 of 1

Unable to monitor esxi hosts

Posted: Wed Apr 27, 2022 3:30 pm
by baron164
I deployed the latest Nagios ova into my VMware environment so I can test it using the 30 day trial license. So far monitoring web sites and windows machines works fine. But I've been unable to add my ESXi hosts into Nagios. I've installed the latest Perl SDK from VMware and I've tried added the hosts into Nagios using the wizard but I just receive "(Service check timed out after 60.04 seconds)" errors. I tried to run the check_vmware_api.pl script manually but that gives me a "CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue" error. Can anyone tell me what the issue might be and/or how to fix it?

Re: Unable to monitor esxi hosts

Posted: Wed Apr 27, 2022 4:07 pm
by gormank
You could try running checks via the vcenter host rather than the ESX hosts. -D below is the vcenter host.

/usr/local/nagios/libexec/check_vmware_api.pl -H $HOSTNAME$ -u $USER9$ -p $USER10$ --command=cpu --subcommand=usage -w 50% -c 80% -D $USER11$ -C CMV --timeout=15

Other than that I would google the the error message and see what others have done.