Suggestion for bugfix:
Deploy Version 6.03 of perl module Net-HTTP with your product.
original message from "How Do I ...?" forum
long intro, press PageDown to skip (question at the end of the post)
i would like to read some values from a esx host.
when i exexcute this on the console
/usr/local/nagios/libexec/check_vmware_api.pl -H esx1.elements.mydomain.com -N "SULFUR" -u "monitoring" -p "mypassword" -l cpu -s wait --no-certificate-checking
i takes about boring 3-4 minutes until the answer reachs me. The answer includes an error as well:
CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue
this issue is long discussed in the net and the usual solution is to downgrade the perl module Net-HTTP and somtimes the libwww-perl as well.
when i tried to downgrade, i made the mistake to use the root user to start the console
perl -MCPAN -e shell
and install with
(or even lower versions)
now i figured out i have to do this with the nagios user, but then i have maybe not enough rights?
cpan> i /libwww-perl/
CPAN: Storable loaded ok (v2.35)
Database was generated on Thu, 14 Nov 2013 09:29:02 GMT
Author LWWWP ("The libwww-perl mailing list" <firstname.lastname@example.org>)
4 items found
cpan> install GAAS/libwww-perl-5.837.tar.gz
Cannot create directory /root/.cpan/prefs
how can i update the perl modules, used by nagios user and opsview?