If it takes over 60 seconds, the default service_check_timeout=60 that is defined in the /usr/local/nagios/etc/nagios.cfg file is what is timing out that check.
Can you run the command from the command line again and add the time command to the beginning of the command and post how long it takes to run?
Example below
Code: Select all
time /usr/local/nagios/libexec/check_esx.pl -H xxx.xxx.xxx.xxx -F /usr/local/nagiosxi/etc/components/vmware/VSPHERE_READONLY.txt --select=runtime --subselect=temp