diff --git a/centreon-plugins/cloud/azure/storage/acr/mode/storageused.pm b/centreon-plugins/cloud/azure/storage/acr/mode/storageusage.pm similarity index 87% rename from centreon-plugins/cloud/azure/storage/acr/mode/storageused.pm rename to centreon-plugins/cloud/azure/storage/acr/mode/storageusage.pm index e9ca74acf..9c46a733a 100644 --- a/centreon-plugins/cloud/azure/storage/acr/mode/storageused.pm +++ b/centreon-plugins/cloud/azure/storage/acr/mode/storageusage.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::azure::storage::acr::mode::storageused; +package cloud::azure::storage::acr::mode::storageusage; use base qw(cloud::azure::custom::mode); @@ -30,9 +30,9 @@ sub get_metrics_mapping { my $metrics_mapping = { 'storageused' => { - 'output' => 'Storage Used', - 'label' => 'storageused', - 'nlabel' => 'storage.used', + 'output' => 'Storage used', + 'label' => 'storage-used', + 'nlabel' => 'azure.containerregistry.storage.used.bytes', 'unit' => 'B', 'min' => '0', 'max' => '' @@ -106,15 +106,15 @@ Example: Using resource name : -perl centreon_plugins.pl --plugin=cloud::azure::storage::acr::plugin --mode=storageused --custommode=api +perl centreon_plugins.pl --plugin=cloud::azure::storage::acr::plugin --mode=storage-usage --custommode=api --resource= --resource-group= --aggregation='average' ---warning-storageused='450000000000' --warning-storageused='470000000000' +--warning-storage-used='450000000000' --warning-storage-used='470000000000' Using resource id : -perl centreon_plugins.pl --plugin=cloud::azure::storage::acr::plugin --mode=storageused --custommode=api +perl centreon_plugins.pl --plugin=cloud::azure::storage::acr::plugin --mode=storage-usage --custommode=api --resource='/subscriptions//resourceGroups//providers/microsoft..containerregistry/registries/' ---aggregation='average' --warning-storageused='450000000000' --warning-storageused='470000000000' +--aggregation='average' --warning-storage-used='450000000000' --warning-storage-used='470000000000' Default aggregation: 'average'. @@ -128,15 +128,13 @@ Set resource name or id (Required). Set resource group (Required if resource's name is used). -=item B<--warning-*> +=item B<--warning-storage-used> -Warning threshold where '*' can be: -'storageused'. +Warning threshold. -=item B<--critical-*> +=item B<--critical-storage-used> -Critical threshold where '*' can be: -'storageused'. +Critical threshold. =back diff --git a/centreon-plugins/cloud/azure/storage/acr/plugin.pm b/centreon-plugins/cloud/azure/storage/acr/plugin.pm index 6776cd4a5..a1287fc46 100644 --- a/centreon-plugins/cloud/azure/storage/acr/plugin.pm +++ b/centreon-plugins/cloud/azure/storage/acr/plugin.pm @@ -31,7 +31,7 @@ sub new { $self->{version} = '0.1'; $self->{modes} = { - 'storageused' => 'cloud::azure::storage::acr::mode::storageused' + 'storage-usage' => 'cloud::azure::storage::acr::mode::storageusage' }; $self->{custom_modes}->{azcli} = 'cloud::azure::custom::azcli';