Skip to content

Commit

Permalink
enh(plugin): add Centreon header for Meraki api calls (#5207)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepassio authored and sfarouq-ext committed Oct 3, 2024
1 parent ced3ab6 commit c94d46c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ sub build_options_for_httplib {
$self->{option_results}->{port} = $self->{port};
$self->{option_results}->{proto} = $self->{proto};
$self->{http}->add_header(key => 'X-Cisco-Meraki-API-Key', value => $self->{api_token});
$self->{http}->add_header(key => 'User-Agent', value => 'CentreonPlugin/1.0 Centreon');
}

sub settings {
Expand Down

0 comments on commit c94d46c

Please sign in to comment.