Error Undefined Subroutine in box293_check_vmware.pl
Posted: Tue Mar 01, 2016 10:46 am
Hello, all. Box293, thank you for a wonderful plugin!
I believe I've found an error that I'd like to call to your attention.
I have two datastores in a very small vcenter setup with three physical hosts. Here's the version of box293_check_vmware.pl that I have:
Here's both datastores that report correctly with the Datastore_Usage check:
However when I try to check Datastore_Performance_Overall, the tests go sideways:
Google literally had 0 hits for that error, which I found surprising as the plugin seems well used, so I guess either I have some odd corner case or some misconfiguration on my part. If any additional info is needed for troubleshooting, I'm glad to provide it.
Thanks!
I believe I've found an error that I'd like to call to your attention.
I have two datastores in a very small vcenter setup with three physical hosts. Here's the version of box293_check_vmware.pl that I have:
Code: Select all
vi-admin@vma:~> ./box293_check_vmware.pl --version
box293_check_vmware Version: 2015-08-03
Code: Select all
vi-admin@vma:~> ./box293_check_vmware.pl --check Datastore_Usage --server vcenter.my.hidden.tld --name vm-nfs-win
OK: Datastore 'vm-nfs-win' {Free Space: 29,146.9 GB} {Used Space: 507.1 GB} {Capacity: 29,654 GB}|'Free Space'=29146.9GB 'Used Space'=507.1GB 'Capacity'=29654GB [Datastore_Usage]
vi-admin@vma:~> ./box293_check_vmware.pl --check Datastore_Usage --server vcenter.my.hidden.tld --name vm-nfs-lin
OK: Datastore 'vm-nfs-lin' {Free Space: 21,339.9 GB} {Used Space: 8,314.1 GB} {Capacity: 29,654 GB}|'Free Space'=21339.9GB 'Used Space'=8314.1GB 'Capacity'=29654GB [Datastore_Usage]
Code: Select all
vi-admin@vma:~> ./box293_check_vmware.pl --check Datastore_Performance_Overall --server vcenter.my.hidden.tld --name vm-nfs-win
Undefined subroutine &HostNasVolume::extent called at ./box293_check_vmware.pl line 2666
vi-admin@vma:~> ./box293_check_vmware.pl --check Datastore_Performance_Overall --server vcenter.my.hidden.tld --name vm-nfs-lin
Undefined subroutine &HostNasVolume::extent called at ./box293_check_vmware.pl line 2666
Thanks!