remove health check for some azure plugin
This commit is contained in:
parent
eae0581db1
commit
851f23018c
|
@ -1,78 +0,0 @@
|
|||
#
|
||||
# Copyright 2019 Centreon (http://www.centreon.com/)
|
||||
#
|
||||
# Centreon is a full-fledged industry-strength solution that meets
|
||||
# the needs in IT infrastructure and application monitoring for
|
||||
# service performance.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
package cloud::azure::database::sqlserver::mode::health;
|
||||
|
||||
use base qw(cloud::azure::management::monitor::mode::health);
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub check_options {
|
||||
my ($self, %options) = @_;
|
||||
$self->SUPER::check_options(%options);
|
||||
|
||||
$self->{namespace} = 'Microsoft.Sql';
|
||||
$self->{type} = 'servers';
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
||||
=head1 MODE
|
||||
|
||||
Check SQL Server health status.
|
||||
|
||||
(Usefull to determine host status)
|
||||
|
||||
=over 8
|
||||
|
||||
=item B<--resource>
|
||||
|
||||
Set resource name or id (Required).
|
||||
|
||||
=item B<--resource-group>
|
||||
|
||||
Set resource group (Required if resource's name is used).
|
||||
|
||||
=item B<--warning-status>
|
||||
|
||||
Set warning threshold for status (Default: '').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--critical-status>
|
||||
|
||||
Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--unknown-status>
|
||||
|
||||
Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--ok-status>
|
||||
|
||||
Set ok threshold for status (Default: '%{status} =~ /^Available$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
|
@ -32,7 +32,6 @@ sub new {
|
|||
$self->{version} = '0.1';
|
||||
%{ $self->{modes} } = (
|
||||
'discovery' => 'cloud::azure::database::sqlserver::mode::discovery',
|
||||
'health' => 'cloud::azure::database::sqlserver::mode::health',
|
||||
'list-servers' => 'cloud::azure::database::sqlserver::mode::listservers',
|
||||
'server-status' => 'cloud::azure::database::sqlserver::mode::serverstatus',
|
||||
);
|
||||
|
|
|
@ -1,78 +0,0 @@
|
|||
#
|
||||
# Copyright 2019 Centreon (http://www.centreon.com/)
|
||||
#
|
||||
# Centreon is a full-fledged industry-strength solution that meets
|
||||
# the needs in IT infrastructure and application monitoring for
|
||||
# service performance.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
package cloud::azure::management::recovery::mode::health;
|
||||
|
||||
use base qw(cloud::azure::management::monitor::mode::health);
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub check_options {
|
||||
my ($self, %options) = @_;
|
||||
$self->SUPER::check_options(%options);
|
||||
|
||||
$self->{namespace} = 'Microsoft.RecoveryServices';
|
||||
$self->{type} = 'vaults';
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
||||
=head1 MODE
|
||||
|
||||
Check Recovery Service Vault health status.
|
||||
|
||||
(Usefull to determine host status)
|
||||
|
||||
=over 8
|
||||
|
||||
=item B<--resource>
|
||||
|
||||
Set resource name or id (Required).
|
||||
|
||||
=item B<--resource-group>
|
||||
|
||||
Set resource group (Required if resource's name is used).
|
||||
|
||||
=item B<--warning-status>
|
||||
|
||||
Set warning threshold for status (Default: '').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--critical-status>
|
||||
|
||||
Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--unknown-status>
|
||||
|
||||
Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--ok-status>
|
||||
|
||||
Set ok threshold for status (Default: '%{status} =~ /^Available$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
|
@ -34,7 +34,6 @@ sub new {
|
|||
'backup-items-status' => 'cloud::azure::management::recovery::mode::backupitemsstatus',
|
||||
'backup-jobs-status' => 'cloud::azure::management::recovery::mode::backupjobsstatus',
|
||||
'discovery' => 'cloud::azure::management::recovery::mode::discovery',
|
||||
'health' => 'cloud::azure::management::recovery::mode::health',
|
||||
'list-backup-jobs' => 'cloud::azure::management::recovery::mode::listbackupjobs',
|
||||
'list-vaults' => 'cloud::azure::management::recovery::mode::listvaults',
|
||||
);
|
||||
|
|
|
@ -1,78 +0,0 @@
|
|||
#
|
||||
# Copyright 2019 Centreon (http://www.centreon.com/)
|
||||
#
|
||||
# Centreon is a full-fledged industry-strength solution that meets
|
||||
# the needs in IT infrastructure and application monitoring for
|
||||
# service performance.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
package cloud::azure::network::networkinterface::mode::health;
|
||||
|
||||
use base qw(cloud::azure::management::monitor::mode::health);
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub check_options {
|
||||
my ($self, %options) = @_;
|
||||
$self->SUPER::check_options(%options);
|
||||
|
||||
$self->{namespace} = 'Microsoft.Network';
|
||||
$self->{type} = 'networkInterfaces';
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
||||
=head1 MODE
|
||||
|
||||
Check Network Interface health status.
|
||||
|
||||
(Usefull to determine host status)
|
||||
|
||||
=over 8
|
||||
|
||||
=item B<--resource>
|
||||
|
||||
Set resource name or id (Required).
|
||||
|
||||
=item B<--resource-group>
|
||||
|
||||
Set resource group (Required if resource's name is used).
|
||||
|
||||
=item B<--warning-status>
|
||||
|
||||
Set warning threshold for status (Default: '').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--critical-status>
|
||||
|
||||
Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--unknown-status>
|
||||
|
||||
Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--ok-status>
|
||||
|
||||
Set ok threshold for status (Default: '%{status} =~ /^Available$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
|
@ -32,7 +32,6 @@ sub new {
|
|||
$self->{version} = '0.1';
|
||||
%{ $self->{modes} } = (
|
||||
'discovery' => 'cloud::azure::network::networkinterface::mode::discovery',
|
||||
'health' => 'cloud::azure::network::networkinterface::mode::health',
|
||||
'list-resources' => 'cloud::azure::network::networkinterface::mode::listresources',
|
||||
'traffic' => 'cloud::azure::network::networkinterface::mode::traffic',
|
||||
);
|
||||
|
|
|
@ -1,78 +0,0 @@
|
|||
#
|
||||
# Copyright 2019 Centreon (http://www.centreon.com/)
|
||||
#
|
||||
# Centreon is a full-fledged industry-strength solution that meets
|
||||
# the needs in IT infrastructure and application monitoring for
|
||||
# service performance.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
package cloud::azure::network::virtualnetwork::mode::health;
|
||||
|
||||
use base qw(cloud::azure::management::monitor::mode::health);
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub check_options {
|
||||
my ($self, %options) = @_;
|
||||
$self->SUPER::check_options(%options);
|
||||
|
||||
$self->{namespace} = 'Microsoft.Network';
|
||||
$self->{type} = 'virtualNetworks';
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
||||
=head1 MODE
|
||||
|
||||
Check Virtual Network health status.
|
||||
|
||||
(Usefull to determine host status)
|
||||
|
||||
=over 8
|
||||
|
||||
=item B<--resource>
|
||||
|
||||
Set resource name or id (Required).
|
||||
|
||||
=item B<--resource-group>
|
||||
|
||||
Set resource group (Required if resource's name is used).
|
||||
|
||||
=item B<--warning-status>
|
||||
|
||||
Set warning threshold for status (Default: '').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--critical-status>
|
||||
|
||||
Set critical threshold for status (Default: '%{status} =~ /^Unavailable$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--unknown-status>
|
||||
|
||||
Set unknown threshold for status (Default: '%{status} =~ /^Unknown$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=item B<--ok-status>
|
||||
|
||||
Set ok threshold for status (Default: '%{status} =~ /^Available$/').
|
||||
Can used special variables like: %{status}, %{summary}
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
|
@ -32,7 +32,6 @@ sub new {
|
|||
$self->{version} = '0.1';
|
||||
%{ $self->{modes} } = (
|
||||
'discovery' => 'cloud::azure::network::virtualnetwork::mode::discovery',
|
||||
'health' => 'cloud::azure::network::virtualnetwork::mode::health',
|
||||
'list-virtual-networks' => 'cloud::azure::network::virtualnetwork::mode::listvirtualnetworks',
|
||||
'peerings-status' => 'cloud::azure::network::virtualnetwork::mode::peeringsstatus',
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue