Page 2 of 2

Re: Check works when testing via CLI and GUI, but not live

Posted: Thu Jan 14, 2016 2:11 pm
by tgriep
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

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

Re: Check works when testing via CLI and GUI, but not live

Posted: Wed Jan 20, 2016 4:48 pm
by philip.ianni
The output for time was

real 0m2.444s
user 0m0.802s
sys 0m0.104s


Nothing really there.

As I said I think this is an old PID issue. Something happened possible a while ago and broke the script for those few servers. Possible the old pid is not getting deleted properly. Unfortunately I cannot seem to locate exactly the PID location because Im not that proficient in perl.

Re: Check works when testing via CLI and GUI, but not live

Posted: Wed Jan 20, 2016 6:23 pm
by Box293
You should check out my VMware plugin box293_check_vmware which can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details

There is also a wizard for it:
http://exchange.nagios.org/directory/Ad ... rd/details

In my opinion it's a better VMware Monitoring solution.