Page 1 of 2
No Datastore Found - VMware Virtualization Wizard
Posted: Wed Sep 11, 2019 11:45 am
by bsanjay
Hi Team,
We are trying to monitor VCenter using VMWare virtualization wizard. We have VMA in place and validate VMA and VCenter connectivity from VMware vMA Settings Manager is succesfull. Please find the attached screenshot for your reference.
Note - No datastore found, No hosts Found, No Guest Found
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Wed Sep 11, 2019 4:18 pm
by Box293
Is it just the datastores not working? Does other functionality work?
Edit:
Sorry I just re-read your post and it seems to be everything.
Please email
[email protected] and I'll send you a beta version of the plugin to try.
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Mon Sep 16, 2019 12:23 pm
by bsanjay
Hi Box293,
We are able to get the list of datastores now. Now, while configuring this datastores for monitoring, we want it to be monitored based on percentage instead of bytes. Please find below the check commands we already tried to achieve this monitoring based on percentage,
Default Check Command in GB:
/usr/local/nagios/libexec/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.20.45.16 -C "~/box293_check_vmware.pl --timeout 90 --server 10.20.44.176 --check Datastore_Usage --name \"BRNFS1\" --reporting_si \"Disk_Size:GB\" \"--warning\" \"datastore_used:3897\" \"--critical\" \"datastore_used:4384\""
WARNING: Datastore 'BRNFS1' {Free Space: 516.6 GB} {Used Space: 4,355.4 GB (WARNING >= 3,897)} {Capacity: 4,872 GB}|'Free Space'=516.6GB 'Used Space'=4355.4GB;3897;4384 'Capacity'=4872GB [Datastore_Usage]
Trying to monitor based on percentage used but getting incorrect output "OK" instead of "WARNING":
/usr/local/nagios/libexec/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.20.45.16 -C "~/box293_check_vmware.pl --timeout 90 --server 10.20.44.176 --check Datastore_Usage --name BRNFS1 --reporting_si Disk_Size:GB --warning datastore_used%:80 --critical datastore_used%:90"
OK: Datastore 'BRNFS1' {Free Space: 516.6 GB} {Used Space: 4,355.4 GB} {Capacity: 4,872 GB}|'Free Space'=516.6GB 'Used Space'=4355.4GB 'Capacity'=4872GB [Datastore_Usage]
Please suggest how to acheive this monitoring based on percentage instead of Bytes.
Best Regards,
BSanjay
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Mon Sep 16, 2019 1:38 pm
by scottwilkerson
I'm not an expert in this like
@Box293 but can you try adding the escaped quotes around the parameters like you have it in the first command?
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.20.45.16 -C "~/box293_check_vmware.pl --timeout 90 --server 10.20.44.176 --check Datastore_Usage --name \"BRNFS1\" --reporting_si \"Disk_Size:GB\" \"--warning\" \"datastore_used%:80\" \"--critical\" \"datastore_used%:90\""
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Mon Sep 16, 2019 1:53 pm
by bsanjay
Hi Scott,
I did tried with this command also, but the problem is this gives incorrect output. Because the datastore usage is above 80 % and it should give output as WARNING but it's showing as OK.
Please find attached the screenshot for your reference,
Best Regards,
BSanjay
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Mon Sep 16, 2019 2:15 pm
by scottwilkerson
I'm going to reach out to Box293 and have him follow up, I think it has to do with the --reporting_si flag, but I'm not sure what to set.
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Mon Sep 16, 2019 4:57 pm
by Box293
The --perfdata_option is what is required in addition to your existing arguments.
Code: Select all
--perfdata_option Datastore_Used%:1
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Mon Sep 16, 2019 5:27 pm
by Box293
Actually I think this is a bug that I've fixed in a beta version of the pluging. Can you please email
[email protected] and I'll send you the beta version of the plugin.
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Tue Sep 17, 2019 7:31 am
by bsanjay
Box293 wrote:The --perfdata_option is what is required in addition to your existing arguments.
Code: Select all
--perfdata_option Datastore_Used%:1
Yes, we did already tried with this option also but we are getting getting incorrect value in output.
Re: No Datastore Found - VMware Virtualization Wizard
Posted: Tue Sep 17, 2019 7:55 am
by scottwilkerson
Box293 wrote:Actually I think this is a bug that I've fixed in a beta version of the pluging. Can you please email
[email protected] and I'll send you the beta version of the plugin.
Email
@Box293 at
[email protected] and he'll send you the beta version of the plugin