box_293, Plugin unable to retrieve datastores information

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post by jyoti22 »

Please could you give me the command to check the datastores from VMA
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post by jyoti22 »

Hi, we get the data for datastore with this command on vi-admin
PFA. But not on webconsole
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post 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?
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post 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
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post by jyoti22 »

I have downloaded the newer version of box_293 version. 2016-10-02.

I will configure this and let you know

Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post by rkennedy »

Sounds good - let us know if you have any further questions.
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: box_293, Plugin unable to retrieve datastores informatio

Post by jyoti22 »

yes this worked, :)

please close this ticket
Locked