mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
add azure health mode in monitor plugin
This commit is contained in:
parent
7285405476
commit
5eb1fbe9c4
@ -33,6 +33,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'discovery' => 'cloud::azure::management::monitor::mode::discovery',
|
'discovery' => 'cloud::azure::management::monitor::mode::discovery',
|
||||||
'get-metrics' => 'cloud::azure::management::monitor::mode::getmetrics',
|
'get-metrics' => 'cloud::azure::management::monitor::mode::getmetrics',
|
||||||
|
'health' => 'cloud::azure::management::monitor::mode::health',
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->{custom_modes}{azcli} = 'cloud::azure::custom::azcli';
|
$self->{custom_modes}{azcli} = 'cloud::azure::custom::azcli';
|
||||||
@ -43,8 +44,7 @@ sub new {
|
|||||||
sub init {
|
sub init {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{options}->add_options(arguments =>
|
$self->{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
'api-version:s' => { name => 'api_version', default => '2018-01-01' },
|
'api-version:s' => { name => 'api_version', default => '2018-01-01' },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user