Page 1 of 1

check_esx3 issues with ESXi dswitch variable (Networking)

Posted: Wed Feb 13, 2013 8:08 am
by mauricio.moya
Hi,

I'm using the Check_esx3.pl to monitoring the ESXi of my environment. I had added a lot of ESXi but now im having troubles with some ESXi that have dvswitch configured.

The plugin show me this error:

"ESX3 CRITICAL - Can't use an undefined value as an ARRAY reference at /usr/local/nagios/libexec/check_esx3.pl line 870."

But anyway the plugin can give me the received and send network variables. But dosen't give me the state of the Nics.

That what happend in the 870 line:

# see which NICs are actively part of a vswitch
foreach (@{$network_config->vswitch})


I have 24 more ESXi monitoring ok and all of them have simple vswithcs or simple and distributed together. Those that im having issues have only distributed.

You know why this can be happening???
It would help a lot!

thanks,
Mauricio

Re: check_esx3 issues with ESXi dswitch variable (Networking

Posted: Wed Feb 13, 2013 10:57 am
by abrist
Just to clarify, you are only having problems with the distributed vswitches, is that correct?

Re: check_esx3 issues with ESXi dswitch variable (Networking

Posted: Thu Feb 14, 2013 9:57 am
by mauricio.moya
Yes, Thats correct !

Re: check_esx3 issues with ESXi dswitch variable (Networking

Posted: Thu Feb 14, 2013 11:16 am
by abrist
What version of the plugin are you running (there are many, many different versions)?

Re: check_esx3 issues with ESXi dswitch variable (Networking

Posted: Mon Feb 18, 2013 1:30 pm
by mauricio.moya
Im using check_esx3.pl 0.2.0

Re: check_esx3 issues with ESXi dswitch variable (Networking

Posted: Mon Feb 18, 2013 1:49 pm
by scottwilkerson
Can you unzip and try the attached file (make a backup of your original)

This is 0.5.0 and it does appear that the vswitch items were re-worked a bit.

Re: check_esx3 issues with ESXi dswitch variable (Networking

Posted: Mon Feb 18, 2013 2:34 pm
by mauricio.moya
Now it working ok!

The new plugin solve the issue.

Thanks a lot for your help!!!!!!!!

Best Regards,

Re: check_esx3 issues with ESXi dswitch variable (Networking

Posted: Mon Feb 18, 2013 2:42 pm
by sreinhardt
Thanks for the reply! Glad its working!