move dell me4 plugin
This commit is contained in:
parent
452fc62e44
commit
000e5afe14
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::custom::api;
|
||||
package storage::dell::me4::restapi::custom::api;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
@ -45,12 +45,12 @@ sub new {
|
|||
|
||||
if (!defined($options{noptions})) {
|
||||
$options{options}->add_options(arguments => {
|
||||
"api-username:s" => { name => 'api_username' },
|
||||
"api-password:s" => { name => 'api_password' },
|
||||
"hostname:s" => { name => 'hostname' },
|
||||
"port:s" => { name => 'port' },
|
||||
"proto:s" => { name => 'proto' },
|
||||
"timeout:s" => { name => 'timeout' },
|
||||
'api-username:s' => { name => 'api_username' },
|
||||
'api-password:s' => { name => 'api_password' },
|
||||
'hostname:s' => { name => 'hostname' },
|
||||
'port:s' => { name => 'port' },
|
||||
'proto:s' => { name => 'proto' },
|
||||
'timeout:s' => { name => 'timeout' },
|
||||
});
|
||||
}
|
||||
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::components::controller;
|
||||
package storage::dell::me4::restapi::mode::components::controller;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::components::disk;
|
||||
package storage::dell::me4::restapi::mode::components::disk;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::components::fan;
|
||||
package storage::dell::me4::restapi::mode::components::fan;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::components::fru;
|
||||
package storage::dell::me4::restapi::mode::components::fru;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::components::psu;
|
||||
package storage::dell::me4::restapi::mode::components::psu;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::components::sensor;
|
||||
package storage::dell::me4::restapi::mode::components::sensor;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::components::volume;
|
||||
package storage::dell::me4::restapi::mode::components::volume;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::controllerstatistics;
|
||||
package storage::dell::me4::restapi::mode::controllerstatistics;
|
||||
|
||||
use base qw(centreon::plugins::templates::counter);
|
||||
|
||||
|
@ -191,7 +191,7 @@ sub new {
|
|||
|
||||
$self->{version} = '1.0';
|
||||
$options{options}->add_options(arguments => {
|
||||
"filter-name:s" => { name => 'filter_name' },
|
||||
'filter-name:s' => { name => 'filter_name' },
|
||||
});
|
||||
|
||||
return $self;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::hardware;
|
||||
package storage::dell::me4::restapi::mode::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'];
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::listcontrollers;
|
||||
package storage::dell::me4::restapi::mode::listcontrollers;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -32,7 +32,7 @@ sub new {
|
|||
|
||||
$self->{version} = '1.0';
|
||||
$options{options}->add_options(arguments => {
|
||||
"filter-name:s" => { name => 'filter_name' },
|
||||
'filter-name:s' => { name => 'filter_name' },
|
||||
});
|
||||
|
||||
return $self;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::listvolumes;
|
||||
package storage::dell::me4::restapi::mode::listvolumes;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -32,7 +32,7 @@ sub new {
|
|||
|
||||
$self->{version} = '1.0';
|
||||
$options{options}->add_options(arguments => {
|
||||
"filter-name:s" => { name => 'filter_name' },
|
||||
'filter-name:s' => { name => 'filter_name' },
|
||||
});
|
||||
|
||||
return $self;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::mode::volumestatistics;
|
||||
package storage::dell::me4::restapi::mode::volumestatistics;
|
||||
|
||||
use base qw(centreon::plugins::templates::counter);
|
||||
|
||||
|
@ -171,7 +171,7 @@ sub new {
|
|||
|
||||
$self->{version} = '1.0';
|
||||
$options{options}->add_options(arguments => {
|
||||
"filter-name:s" => { name => 'filter_name' },
|
||||
'filter-name:s' => { name => 'filter_name' },
|
||||
});
|
||||
|
||||
return $self;
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package storage::dell::me4::plugin;
|
||||
package storage::dell::me4::restapi::plugin;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
@ -31,14 +31,14 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{ $self->{modes} } = (
|
||||
'controller-statistics' => 'storage::dell::me4::mode::controllerstatistics',
|
||||
'hardware' => 'storage::dell::me4::mode::hardware',
|
||||
'list-controllers' => 'storage::dell::me4::mode::listcontrollers',
|
||||
'list-volumes' => 'storage::dell::me4::mode::listvolumes',
|
||||
'volume-statistics' => 'storage::dell::me4::mode::volumestatistics',
|
||||
'controller-statistics' => 'storage::dell::me4::restapi::mode::controllerstatistics',
|
||||
'hardware' => 'storage::dell::me4::restapi::mode::hardware',
|
||||
'list-controllers' => 'storage::dell::me4::restapi::mode::listcontrollers',
|
||||
'list-volumes' => 'storage::dell::me4::restapi::mode::listvolumes',
|
||||
'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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue