Page 2 of 2

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

Posted: Mon Apr 05, 2021 1:41 pm
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

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

Posted: Fri Apr 30, 2021 11:25 am
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

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

Posted: Fri Apr 30, 2021 4:15 pm
by vtrac
Great!! .... locking thread ... :-)