check_esx3 problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
shinojvg
Posts: 6
Joined: Thu Aug 07, 2014 7:52 am

check_esx3 problem

Post by shinojvg »

Hi Team,

I am getting this error for Datastore Usage for VMHost monitor :

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

All the remaining monitors like Memory for VMHost, CPU usage for VMHost etc. are working fine.

Please advice.

Regards,
Shinoj.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_esx3 problem

Post by abrist »

Does the datastore exist? Does it have a size?
We have seen this issue before, and it is always related to a missing or size 0 datastore.
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.
shinojvg
Posts: 6
Joined: Thu Aug 07, 2014 7:52 am

Re: check_esx3 problem

Post by shinojvg »

Hi,

Datastores are configured and they have a non-zero size. PFA a screenshot.

Regards,
Shinoj.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_esx3 problem

Post by abrist »

What is the full command you are running?
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.
shinojvg
Posts: 6
Joined: Thu Aug 07, 2014 7:52 am

Re: check_esx3 problem

Post by shinojvg »

Here is the command :

check_esx3_host!/usr/local/nagiosxi/etc/components/vmware/10_21_1_41_auth.txt!VMFS!


Regards,
Shinoj.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_esx3 problem

Post by scottwilkerson »

Can you verify the others (that are working) are using the came credentials file
/usr/local/nagiosxi/etc/components/vmware/10_21_1_41_auth.txt

I ask because I noticed that in your image the Host is 10.11.1.41, and it looks like this auth file was created for 10.21.1.41
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
shinojvg
Posts: 6
Joined: Thu Aug 07, 2014 7:52 am

Re: check_esx3 problem

Post by shinojvg »

Hi,

The change in IP is because there is a NAT in between. Also, the credentials are correct - I get all the other details. Attached is a screenshot :

Regards,
Shinoj.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_esx3 problem

Post by abrist »

Can you post the full command as configured for the datastore check?
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.
shinojvg
Posts: 6
Joined: Thu Aug 07, 2014 7:52 am

Re: check_esx3 problem

Post by shinojvg »

[root@localhost etc]# /usr/local/nagios/libexec/check_esx3.pl -H 10.21.1.41 -f /usr/local/nagiosxi/etc/components/vmware/10_21_1_41_auth.txt -l vmfs
ESX3 CRITICAL - Can't use an undefined value as an ARRAY reference at /usr/local/nagios/libexec/check_esx3.pl line 1061.

Hope this is what you are looking for.

Regards,
Shinoj.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_esx3 problem

Post by abrist »

Are any of the volumes exceptionally large?
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.
Locked