enh(plugin): add Centreon header for Meraki api calls (#5207)

This commit is contained in:
sdepassio 2024-09-30 14:34:22 +02:00 committed by GitHub
parent a47a440870
commit e0033d0172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {