There are other plugin out there but I feel they may fail the same.
The error suggest that there is an temporary authentication issue which causing it to generate the error and the next time it runs, it works.
Go here and search for an alternate plugin. https://exchange.nagios.org/
What version of the plugin are you running? Run this to see.
I's hard to troubleshoot an intermittent issue but here is what I suggest to do next.
If you can connect the server to the internet, them reinstall the VMWare Perl SDK again and when it asks to download the Perl modules, say yes and wait for them to install.
It could be that the supplied Perl Modules with the SDK need to be updated.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Unfortunately this is a completely offline environment. Internet access is not an option. When looking at VMware's website I am running the newest version of VMware vSphere Perl SDK 6.5. I will see about bringing in a newer patch set, but the set we have is from May 1st 2019.
One thing you can do, in the VMWare installer folder is a lib folder, those are the Perl modules that are installed if you do not download newer versions.
Find and download newer versions on an internet connected system and install them on the server to see if it helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
I went ahead and reinstalled and noticed this after the successful installation prompt. From other threads and documentation it says to ignore it. But it seems like this could be the main problem.
"The following Perl modules were found on the system but may be too old to work with vSphere CLI:
MIME::Base64 3.14 or newer
Try::Tiny 0.22 or newer
LWP 6.15 or newer
Socket6 0.23 or newer
IO::Socket::INET6 2.71 or newer
Net::HTTP 6.09 or newer"