No Datastore Found - VMware Virtualization Wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

No Datastore Found - VMware Virtualization Wizard

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: No Datastore Found - VMware Virtualization Wizard

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: No Datastore Found - VMware Virtualization Wizard

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Datastore Found - VMware Virtualization Wizard

Post 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\""
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: No Datastore Found - VMware Virtualization Wizard

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Datastore Found - VMware Virtualization Wizard

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: No Datastore Found - VMware Virtualization Wizard

Post by Box293 »

The --perfdata_option is what is required in addition to your existing arguments.

Code: Select all

--perfdata_option Datastore_Used%:1
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: No Datastore Found - VMware Virtualization Wizard

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: No Datastore Found - VMware Virtualization Wizard

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Datastore Found - VMware Virtualization Wizard

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked