Page 2 of 2

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Tue Dec 20, 2016 11:08 am
by tgriep
Sorry, my mistake, I meant the read-only account that was setup on the VCenter server and not the vi-admin account. Can you try that one and see if you can see the Datastores?

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Thu Dec 22, 2016 5:09 am
by jyoti22
Please could you give me the command to check the datastores from VMA

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Thu Dec 22, 2016 5:30 am
by jyoti22
Yes using the account we can login to vcenter and view the datastores. But not from this plugin. We can retrieve host information, but not datastores. PFA

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Thu Dec 22, 2016 12:33 pm
by tgriep
If you want to run the command from the VMA server, login to it using the vi-admin account and run the following. I have added the --debug option for the command so we can view the verbose output and possibly get the errors on why it is not working.
Please post the output.

Code: Select all

~/box293_check_vmware.pl --timeout 90 --server 10.161.183.30 --check Datastore_Usage --name "Datastore1" --reporting_si "Disk_Size:GB" "--warning" "datastore_free:300" "--critical" "datastore_free:200" --debug
~/box293_check_vmware.pl --version
When the debug option is used, is will put that output in the file below in the VMA server so you could post that if you like.

Code: Select all

/home/vi-admin/box293_check_vmware_debug_log.txt

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Mon Dec 26, 2016 12:06 am
by jyoti22
Hi, we get the data for datastore with this command on vi-admin
PFA. But not on webconsole

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Tue Dec 27, 2016 10:36 am
by rkennedy
The debug appears to be correct.

Looking at your image, it appears things line up properly, but just to make sure - are you logging into the server you're using check_by_ssh with as 'vi-admin' too? Can you show us the output of running it through check_by_ssh as well from the CLI?

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Wed Jan 04, 2017 6:18 am
by jyoti22
Please find the below output
*************************************
[[email protected] ~]$ /usr/local/nagios/libexec/check_by_ssh -E –t 30 1 -l vi-admin -H xx.xx.xx.xx -C "~/box293_check_vmware.pl --server xx.xx.xx.xx --check vCenter_Name_Version"


OK: VMware vCenter Server 5.5.0 build-3252642

Can you come online on webex and check this for me

Regards,
Beena

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Wed Jan 04, 2017 6:56 am
by jyoti22
I have downloaded the newer version of box_293 version. 2016-10-02.

I will configure this and let you know

Thanks

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Wed Jan 04, 2017 10:41 am
by rkennedy
Sounds good - let us know if you have any further questions.

Re: box_293, Plugin unable to retrieve datastores informatio

Posted: Thu Jan 05, 2017 7:04 am
by jyoti22
yes this worked, :)

please close this ticket