on
dns
technitium
ubuntu
- Get link
- X
- Other Apps
Attention: Due to check_vmware_api require Net-HTTP and libwww-perl version 6.03 to work properly, suggest to use check_esx3.pl instead.
1. Download check_vmware_api.pl from https://github.com/op5/check_vmware_api.
2. Follow https://landofnightandday.blogspot.com/2018/06/vmware-nagios-monitoring.html to setup vsphere perl SDK.
3. If encounter error "Possible precedence issue with control flow operator at /usr/share/perl/5.20/VMware/VICommon.pm line 2147". In this case is sufficient to modify the line n. 2146 in the file VICommon.pm (/usr/share/perl/5.20/VMware)
from
return defined $user_agent->cookie_jar and $user_agent->cookie_jar->as_string ne '';
to
return (defined $user_agent->cookie_jar and $user_agent->cookie_jar->as_string ne '');
3. If it doesn’t work, could be a SOAP problem and the libwww-perl version. The solution is to downgrade Net-HTTP and libwww-perl to version 6.03.
http://www.sigmanetwork.it/2014/04/07/monitoring-vmware-esx-esxi-vsphere-and-vcenter-server/
Comments