+ Move F5 sub dirs

This commit is contained in:
Quentin Garnier 2014-09-15 11:36:04 +02:00
parent 9524c062f2
commit 2f7f436245
12 changed files with 29 additions and 30 deletions

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::components::fan;
package network::f5::bigip::mode::components::fan;
use strict;
use warnings;

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::components::psu;
package network::f5::bigip::mode::components::psu;
use strict;
use warnings;

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::components::temperature;
package network::f5::bigip::mode::components::temperature;
use strict;
use warnings;

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::connections;
package network::f5::bigip::mode::connections;
use base qw(centreon::plugins::mode);
@ -123,7 +123,6 @@ sub run {
value => $sysClientsslStatCurConns);
$self->{output}->perfdata_add(label => "ServerSSL", unit => 'con',
value => $sysServersslStatCurConns);
$self->{output}->display();
$self->{output}->exit();

View File

@ -32,16 +32,16 @@
#
####################################################################################
package network::f5::mode::hardware;
package network::f5::bigip::mode::hardware;
use base qw(centreon::plugins::mode);
use strict;
use warnings;
use network::f5::mode::components::fan;
use network::f5::mode::components::psu;
use network::f5::mode::components::temperature;
use network::f5::bigip::mode::components::fan;
use network::f5::bigip::mode::components::psu;
use network::f5::bigip::mode::components::temperature;
sub new {
my ($class, %options) = @_;
@ -78,9 +78,9 @@ sub check_options {
sub global {
my ($self, %options) = @_;
network::f5::mode::components::temperature::check($self);
network::f5::mode::components::fan::check($self);
network::f5::mode::components::psu::check($self);
network::f5::bigip::mode::components::temperature::check($self);
network::f5::bigip::mode::components::fan::check($self);
network::f5::bigip::mode::components::psu::check($self);
}
sub run {
@ -91,11 +91,11 @@ sub run {
if ($self->{option_results}->{component} eq 'all') {
$self->global();
} elsif ($self->{option_results}->{component} eq 'fan') {
network::f5::mode::components::fan::check($self);
network::f5::bigip::mode::components::fan::check($self);
} elsif ($self->{option_results}->{component} eq 'psu') {
network::f5::mode::components::psu::check($self);
network::f5::bigip::mode::components::psu::check($self);
} elsif ($self->{option_results}->{component} eq 'temperature') {
network::f5::mode::components::temperature::check($self);
network::f5::bigip::mode::components::temperature::check($self);
} else {
$self->{output}->add_option_msg(short_msg => "Wrong option. Cannot find component '" . $self->{option_results}->{component} . "'.");
$self->{output}->option_exit();

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::listnodes;
package network::f5::bigip::mode::listnodes;
use base qw(centreon::plugins::mode);

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::listpools;
package network::f5::bigip::mode::listpools;
use base qw(centreon::plugins::mode);

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::listvirtualservers;
package network::f5::bigip::mode::listvirtualservers;
use base qw(centreon::plugins::mode);

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::nodestatus;
package network::f5::bigip::mode::nodestatus;
use base qw(centreon::plugins::mode);

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::poolstatus;
package network::f5::bigip::mode::poolstatus;
use base qw(centreon::plugins::mode);

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::mode::virtualserverstatus;
package network::f5::bigip::mode::virtualserverstatus;
use base qw(centreon::plugins::mode);

View File

@ -33,7 +33,7 @@
#
####################################################################################
package network::f5::plugin;
package network::f5::bigip::plugin;
use strict;
use warnings;
@ -47,14 +47,14 @@ sub new {
$self->{version} = '1.0';
%{$self->{modes}} = (
'node-status' => 'network::f5::mode::nodestatus',
'pool-status' => 'network::f5::mode::poolstatus',
'virtualserver-status' => 'network::f5::mode::virtualserverstatus',
'list-nodes' => 'network::f5::mode::listnodes',
'list-pools' => 'network::f5::mode::listpools',
'list-virtualservers' => 'network::f5::mode::listvirtualservers',
'hardware' => 'network::f5::mode::hardware',
'connections' => 'network::f5::mode::connections',
'node-status' => 'network::f5::bigip::mode::nodestatus',
'pool-status' => 'network::f5::bigip::mode::poolstatus',
'virtualserver-status' => 'network::f5::bigip::mode::virtualserverstatus',
'list-nodes' => 'network::f5::bigip::mode::listnodes',
'list-pools' => 'network::f5::bigip::mode::listpools',
'list-virtualservers' => 'network::f5::bigip::mode::listvirtualservers',
'hardware' => 'network::f5::bigip::mode::hardware',
'connections' => 'network::f5::bigip::mode::connections',
);
return $self;