Page 1 of 1

CHECK_ESX Unkown

Posted: Tue Mar 21, 2017 6:16 am
by nagiosjam
Hello
I have a VMWARE server that takes a few days giving this error when executing the check_esx_net

The rest of checks with check_esx does not fail. I have rebooted the vmware server and it continues giving this error,
please help. Thank you

CHECK_ESX UNKNOWN - plugint time out (timeout 30s)


define service{
use linuxvmware
hostgroup_name vmware
service_description ESXi Network usage
check_command check_esx_net!502400!512000
}

Define command {
Command_name check_esx_net
Command_line $ USER1 $ / check_esx -H $ HOSTADDRESS $ -u nagios -p xxxx -l net -s usage -w $ ARG1 $ -c $ ARG2 $
}

Re: CHECK_ESX Unkown

Posted: Tue Mar 21, 2017 12:42 pm
by mcapra
Could you share where you got the check_esx plugin from? It probably has a timeout value you can increase up to 60 seconds. That might prevent the false negatives.

Re: CHECK_ESX Unkown

Posted: Wed Mar 22, 2017 5:27 am
by nagiosjam
Hello
I increased the timeout from 30 to 40 in the file check_esx and now everything ok, thank you very much

Re: CHECK_ESX Unkown

Posted: Wed Mar 22, 2017 10:03 am
by cdienger
Is it okay to close this thread or did you have any further questions?

Re: CHECK_ESX Unkown

Posted: Wed Apr 05, 2017 6:11 am
by nagiosjam
good morning
I fail the plugin again.
I increase the timeout to 59 and it continues giving me CHECK_ESX UNKNOWN - plugin timed out (timeout 59s)

If I put timeout 60 instead of UNKOWN I get critical and this error (Service check timed out after 60.01 seconds)
Please help
Thank you

Re: CHECK_ESX Unkown

Posted: Wed Apr 05, 2017 2:22 pm
by mcapra
check_esx is just a really heavy plugin. If you've added checks to your Nagios Core machine recently, you may need to increase the available physical resources. Have you either added checks to this machine recently or adjusted it's available physical resources?

Re: CHECK_ESX Unkown

Posted: Thu Apr 06, 2017 4:42 am
by nagiosjam
Hello
No, nothing has been added or nothing has been adjusted.
It's just the way it was before it failed.
I am using check_esx with other servers and they do not give me problems
Thank you

Re: CHECK_ESX Unkown

Posted: Thu Apr 06, 2017 4:24 pm
by mcapra
Can you send us copies of your nagios logs for the last few days? They're typically found in /usr/local/nagios/var/archives or whatever path is set under log_archive_path in your nagios.cfg.

Can we also see some sample Service definitions leveraging check_esx?

Re: CHECK_ESX Unkown

Posted: Mon Apr 10, 2017 8:44 am
by nagiosjam
Again, ok again and work, thank you, hopefully it will not fail again. You can close the thread