diff --git a/centreon-plugins/centreon/common/redfish/restapi/mode/hardware.pm b/centreon-plugins/centreon/common/redfish/restapi/mode/hardware.pm index da5c6c5d8..b2937c46a 100644 --- a/centreon-plugins/centreon/common/redfish/restapi/mode/hardware.pm +++ b/centreon-plugins/centreon/common/redfish/restapi/mode/hardware.pm @@ -37,15 +37,15 @@ sub set_system { ['ok', 'OK'], ['warning', 'WARNING'], ['critical', 'CRITICAL'], - ['n/a', 'OK'], + ['n/a', 'OK'] ], state => [ # can be: absent, deferring, disabled, enabled, # inTest, quiesced, standbyOffline, standbySpare # starting, unavailableOffline, updating ['updating', 'WARNING'], - ['.*', 'OK'], - ], + ['.*', 'OK'] + ] }; $self->{components_exec_load} = 0; @@ -84,7 +84,7 @@ sub get_devices { $self->get_chassis() if (!defined($self->{chassis})); foreach my $chassis (@{$self->{chassis}}) { $chassis->{Devices} = []; - my $result = $self->{custom}->request_api(url_path => $chassis->{'@odata.id'} . 'Devices'); + my $result = $self->{custom}->request_api(url_path => $chassis->{'@odata.id'} . 'Devices/'); foreach (@{$result->{Members}}) { my $device_detailed = $self->{custom}->request_api(url_path => $_->{'@odata.id'}); push @{$chassis->{Devices}}, $device_detailed;