Page 1 of 2
check_esx3 problem
Posted: Thu Aug 07, 2014 7:59 am
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.
Re: check_esx3 problem
Posted: Thu Aug 07, 2014 4:48 pm
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.
Re: check_esx3 problem
Posted: Fri Aug 08, 2014 2:54 am
by shinojvg
Hi,
Datastores are configured and they have a non-zero size. PFA a screenshot.
Regards,
Shinoj.
Re: check_esx3 problem
Posted: Fri Aug 08, 2014 1:51 pm
by abrist
What is the full command you are running?
Re: check_esx3 problem
Posted: Mon Aug 11, 2014 8:10 am
by shinojvg
Here is the command :
check_esx3_host!/usr/local/nagiosxi/etc/components/vmware/10_21_1_41_auth.txt!VMFS!
Regards,
Shinoj.
Re: check_esx3 problem
Posted: Mon Aug 11, 2014 10:46 am
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
Re: check_esx3 problem
Posted: Tue Aug 12, 2014 5:10 am
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.
Re: check_esx3 problem
Posted: Tue Aug 12, 2014 5:16 pm
by abrist
Can you post the full command as configured for the datastore check?
Re: check_esx3 problem
Posted: Wed Aug 13, 2014 8:53 am
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.
Re: check_esx3 problem
Posted: Wed Aug 13, 2014 4:57 pm
by abrist
Are any of the volumes exceptionally large?