mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
enh(plugin): add Centreon header for Meraki api calls (#5207)
This commit is contained in:
parent
a47a440870
commit
e0033d0172
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user