Re: Check works when testing via CLI and GUI, but not live
Posted: Thu Jan 14, 2016 2:11 pm
How long does it take to run the check before it returns data?
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
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