diff --git a/ZenPacks/community/VMwareESXiMonitor/libexec/esxi_monitor.pl b/ZenPacks/community/VMwareESXiMonitor/libexec/esxi_monitor.pl index e09702c..54989a2 100644 --- a/ZenPacks/community/VMwareESXiMonitor/libexec/esxi_monitor.pl +++ b/ZenPacks/community/VMwareESXiMonitor/libexec/esxi_monitor.pl @@ -183,7 +183,7 @@ sub get_info { my $values; $values = get_performance_values($views, $perfmgr_view, $group_type, ($counter.".".$rollup_type)); - if (defined($values) && scalar @$values) { + if (defined($values) && exists $$values[0][0]->{value}) { my ( $t ) = split(/,/, $$values[0][0]->value); return $t; } diff --git a/setup.py b/setup.py index fa0552a..34c6d28 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ # or saved. Do not modify them directly here. # NB: PACKAGES is deprecated NAME = "ZenPacks.community.VMwareESXiMonitor" -VERSION = "2.0.2" +VERSION = "2.0.3" AUTHOR = "Eric Enns, Matthias Kittl" LICENSE = "" NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.community']