Page 1 of 1

ESX Plugin on NagiosXi

Posted: Tue Nov 07, 2017 3:16 am
Hi there,
I use NagiosXI to monitor VMware ESX Servers. Sometimes the check failed with "Unknown Error CPU" or "Unknown ERROR IO" in this case the Service gets red.
Sometimes the check is successfull and green. This behaviour is absolutly random.
Every Host und Every Service is flapping its state.

The Servers arent overloaded. Any Idea how to fix this?

Thank you in advance

Re: ESX Plugin on NagiosXi

Posted: Tue Nov 07, 2017 10:28 am
by npolovenko
Hello, [user][email protected][/user].

What plugin are you using to monitor ESX? If you're using check_esx3.pl than I'd recommend increasing timeout with -t argument. Can you upload the check command definition?

Re: ESX Plugin on NagiosXi

Posted: Fri Nov 10, 2017 2:48 am
I am using the Plugins which is used by the Nagios XI VMWare Wizard.

Commad look like the following:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H "172.16.254.152" -f "/usr/local/nagiosxi/etc/components/vmware/esx02_auth.txt" -l "MEM" 
ESX3 CRITICAL - HOST MEM Unknown error

But sometimes I get result back from the ESX. The State is flapping from Unknown Error to green

Re: ESX Plugin on NagiosXi

Posted: Fri Nov 10, 2017 11:05 am
by npolovenko
[user][email protected][/user], Let's try to add a timeout value to your command:

Code: Select all

$USER1$/check_esx3.pl -H "$HOSTADDRESS$" -f "$ARG1$" -l "$ARG2$" $ARG3$ -t 59 
You can modify this command if you go to Core Configuration Manager, and then click on Commands in the left column.

I see you also opened a support ticket with us. Would you like to go forward with the support ticket instead?

Re: ESX Plugin on NagiosXi

Posted: Mon Nov 13, 2017 6:48 am
I there, we can also go the way by this Thread. It doesnt make any matter the -t 59 .
Maybe there is any known issue by esx Side?

Re: ESX Plugin on NagiosXi

Posted: Mon Nov 13, 2017 3:52 pm
by npolovenko
[user][email protected][/user], Looks like it is some kind of connection issue. But we had a similar issue in the past and it was fixed by changing the plugin to a different version.

1. Make a backup of the old plugin:

Code: Select all

cd /usr/local/nagios/libexec
mv check_esx3.pl check_esx3.old.pl
2. Upload the new plugin(attached to this post).

3. Change the new plugin permissions:

Code: Select all

  chown apache.nagios check_esx3.pl
   chmod 775 check_esx3.pl
After that please restart nrpe. And also, please keep the timeout value in your command for now.

Let us know if the new plugin produces the same kind of behavior.

Re: ESX Plugin on NagiosXi

Posted: Wed Nov 15, 2017 4:27 am
Hi the new Plugin works good.
Thank you for the support!

Re: ESX Plugin on NagiosXi

Posted: Wed Nov 15, 2017 1:13 pm
by npolovenko
[user][email protected][/user], Great, closing this thread!