Page 1 of 1

check_vmware_api issue

Posted: Fri Jan 28, 2022 11:01 am
by jcampos9401
Hi there

I have tried to integrate vmware with nagios, I read the guides to be able to use vmware, however I cannot create resource monitoring.

It shows me UNKNOWN - plugin time out (30 seconds).

I have installed the perl SDK version 7 module since I have CentOS 8, and I can't monitor my computer.

Can you support me?

Greetings,

Re: check_vmware_api issue

Posted: Mon Jan 31, 2022 10:56 am
by ssax
SSH into the XI server and send the full output of the failing command but add -vvv --trace=4 onto the end of it:
- Change X.X.X.X, yourusername, yourpassword before running

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H X.X.X.X -u 'yourusername' -p 'yourpassword'  -l "CPU" -vvv --trace=4
Replace X.X.X.X with the VCenter/ESXI IP address and fill in a valid username and password in the commands below:

SSH into the XI server, and change to the following directory:

Code: Select all

cd /usr/lib/vmware-vcli/apps/general
Run this to test to see if you can connect to the VCenter/ESXI server:
- Change X.X.X.X, yourusername, yourpassword before running

Code: Select all

./connect.pl --server X.X.X.X --username 'yourusername' --password 'yourpassword' --verbose