Page 1 of 1

RHEL 8 - vmware sdk7 - plugin timeout

Posted: Wed Apr 28, 2021 4:15 am
by jmonn
Hello,

I followed https://assets.nagios.com/downloads/nag ... ios-XI.pdf and got it "working", it sometimes manages to check the values. But most of the time, I just receive a "plugin timeout" error.
2021-04-28 11_13_33.png
I read https://security.stackexchange.com/ques ... tropy-pool, installed havege, which I believe smoothed things a bit : it now succeeds half of time (with lot of vmware checks disabled).

2 questions then :
- Is there a way to make this monitoring work ?
- As the vmware perl sdk is deprecated, is there a move to python sdk, or even directly to the web API ?

Regards,

Re: RHEL 8 - vmware sdk7 - plugin timeout

Posted: Wed Apr 28, 2021 2:09 pm
by benjaminsmith
Hi Jmonn,

The intermittent timeout issues are often network-related. Any issues pinging the host?

Let's run a few commands directly from the CLI and try to get some more information back for debugging. Please post the output to the thread.

For VM Host:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H X.X.X.X -uyouruser -p'yourpassword' -l "CPU" -vvv
For VM Guest:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H X.X.X.X -uyouruser -p'yourpassword' -N 'yourvmname' -l "CPU" -vvv
Regards,
Benjamin

Re: RHEL 8 - vmware sdk7 - plugin timeout

Posted: Thu Apr 29, 2021 5:28 am
by jmonn
Hi,

network is not the issue here, no firewall on the VM, and nagios has been running on this VM for almost 2 years before we tried (and failed) upgrading from rhel 7 to rhel 8. (So I can not test it anymore...)

Second question was about moving to something else for vmware monitoring : vmware recommends moving to python sdk, is there any project on that ? https://kb.vmware.com/s/article/80144

Regards,

Re: RHEL 8 - vmware sdk7 - plugin timeout

Posted: Thu Apr 29, 2021 12:59 pm
by benjaminsmith
Hi,

We will likely upgrade this after Nagios XI 6 is released. Right now, I do not have an exact date or timeline.

Regards,
Benjamin