CHECK_VMWARE_API.PL CRITICAL - Host "" does not exist

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CHECK_VMWARE_API.PL CRITICAL - Host "" does not exist

Post by ssax »

What is the full output of this command? (you can PM the output needed)

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H "172.27.0.21" -u 'nagios' -p '<censored>' -l "CPU" -vvv --trace 4
Try doing this as well which will give a ton of output, send that output as well:

Code: Select all

cpan -i Devel::Trace
perl -d:Trace /usr/local/nagios/libexec/check_vmware_api.pl -H "172.27.0.21" -u 'nagios' -p '<censored>' -l "CPU" -vvv --trace 4
brennanma
Posts: 8
Joined: Tue Feb 19, 2013 12:19 pm

Re: CHECK_VMWARE_API.PL CRITICAL - Host "" does not exist

Post by brennanma »

I just wanted to come back and close the loop on this.

VMWare support was of no help. They told me to come here. No surprise there. I did figure out the issue, just now, though.

When the 'nagios' user was given the read-only role on node 3, we didn't check "Propagate to all child objects." We must have done it on the rest of them. Removing the user and re-adding it with that checked fixed the issue. I removed and re-added again, without the check box, and the problem came back. IMO, the VMWare API should have been returning a 403 since the user didn't have permissions to the object it was querying.

At any rate, it's fixed. Thanks for your help.

-Matt
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: CHECK_VMWARE_API.PL CRITICAL - Host "" does not exist

Post by vtrac »

Great!! .... locking thread ... :-)
Locked