From 8e7a59d5ecf68bc905d3b57848fdef9cdeeb0c65 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 24 Nov 2020 10:05:55 +0100 Subject: [PATCH] fix cisco fmc (#2371) --- .../network/cisco/firepower/fmc/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/network/cisco/firepower/fmc/restapi/custom/api.pm b/centreon-plugins/network/cisco/firepower/fmc/restapi/custom/api.pm index 0539a6fb6..c08298307 100644 --- a/centreon-plugins/network/cisco/firepower/fmc/restapi/custom/api.pm +++ b/centreon-plugins/network/cisco/firepower/fmc/restapi/custom/api.pm @@ -213,7 +213,7 @@ sub request_api { $self->clean_session_token(statefile => $self->{cache}); $self->authenticate(statefile => $self->{cache}); ($content) = $self->{http}->request( - url_path => '/api/fmc_platform/v1' . $options{endpoint}, + url_path => '/api/' . $options{endpoint_domain} . '/v1' . $options{endpoint}, get_param => $options{get_param}, unknown_status => $self->{unknown_http_status}, warning_status => $self->{warning_http_status},