diff --git a/centreon-plugins/apps/monitoring/quanta/restapi/plugin.pm b/centreon-plugins/apps/monitoring/quanta/restapi/plugin.pm index 552647b33..da393754b 100644 --- a/centreon-plugins/apps/monitoring/quanta/restapi/plugin.pm +++ b/centreon-plugins/apps/monitoring/quanta/restapi/plugin.pm @@ -38,12 +38,6 @@ sub new { return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/apps/openweathermap/restapi/plugin.pm b/centreon-plugins/apps/openweathermap/restapi/plugin.pm index ee325863f..16b5777cc 100644 --- a/centreon-plugins/apps/openweathermap/restapi/plugin.pm +++ b/centreon-plugins/apps/openweathermap/restapi/plugin.pm @@ -31,17 +31,11 @@ sub new { $self->{version} = '0.1'; %{$self->{modes}} = ( - 'city-weather' => 'apps::openweathermap::restapi::mode::cityweather', + 'city-weather' => 'apps::openweathermap::restapi::mode::cityweather', ); $self->{custom_modes}{api} = 'apps::openweathermap::restapi::custom::api'; - return $self; -} - -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); + return $self;² } 1; diff --git a/centreon-plugins/apps/proxmox/ve/restapi/plugin.pm b/centreon-plugins/apps/proxmox/ve/restapi/plugin.pm index 4f70c7202..75daac2e5 100644 --- a/centreon-plugins/apps/proxmox/ve/restapi/plugin.pm +++ b/centreon-plugins/apps/proxmox/ve/restapi/plugin.pm @@ -42,16 +42,9 @@ sub new { ); $self->{custom_modes}{api} = 'apps::proxmox::ve::restapi::custom::api'; - return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/apps/pvx/restapi/plugin.pm b/centreon-plugins/apps/pvx/restapi/plugin.pm index 9d15b9125..5dde4b243 100644 --- a/centreon-plugins/apps/pvx/restapi/plugin.pm +++ b/centreon-plugins/apps/pvx/restapi/plugin.pm @@ -41,13 +41,6 @@ sub new { return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - - 1; __END__ diff --git a/centreon-plugins/apps/redis/cli/plugin.pm b/centreon-plugins/apps/redis/cli/plugin.pm index b1b3c5324..1407e3af2 100644 --- a/centreon-plugins/apps/redis/cli/plugin.pm +++ b/centreon-plugins/apps/redis/cli/plugin.pm @@ -31,25 +31,19 @@ sub new { $self->{version} = '1.0'; %{$self->{modes}} = ( - 'clients' => 'apps::redis::cli::mode::clients', - 'commands' => 'apps::redis::cli::mode::commands', - 'connections' => 'apps::redis::cli::mode::connections', - 'cpu' => 'apps::redis::cli::mode::cpu', - 'memory' => 'apps::redis::cli::mode::memory', - 'persistence' => 'apps::redis::cli::mode::persistence', - 'replication' => 'apps::redis::cli::mode::replication', - ); + 'clients' => 'apps::redis::cli::mode::clients', + 'commands' => 'apps::redis::cli::mode::commands', + 'connections' => 'apps::redis::cli::mode::connections', + 'cpu' => 'apps::redis::cli::mode::cpu', + 'memory' => 'apps::redis::cli::mode::memory', + 'persistence' => 'apps::redis::cli::mode::persistence', + 'replication' => 'apps::redis::cli::mode::replication', + ); $self->{custom_modes}{rediscli} = 'apps::redis::cli::custom::rediscli'; return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/apps/rudder/restapi/plugin.pm b/centreon-plugins/apps/rudder/restapi/plugin.pm index 9f71e4508..bb951a01a 100644 --- a/centreon-plugins/apps/rudder/restapi/plugin.pm +++ b/centreon-plugins/apps/rudder/restapi/plugin.pm @@ -45,12 +45,6 @@ sub new { return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/apps/zoom/restapi/plugin.pm b/centreon-plugins/apps/zoom/restapi/plugin.pm index 0ff793adb..c1ff9c997 100644 --- a/centreon-plugins/apps/zoom/restapi/plugin.pm +++ b/centreon-plugins/apps/zoom/restapi/plugin.pm @@ -38,12 +38,6 @@ sub new { return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/cloud/cadvisor/restapi/plugin.pm b/centreon-plugins/cloud/cadvisor/restapi/plugin.pm index ef65a54d1..45f96e87b 100644 --- a/centreon-plugins/cloud/cadvisor/restapi/plugin.pm +++ b/centreon-plugins/cloud/cadvisor/restapi/plugin.pm @@ -31,23 +31,17 @@ sub new { $self->{version} = '0.3'; %{$self->{modes}} = ( - 'container-usage' => 'cloud::cadvisor::restapi::mode::containerusage', - 'disk-io' => 'cloud::cadvisor::restapi::mode::diskio', - 'traffic' => 'cloud::cadvisor::restapi::mode::traffic', - 'list-containers' => 'cloud::cadvisor::restapi::mode::listcontainers', - 'node-status' => 'cloud::cadvisor::restapi::mode::nodestatus', - ); + 'container-usage' => 'cloud::cadvisor::restapi::mode::containerusage', + 'disk-io' => 'cloud::cadvisor::restapi::mode::diskio', + 'traffic' => 'cloud::cadvisor::restapi::mode::traffic', + 'list-containers' => 'cloud::cadvisor::restapi::mode::listcontainers', + 'node-status' => 'cloud::cadvisor::restapi::mode::nodestatus', + ); $self->{custom_modes}{api} = 'cloud::cadvisor::restapi::custom::api'; return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/cloud/docker/restapi/plugin.pm b/centreon-plugins/cloud/docker/restapi/plugin.pm index d43f9b3cb..90eaaaf90 100644 --- a/centreon-plugins/cloud/docker/restapi/plugin.pm +++ b/centreon-plugins/cloud/docker/restapi/plugin.pm @@ -31,22 +31,15 @@ sub new { $self->{version} = '0.3'; %{$self->{modes}} = ( - 'container-usage' => 'cloud::docker::restapi::mode::containerusage', - 'list-containers' => 'cloud::docker::restapi::mode::listcontainers', - 'node-status' => 'cloud::docker::restapi::mode::nodestatus', - ); + 'container-usage' => 'cloud::docker::restapi::mode::containerusage', + 'list-containers' => 'cloud::docker::restapi::mode::listcontainers', + 'node-status' => 'cloud::docker::restapi::mode::nodestatus', + ); $self->{custom_modes}{api} = 'cloud::docker::restapi::custom::api'; return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - - 1; __END__ diff --git a/centreon-plugins/cloud/kubernetes/plugin.pm b/centreon-plugins/cloud/kubernetes/plugin.pm index f1d7afca0..a0ffdcf34 100644 --- a/centreon-plugins/cloud/kubernetes/plugin.pm +++ b/centreon-plugins/cloud/kubernetes/plugin.pm @@ -51,12 +51,6 @@ sub new { return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/cloud/prometheus/direct/kubernetes/plugin.pm b/centreon-plugins/cloud/prometheus/direct/kubernetes/plugin.pm index c694d562d..68c2b4c25 100644 --- a/centreon-plugins/cloud/prometheus/direct/kubernetes/plugin.pm +++ b/centreon-plugins/cloud/prometheus/direct/kubernetes/plugin.pm @@ -31,30 +31,23 @@ sub new { $self->{version} = '0.1'; %{$self->{modes}} = ( - 'container-status' => 'cloud::prometheus::direct::kubernetes::mode::containerstatus', - 'daemonset-status' => 'cloud::prometheus::direct::kubernetes::mode::daemonsetstatus', - 'deployment-status' => 'cloud::prometheus::direct::kubernetes::mode::deploymentstatus', - 'list-containers' => 'cloud::prometheus::direct::kubernetes::mode::listcontainers', - 'list-daemonsets' => 'cloud::prometheus::direct::kubernetes::mode::listdaemonsets', - 'list-deployments' => 'cloud::prometheus::direct::kubernetes::mode::listdeployments', - 'list-namespaces' => 'cloud::prometheus::direct::kubernetes::mode::listnamespaces', - 'list-nodes' => 'cloud::prometheus::direct::kubernetes::mode::listnodes', - 'list-services' => 'cloud::prometheus::direct::kubernetes::mode::listservices', - 'namespace-status' => 'cloud::prometheus::direct::kubernetes::mode::namespacestatus', - 'node-status' => 'cloud::prometheus::direct::kubernetes::mode::nodestatus', - ); + 'container-status' => 'cloud::prometheus::direct::kubernetes::mode::containerstatus', + 'daemonset-status' => 'cloud::prometheus::direct::kubernetes::mode::daemonsetstatus', + 'deployment-status' => 'cloud::prometheus::direct::kubernetes::mode::deploymentstatus', + 'list-containers' => 'cloud::prometheus::direct::kubernetes::mode::listcontainers', + 'list-daemonsets' => 'cloud::prometheus::direct::kubernetes::mode::listdaemonsets', + 'list-deployments' => 'cloud::prometheus::direct::kubernetes::mode::listdeployments', + 'list-namespaces' => 'cloud::prometheus::direct::kubernetes::mode::listnamespaces', + 'list-nodes' => 'cloud::prometheus::direct::kubernetes::mode::listnodes', + 'list-services' => 'cloud::prometheus::direct::kubernetes::mode::listservices', + 'namespace-status' => 'cloud::prometheus::direct::kubernetes::mode::namespacestatus', + 'node-status' => 'cloud::prometheus::direct::kubernetes::mode::nodestatus', + ); $self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api'; return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - - 1; __END__ diff --git a/centreon-plugins/cloud/prometheus/direct/nginxingresscontroller/plugin.pm b/centreon-plugins/cloud/prometheus/direct/nginxingresscontroller/plugin.pm index c65565c3d..df745735f 100644 --- a/centreon-plugins/cloud/prometheus/direct/nginxingresscontroller/plugin.pm +++ b/centreon-plugins/cloud/prometheus/direct/nginxingresscontroller/plugin.pm @@ -39,12 +39,6 @@ sub new { return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/cloud/prometheus/exporters/cadvisor/plugin.pm b/centreon-plugins/cloud/prometheus/exporters/cadvisor/plugin.pm index 6ee0abdb4..9be201d9f 100644 --- a/centreon-plugins/cloud/prometheus/exporters/cadvisor/plugin.pm +++ b/centreon-plugins/cloud/prometheus/exporters/cadvisor/plugin.pm @@ -31,25 +31,18 @@ sub new { $self->{version} = '0.1'; %{$self->{modes}} = ( - 'cpu' => 'cloud::prometheus::exporters::cadvisor::mode::cpu', - 'list-containers' => 'cloud::prometheus::exporters::cadvisor::mode::listcontainers', - 'load' => 'cloud::prometheus::exporters::cadvisor::mode::load', - 'memory' => 'cloud::prometheus::exporters::cadvisor::mode::memory', - 'storage' => 'cloud::prometheus::exporters::cadvisor::mode::storage', - 'task-state' => 'cloud::prometheus::exporters::cadvisor::mode::taskstate', - ); + 'cpu' => 'cloud::prometheus::exporters::cadvisor::mode::cpu', + 'list-containers' => 'cloud::prometheus::exporters::cadvisor::mode::listcontainers', + 'load' => 'cloud::prometheus::exporters::cadvisor::mode::load', + 'memory' => 'cloud::prometheus::exporters::cadvisor::mode::memory', + 'storage' => 'cloud::prometheus::exporters::cadvisor::mode::storage', + 'task-state' => 'cloud::prometheus::exporters::cadvisor::mode::taskstate', + ); $self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api'; return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - - 1; __END__ diff --git a/centreon-plugins/cloud/prometheus/exporters/nodeexporter/plugin.pm b/centreon-plugins/cloud/prometheus/exporters/nodeexporter/plugin.pm index 2dfed70a8..a7bc8410c 100644 --- a/centreon-plugins/cloud/prometheus/exporters/nodeexporter/plugin.pm +++ b/centreon-plugins/cloud/prometheus/exporters/nodeexporter/plugin.pm @@ -31,24 +31,17 @@ sub new { $self->{version} = '0.1'; %{$self->{modes}} = ( - 'cpu' => 'cloud::prometheus::exporters::nodeexporter::mode::cpu', - 'cpu-detailed' => 'cloud::prometheus::exporters::nodeexporter::mode::cpudetailed', - 'load' => 'cloud::prometheus::exporters::nodeexporter::mode::load', - 'memory' => 'cloud::prometheus::exporters::nodeexporter::mode::memory', - 'storage' => 'cloud::prometheus::exporters::nodeexporter::mode::storage', - ); + 'cpu' => 'cloud::prometheus::exporters::nodeexporter::mode::cpu', + 'cpu-detailed' => 'cloud::prometheus::exporters::nodeexporter::mode::cpudetailed', + 'load' => 'cloud::prometheus::exporters::nodeexporter::mode::load', + 'memory' => 'cloud::prometheus::exporters::nodeexporter::mode::memory', + 'storage' => 'cloud::prometheus::exporters::nodeexporter::mode::storage', + ); $self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api'; return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - - 1; __END__ diff --git a/centreon-plugins/cloud/prometheus/restapi/plugin.pm b/centreon-plugins/cloud/prometheus/restapi/plugin.pm index 23f4e3c32..ba976cd61 100644 --- a/centreon-plugins/cloud/prometheus/restapi/plugin.pm +++ b/centreon-plugins/cloud/prometheus/restapi/plugin.pm @@ -31,21 +31,14 @@ sub new { $self->{version} = '0.1'; %{$self->{modes}} = ( - 'expression' => 'cloud::prometheus::restapi::mode::expression', - 'target-status' => 'cloud::prometheus::restapi::mode::targetstatus', - ); + 'expression' => 'cloud::prometheus::restapi::mode::expression', + 'target-status' => 'cloud::prometheus::restapi::mode::targetstatus', + ); $self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api'; return $self; } -sub init { - my ( $self, %options ) = @_; - - $self->SUPER::init(%options); -} - - 1; __END__ diff --git a/centreon-plugins/storage/dell/MD3000/cli/plugin.pm b/centreon-plugins/storage/dell/MD3000/cli/plugin.pm index 0aeb8614e..bff1fd3bf 100644 --- a/centreon-plugins/storage/dell/MD3000/cli/plugin.pm +++ b/centreon-plugins/storage/dell/MD3000/cli/plugin.pm @@ -48,12 +48,6 @@ sub new { return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/storage/emc/vplex/restapi/plugin.pm b/centreon-plugins/storage/emc/vplex/restapi/plugin.pm index 2510d6c12..f93fd5b1a 100644 --- a/centreon-plugins/storage/emc/vplex/restapi/plugin.pm +++ b/centreon-plugins/storage/emc/vplex/restapi/plugin.pm @@ -44,12 +44,6 @@ sub new { return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/storage/emc/xtremio/restapi/plugin.pm b/centreon-plugins/storage/emc/xtremio/restapi/plugin.pm index c3ec25378..753b10c4c 100644 --- a/centreon-plugins/storage/emc/xtremio/restapi/plugin.pm +++ b/centreon-plugins/storage/emc/xtremio/restapi/plugin.pm @@ -31,23 +31,17 @@ sub new { $self->{version} = '1.0'; %{$self->{modes}} = ( - 'xenvs-cpu' => 'storage::emc::xtremio::restapi::mode::xenvscpu', - 'xenvs-state' => 'storage::emc::xtremio::restapi::mode::xenvsstate', - 'ssds-endurance' => 'storage::emc::xtremio::restapi::mode::ssdendurance', - 'ssds-iops' => 'storage::emc::xtremio::restapi::mode::ssdiops', - 'cluster-health' => 'storage::emc::xtremio::restapi::mode::clusterhealth', - ); + 'xenvs-cpu' => 'storage::emc::xtremio::restapi::mode::xenvscpu', + 'xenvs-state' => 'storage::emc::xtremio::restapi::mode::xenvsstate', + 'ssds-endurance' => 'storage::emc::xtremio::restapi::mode::ssdendurance', + 'ssds-iops' => 'storage::emc::xtremio::restapi::mode::ssdiops', + 'cluster-health' => 'storage::emc::xtremio::restapi::mode::clusterhealth', + ); $self->{custom_modes}{xtremioapi} = 'storage::emc::xtremio::restapi::custom::xtremioapi'; return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/storage/ibm/DS3000/cli/plugin.pm b/centreon-plugins/storage/ibm/DS3000/cli/plugin.pm index af5d8bc38..2581fc81c 100644 --- a/centreon-plugins/storage/ibm/DS3000/cli/plugin.pm +++ b/centreon-plugins/storage/ibm/DS3000/cli/plugin.pm @@ -50,12 +50,6 @@ sub new { return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/storage/ibm/DS4000/cli/plugin.pm b/centreon-plugins/storage/ibm/DS4000/cli/plugin.pm index d50165ded..0bf5050d4 100644 --- a/centreon-plugins/storage/ibm/DS4000/cli/plugin.pm +++ b/centreon-plugins/storage/ibm/DS4000/cli/plugin.pm @@ -50,12 +50,6 @@ sub new { return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__ diff --git a/centreon-plugins/storage/ibm/DS5000/cli/plugin.pm b/centreon-plugins/storage/ibm/DS5000/cli/plugin.pm index 283d70621..e4d0f0aba 100644 --- a/centreon-plugins/storage/ibm/DS5000/cli/plugin.pm +++ b/centreon-plugins/storage/ibm/DS5000/cli/plugin.pm @@ -50,12 +50,6 @@ sub new { return $self; } -sub init { - my ($self, %options) = @_; - - $self->SUPER::init(%options); -} - 1; __END__