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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
philip.ianni
Posts: 29
Joined: Tue Dec 29, 2015 12:35 pm

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

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked