From cb314fbc88f34871fca939c8ae6d0b92b9abf847 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 29 Mar 2023 11:44:25 +0200 Subject: [PATCH] (plugin) hardware::server::hp::ilo::restapi - mode hardware uninitialized value storage component (#4297) --- .../common/redfish/restapi/mode/components/storage.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/centreon/common/redfish/restapi/mode/components/storage.pm b/src/centreon/common/redfish/restapi/mode/components/storage.pm index f27bb50fe..33de68695 100644 --- a/src/centreon/common/redfish/restapi/mode/components/storage.pm +++ b/src/centreon/common/redfish/restapi/mode/components/storage.pm @@ -48,7 +48,7 @@ sub check { $self->{output}->output_add( long_msg => sprintf( "storage '%s/%s' status is '%s' [instance: %s, state: %s]", - $system_name, $storage_name, $storage->{Status}->{HealthRollup}, $instance, $storage->{Status}->{State} + $system_name, $storage_name, $storage->{Status}->{Health}, $instance, $storage->{Status}->{State} ) ); @@ -60,11 +60,11 @@ sub check { ); } - $exit = $self->get_severity(label => 'status', section => 'storage.status', value => $storage->{Status}->{HealthRollup}); + $exit = $self->get_severity(label => 'status', section => 'storage.status', value => $storage->{Status}->{Health}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add( severity => $exit, - short_msg => sprintf("Storage '%s/%s' status is '%s'", $system_name, $storage_name, $storage->{Status}->{HealthRollup}) + short_msg => sprintf("Storage '%s/%s' status is '%s'", $system_name, $storage_name, $storage->{Status}->{Health}) ); } }