move dell me4 plugin

This commit is contained in:
garnier-quentin 2019-06-21 08:36:27 +02:00
parent 452fc62e44
commit 000e5afe14
14 changed files with 31 additions and 31 deletions

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::custom::api; package storage::dell::me4::restapi::custom::api;
use strict; use strict;
use warnings; use warnings;
@ -45,12 +45,12 @@ sub new {
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => { $options{options}->add_options(arguments => {
"api-username:s" => { name => 'api_username' }, 'api-username:s' => { name => 'api_username' },
"api-password:s" => { name => 'api_password' }, 'api-password:s' => { name => 'api_password' },
"hostname:s" => { name => 'hostname' }, 'hostname:s' => { name => 'hostname' },
"port:s" => { name => 'port' }, 'port:s' => { name => 'port' },
"proto:s" => { name => 'proto' }, 'proto:s' => { name => 'proto' },
"timeout:s" => { name => 'timeout' }, 'timeout:s' => { name => 'timeout' },
}); });
} }
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::components::controller; package storage::dell::me4::restapi::mode::components::controller;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::components::disk; package storage::dell::me4::restapi::mode::components::disk;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::components::fan; package storage::dell::me4::restapi::mode::components::fan;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::components::fru; package storage::dell::me4::restapi::mode::components::fru;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::components::psu; package storage::dell::me4::restapi::mode::components::psu;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::components::sensor; package storage::dell::me4::restapi::mode::components::sensor;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::components::volume; package storage::dell::me4::restapi::mode::components::volume;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::controllerstatistics; package storage::dell::me4::restapi::mode::controllerstatistics;
use base qw(centreon::plugins::templates::counter); use base qw(centreon::plugins::templates::counter);
@ -191,7 +191,7 @@ sub new {
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => { $options{options}->add_options(arguments => {
"filter-name:s" => { name => 'filter_name' }, 'filter-name:s' => { name => 'filter_name' },
}); });
return $self; return $self;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::hardware; package storage::dell::me4::restapi::mode::hardware;
use base qw(centreon::plugins::templates::hardware); use base qw(centreon::plugins::templates::hardware);
@ -121,7 +121,7 @@ sub set_system {
], ],
}; };
$self->{components_path} = 'storage::dell::me4::mode::components'; $self->{components_path} = 'storage::dell::me4::restapi::mode::components';
$self->{components_module} = ['controller', 'disk', 'fan', 'fru', 'psu', 'sensor', 'volume']; $self->{components_module} = ['controller', 'disk', 'fan', 'fru', 'psu', 'sensor', 'volume'];
} }

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::listcontrollers; package storage::dell::me4::restapi::mode::listcontrollers;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);
@ -32,7 +32,7 @@ sub new {
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => { $options{options}->add_options(arguments => {
"filter-name:s" => { name => 'filter_name' }, 'filter-name:s' => { name => 'filter_name' },
}); });
return $self; return $self;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::listvolumes; package storage::dell::me4::restapi::mode::listvolumes;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);
@ -32,7 +32,7 @@ sub new {
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => { $options{options}->add_options(arguments => {
"filter-name:s" => { name => 'filter_name' }, 'filter-name:s' => { name => 'filter_name' },
}); });
return $self; return $self;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::mode::volumestatistics; package storage::dell::me4::restapi::mode::volumestatistics;
use base qw(centreon::plugins::templates::counter); use base qw(centreon::plugins::templates::counter);
@ -171,7 +171,7 @@ sub new {
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => { $options{options}->add_options(arguments => {
"filter-name:s" => { name => 'filter_name' }, 'filter-name:s' => { name => 'filter_name' },
}); });
return $self; return $self;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package storage::dell::me4::plugin; package storage::dell::me4::restapi::plugin;
use strict; use strict;
use warnings; use warnings;
@ -31,14 +31,14 @@ sub new {
$self->{version} = '0.1'; $self->{version} = '0.1';
%{ $self->{modes} } = ( %{ $self->{modes} } = (
'controller-statistics' => 'storage::dell::me4::mode::controllerstatistics', 'controller-statistics' => 'storage::dell::me4::restapi::mode::controllerstatistics',
'hardware' => 'storage::dell::me4::mode::hardware', 'hardware' => 'storage::dell::me4::restapi::mode::hardware',
'list-controllers' => 'storage::dell::me4::mode::listcontrollers', 'list-controllers' => 'storage::dell::me4::restapi::mode::listcontrollers',
'list-volumes' => 'storage::dell::me4::mode::listvolumes', 'list-volumes' => 'storage::dell::me4::restapi::mode::listvolumes',
'volume-statistics' => 'storage::dell::me4::mode::volumestatistics', 'volume-statistics' => 'storage::dell::me4::restapi::mode::volumestatistics',
); );
$self->{custom_modes}{api} = 'storage::dell::me4::custom::api'; $self->{custom_modes}{api} = 'storage::dell::me4::restapi::custom::api';
return $self; return $self;
} }