diff --git a/connectors/vmware/src/centreon/vmware/cmddevicevm.pm b/connectors/vmware/src/centreon/vmware/cmddevicevm.pm index 470e382c4..5da39a60b 100644 --- a/connectors/vmware/src/centreon/vmware/cmddevicevm.pm +++ b/connectors/vmware/src/centreon/vmware/cmddevicevm.pm @@ -83,7 +83,7 @@ sub run { foreach my $dev (@{$entity_view->{'config.hardware.device'}}) { if (ref($dev) =~ /$self->{device}/) { - if ($dev->connectable->connected == 1) { + if (defined($dev->connectable) && $dev->connectable->connected == 1) { $data->{$entity_value}->{total_device_connected}++; } } diff --git a/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm b/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm index ab6eeeaa3..6904bdb3d 100644 --- a/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm +++ b/connectors/vmware/src/centreon/vmware/cmdlimitvm.pm @@ -92,8 +92,6 @@ sub run { # Disk if (defined($self->{check_disk_limit})) { - use Data::Dumper; - print Data::Dumper::Dumper($entity_view->{'config.hardware.device'}); foreach my $device (@{$entity_view->{'config.hardware.device'}}) { if ($device->isa('VirtualDisk')) { if (defined($device->storageIOAllocation->limit) && $device->storageIOAllocation->limit != -1) {