From 7d8a6c789fd290eccaad969fa4edf15763422e8b Mon Sep 17 00:00:00 2001 From: itoussies <65223458+itoussies@users.noreply.github.com> Date: Mon, 21 Jun 2021 09:45:58 +0200 Subject: [PATCH] fix(plugin): Azure CDN (#2898) --- cloud/azure/network/cdn/mode/requests.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/azure/network/cdn/mode/requests.pm b/cloud/azure/network/cdn/mode/requests.pm index d6439b602..ee98d6c30 100644 --- a/cloud/azure/network/cdn/mode/requests.pm +++ b/cloud/azure/network/cdn/mode/requests.pm @@ -93,7 +93,7 @@ sub check_options { $self->{az_resource_namespace} = 'Microsoft.Cdn'; $self->{az_timeframe} = defined($self->{option_results}->{timeframe}) ? $self->{option_results}->{timeframe} : 900; $self->{az_interval} = defined($self->{option_results}->{interval}) ? $self->{option_results}->{interval} : 'PT5M'; - $self->{az_aggregations} = ['Count']; + $self->{az_aggregations} = ['Total']; if (defined($self->{option_results}->{aggregation})) { $self->{az_aggregations} = []; foreach my $stat (@{$self->{option_results}->{aggregation}}) { @@ -132,7 +132,7 @@ perl centreon_plugins.pl --plugin=cloud::azure::network::cdn::plugin --mode=requ --resource='/subscriptions//resourceGroups//providers/Microsoft.Cdn/profiles/' --aggregation='count' --warning-requests-count='800' --critical-requests-count='900' -Default aggregation: 'count' / 'minimum', 'maximum' and 'total' are valid. +Default aggregation: 'total' / 'minimum', 'maximum', 'count' and 'average' are valid. =over 8