From 851f23018cbf89227ba664bfb43917ff8750df91 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Tue, 15 Oct 2019 17:08:10 +0200 Subject: [PATCH] remove health check for some azure plugin --- cloud/azure/database/sqlserver/mode/health.pm | 78 ------------------- cloud/azure/database/sqlserver/plugin.pm | 1 - .../azure/management/recovery/mode/health.pm | 78 ------------------- cloud/azure/management/recovery/plugin.pm | 1 - .../network/networkinterface/mode/health.pm | 78 ------------------- .../azure/network/networkinterface/plugin.pm | 1 - .../network/virtualnetwork/mode/health.pm | 78 ------------------- cloud/azure/network/virtualnetwork/plugin.pm | 1 - 8 files changed, 316 deletions(-) delete mode 100644 cloud/azure/database/sqlserver/mode/health.pm delete mode 100644 cloud/azure/management/recovery/mode/health.pm delete mode 100644 cloud/azure/network/networkinterface/mode/health.pm delete mode 100644 cloud/azure/network/virtualnetwork/mode/health.pm diff --git a/cloud/azure/database/sqlserver/mode/health.pm b/cloud/azure/database/sqlserver/mode/health.pm deleted file mode 100644 index 6d6f31e64..000000000 --- a/cloud/azure/database/sqlserver/mode/health.pm +++ /dev/null @@ -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 diff --git a/cloud/azure/database/sqlserver/plugin.pm b/cloud/azure/database/sqlserver/plugin.pm index f341c07ce..ac92c57de 100644 --- a/cloud/azure/database/sqlserver/plugin.pm +++ b/cloud/azure/database/sqlserver/plugin.pm @@ -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', ); diff --git a/cloud/azure/management/recovery/mode/health.pm b/cloud/azure/management/recovery/mode/health.pm deleted file mode 100644 index 6aab01caf..000000000 --- a/cloud/azure/management/recovery/mode/health.pm +++ /dev/null @@ -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 diff --git a/cloud/azure/management/recovery/plugin.pm b/cloud/azure/management/recovery/plugin.pm index a09f6cbc9..d29c208b3 100644 --- a/cloud/azure/management/recovery/plugin.pm +++ b/cloud/azure/management/recovery/plugin.pm @@ -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', ); diff --git a/cloud/azure/network/networkinterface/mode/health.pm b/cloud/azure/network/networkinterface/mode/health.pm deleted file mode 100644 index d03c3374f..000000000 --- a/cloud/azure/network/networkinterface/mode/health.pm +++ /dev/null @@ -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 diff --git a/cloud/azure/network/networkinterface/plugin.pm b/cloud/azure/network/networkinterface/plugin.pm index 1251eb961..9fe312373 100644 --- a/cloud/azure/network/networkinterface/plugin.pm +++ b/cloud/azure/network/networkinterface/plugin.pm @@ -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', ); diff --git a/cloud/azure/network/virtualnetwork/mode/health.pm b/cloud/azure/network/virtualnetwork/mode/health.pm deleted file mode 100644 index 56467e3a9..000000000 --- a/cloud/azure/network/virtualnetwork/mode/health.pm +++ /dev/null @@ -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 diff --git a/cloud/azure/network/virtualnetwork/plugin.pm b/cloud/azure/network/virtualnetwork/plugin.pm index e128bb8a2..ebe87763b 100644 --- a/cloud/azure/network/virtualnetwork/plugin.pm +++ b/cloud/azure/network/virtualnetwork/plugin.pm @@ -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', );