diff --git a/centreon-plugins/cloud/azure/management/costs/mode/budgets.pm b/centreon-plugins/cloud/azure/management/costs/mode/budgets.pm index 0ffc6833a..21a60203e 100644 --- a/centreon-plugins/cloud/azure/management/costs/mode/budgets.pm +++ b/centreon-plugins/cloud/azure/management/costs/mode/budgets.pm @@ -157,7 +157,7 @@ sub manage_selection { } if (!$costs || $cost < 0.01) { - $self->{output}->add_option_msg(short_msg => "Null or < 0.01 " . $budget->{properties}->{currentSpend}->{unit} . "cost found on the specified scope."); + $self->{output}->add_option_msg(short_msg => "Null or < 0.01 " . $budget->{properties}->{currentSpend}->{unit} . " cost found on the specified scope."); $self->{output}->option_exit(); } diff --git a/centreon-plugins/cloud/azure/management/costs/plugin.pm b/centreon-plugins/cloud/azure/management/costs/plugin.pm index 7053cd336..134690fd1 100644 --- a/centreon-plugins/cloud/azure/management/costs/plugin.pm +++ b/centreon-plugins/cloud/azure/management/costs/plugin.pm @@ -31,7 +31,7 @@ sub new { $self->{version} = '0.1'; %{ $self->{modes} } = ( - 'costs' => 'cloud::azure::management::costs::mode::budgets' + 'budgets' => 'cloud::azure::management::costs::mode::budgets' ); $self->{custom_modes}{api} = 'cloud::azure::custom::api'; diff --git a/centreon-plugins/cloud/azure/network/expressroute/mode/circuitstatus.pm b/centreon-plugins/cloud/azure/network/expressroute/mode/circuitstatus.pm index 6cc87ca07..080a0e9fe 100644 --- a/centreon-plugins/cloud/azure/network/expressroute/mode/circuitstatus.pm +++ b/centreon-plugins/cloud/azure/network/expressroute/mode/circuitstatus.pm @@ -40,7 +40,7 @@ sub custom_status_output { sub prefix_circuit_output { my ($self, %options) = @_; - return "Circuit '" . $options{instance_value}->{display} . "' "; + return "Circuit '" . $options{instance_value}->{name} . "' "; } sub set_counters { @@ -54,7 +54,7 @@ sub set_counters { { label => 'status', type => 2, - critical_default => '%{circuit_status} ne "Enabled" || %{provider_status} ne "Provisioned"' + critical_default => '%{circuit_status} ne "Enabled" || %{provider_status} ne "Provisioned"', set => { key_values => [ { name => 'circuit_status' }, { name => 'provider_status' }, { name => 'provider_name' }, { name => 'provider_location' }, { name => 'name' } ],