check_esx3 issues with ESXi dswitch variable (Networking)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mauricio.moya
Posts: 36
Joined: Wed Dec 26, 2012 10:52 am

check_esx3 issues with ESXi dswitch variable (Networking)

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_esx3 issues with ESXi dswitch variable (Networking

Post by abrist »

Just to clarify, you are only having problems with the distributed vswitches, is that correct?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mauricio.moya
Posts: 36
Joined: Wed Dec 26, 2012 10:52 am

Re: check_esx3 issues with ESXi dswitch variable (Networking

Post by mauricio.moya »

Yes, Thats correct !
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_esx3 issues with ESXi dswitch variable (Networking

Post by abrist »

What version of the plugin are you running (there are many, many different versions)?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mauricio.moya
Posts: 36
Joined: Wed Dec 26, 2012 10:52 am

Re: check_esx3 issues with ESXi dswitch variable (Networking

Post by mauricio.moya »

Im using check_esx3.pl 0.2.0
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_esx3 issues with ESXi dswitch variable (Networking

Post 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.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
mauricio.moya
Posts: 36
Joined: Wed Dec 26, 2012 10:52 am

Re: check_esx3 issues with ESXi dswitch variable (Networking

Post by mauricio.moya »

Now it working ok!

The new plugin solve the issue.

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

Best Regards,
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_esx3 issues with ESXi dswitch variable (Networking

Post by sreinhardt »

Thanks for the reply! Glad its working!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked