+ Move F5 sub dirs
This commit is contained in:
parent
9524c062f2
commit
2f7f436245
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::components::fan;
|
package network::f5::bigip::mode::components::fan;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::components::psu;
|
package network::f5::bigip::mode::components::psu;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::components::temperature;
|
package network::f5::bigip::mode::components::temperature;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::connections;
|
package network::f5::bigip::mode::connections;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
|
@ -123,7 +123,6 @@ sub run {
|
||||||
value => $sysClientsslStatCurConns);
|
value => $sysClientsslStatCurConns);
|
||||||
$self->{output}->perfdata_add(label => "ServerSSL", unit => 'con',
|
$self->{output}->perfdata_add(label => "ServerSSL", unit => 'con',
|
||||||
value => $sysServersslStatCurConns);
|
value => $sysServersslStatCurConns);
|
||||||
|
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
|
@ -32,16 +32,16 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::hardware;
|
package network::f5::bigip::mode::hardware;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use network::f5::mode::components::fan;
|
use network::f5::bigip::mode::components::fan;
|
||||||
use network::f5::mode::components::psu;
|
use network::f5::bigip::mode::components::psu;
|
||||||
use network::f5::mode::components::temperature;
|
use network::f5::bigip::mode::components::temperature;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
|
@ -78,9 +78,9 @@ sub check_options {
|
||||||
sub global {
|
sub global {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
network::f5::mode::components::temperature::check($self);
|
network::f5::bigip::mode::components::temperature::check($self);
|
||||||
network::f5::mode::components::fan::check($self);
|
network::f5::bigip::mode::components::fan::check($self);
|
||||||
network::f5::mode::components::psu::check($self);
|
network::f5::bigip::mode::components::psu::check($self);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
|
@ -91,11 +91,11 @@ sub run {
|
||||||
if ($self->{option_results}->{component} eq 'all') {
|
if ($self->{option_results}->{component} eq 'all') {
|
||||||
$self->global();
|
$self->global();
|
||||||
} elsif ($self->{option_results}->{component} eq 'fan') {
|
} 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') {
|
} 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') {
|
} elsif ($self->{option_results}->{component} eq 'temperature') {
|
||||||
network::f5::mode::components::temperature::check($self);
|
network::f5::bigip::mode::components::temperature::check($self);
|
||||||
} else {
|
} else {
|
||||||
$self->{output}->add_option_msg(short_msg => "Wrong option. Cannot find component '" . $self->{option_results}->{component} . "'.");
|
$self->{output}->add_option_msg(short_msg => "Wrong option. Cannot find component '" . $self->{option_results}->{component} . "'.");
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::listnodes;
|
package network::f5::bigip::mode::listnodes;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::listpools;
|
package network::f5::bigip::mode::listpools;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::listvirtualservers;
|
package network::f5::bigip::mode::listvirtualservers;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::nodestatus;
|
package network::f5::bigip::mode::nodestatus;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::poolstatus;
|
package network::f5::bigip::mode::poolstatus;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::mode::virtualserverstatus;
|
package network::f5::bigip::mode::virtualserverstatus;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#
|
#
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
package network::f5::plugin;
|
package network::f5::bigip::plugin;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -47,14 +47,14 @@ sub new {
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'node-status' => 'network::f5::mode::nodestatus',
|
'node-status' => 'network::f5::bigip::mode::nodestatus',
|
||||||
'pool-status' => 'network::f5::mode::poolstatus',
|
'pool-status' => 'network::f5::bigip::mode::poolstatus',
|
||||||
'virtualserver-status' => 'network::f5::mode::virtualserverstatus',
|
'virtualserver-status' => 'network::f5::bigip::mode::virtualserverstatus',
|
||||||
'list-nodes' => 'network::f5::mode::listnodes',
|
'list-nodes' => 'network::f5::bigip::mode::listnodes',
|
||||||
'list-pools' => 'network::f5::mode::listpools',
|
'list-pools' => 'network::f5::bigip::mode::listpools',
|
||||||
'list-virtualservers' => 'network::f5::mode::listvirtualservers',
|
'list-virtualservers' => 'network::f5::bigip::mode::listvirtualservers',
|
||||||
'hardware' => 'network::f5::mode::hardware',
|
'hardware' => 'network::f5::bigip::mode::hardware',
|
||||||
'connections' => 'network::f5::mode::connections',
|
'connections' => 'network::f5::bigip::mode::connections',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
Loading…
Reference in New Issue