From 095a34431a66333430c9cfe3c612b0deac8e1088 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 16 Dec 2021 14:06:48 +0100 Subject: [PATCH] wip --- connectors/vmware/changelog | 7 +++++++ .../vmware/src/centreon/vmware/cmdhealthhost.pm | 11 +++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/connectors/vmware/changelog b/connectors/vmware/changelog index 5b6843718..dd350aa84 100644 --- a/connectors/vmware/changelog +++ b/connectors/vmware/changelog @@ -1,3 +1,10 @@ +2021-12-XX Quentin Garnier - 3.2.2 + * Enhancement: add 'storage-host' + * Enhancement: add 'cpu-cluster' (issue #90) + * Enhancement: add refresh capability for datastore-usage (issue #96) + * Enhancement: container label in configuration is case-insensitive (issue #83) + * Enhancement: add capability to use empty-continue option (issue #77) + 2020-11-03 Quentin Garnier - 3.2.1 * Fix: daemon cannot start (issue #92) diff --git a/connectors/vmware/src/centreon/vmware/cmdhealthhost.pm b/connectors/vmware/src/centreon/vmware/cmdhealthhost.pm index b47868de1..3b0771232 100644 --- a/connectors/vmware/src/centreon/vmware/cmdhealthhost.pm +++ b/connectors/vmware/src/centreon/vmware/cmdhealthhost.pm @@ -49,8 +49,10 @@ sub run { my $self = shift; my $filters = $self->build_filter(label => 'name', search_option => 'esx_hostname', is_regexp => 'filter'); - my @properties = ('name', 'runtime.healthSystemRuntime.hardwareStatusInfo', 'runtime.healthSystemRuntime.systemHealthInfo.numericSensorInfo', - 'runtime.connectionState'); + my @properties = ( + 'name', 'runtime.healthSystemRuntime.hardwareStatusInfo', 'runtime.healthSystemRuntime.systemHealthInfo.numericSensorInfo', + 'runtime.connectionState' + ); my $result = centreon::vmware::common::search_entities(command => $self, view_type => 'HostSystem', properties => \@properties, filter => $filters); return if (!defined($result)); @@ -95,7 +97,8 @@ sub run { foreach (@$numericSensorInfo) { push @{$data->{$entity_value}->{sensor_info}}, { status => $_->healthState->key, - type => $_->sensorType, name => $_->name, summary => $_->healthState->summary, + type => $_->sensorType, name => $_->name, + summary => $_->healthState->summary, current_reading => $_->currentReading, power10 => $_->unitModifier, unit => $_->baseUnits @@ -103,7 +106,7 @@ sub run { } } } - + centreon::vmware::common::set_response(data => $data); }