This commit is contained in:
garnier-quentin 2021-12-16 14:06:48 +01:00
parent b699e5e064
commit 095a34431a
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2021-12-XX Quentin Garnier <qgarnier@centreon.com> - 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 <qgarnier@centreon.com> - 3.2.1
* Fix: daemon cannot start (issue #92)

View File

@ -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);
}