enhance indent

This commit is contained in:
garnier-quentin 2019-10-15 17:35:33 +02:00
parent 3b117fb49f
commit f2ad00e133
68 changed files with 299 additions and 290 deletions

View File

@ -31,12 +31,13 @@ sub new {
$self->{version} = '0.1';
%{$self->{modes}} = (
'status' => 'apps::github::mode::status',
'issues' => 'apps::github::mode::issues',
'commits' => 'apps::github::mode::commits',
'pullrequests' => 'apps::github::mode::pullrequests',
'stats' => 'apps::github::mode::stats',
'status' => 'apps::github::mode::status',
);
return $self;
}

View File

@ -33,6 +33,7 @@ sub new {
%{$self->{modes}} = (
'connection' => 'apps::protocols::dhcp::mode::connection',
);
return $self;
}

View File

@ -33,6 +33,7 @@ sub new {
%{$self->{modes}} = (
'request' => 'apps::protocols::dns::mode::request',
);
return $self;
}

View File

@ -31,11 +31,12 @@ sub new {
$self->{version} = '0.1';
%{$self->{modes}} = (
'login' => 'apps::protocols::ftp::mode::login',
'commands' => 'apps::protocols::ftp::mode::commands',
'date' => 'apps::protocols::ftp::mode::date',
'filescount' => 'apps::protocols::ftp::mode::filescount',
'login' => 'apps::protocols::ftp::mode::login',
);
return $self;
}

View File

@ -34,6 +34,7 @@ sub new {
'login' => 'apps::protocols::imap::mode::login',
'search-message' => 'apps::protocols::imap::mode::searchmessage',
);
return $self;
}

View File

@ -34,6 +34,7 @@ sub new {
'login' => 'apps::protocols::ldap::mode::login',
'search' => 'apps::protocols::ldap::mode::search',
);
return $self;
}

View File

@ -31,8 +31,8 @@ sub new {
$self->{version} = '0.1';
%{$self->{modes}} = (
'response-time' => 'apps::protocols::ntp::mode::responsetime',
'offset' => 'apps::protocols::ntp::mode::offset',
'response-time' => 'apps::protocols::ntp::mode::responsetime',
);
return $self;

View File

@ -33,6 +33,7 @@ sub new {
%{$self->{modes}} = (
'login' => 'apps::protocols::radius::mode::login',
);
return $self;
}

View File

@ -34,6 +34,7 @@ sub new {
'login' => 'apps::protocols::smtp::mode::login',
'message' => 'apps::protocols::smtp::mode::message',
);
return $self;
}

View File

@ -33,6 +33,7 @@ sub new {
%{$self->{modes}} = (
'response-time' => 'apps::protocols::tcp::mode::responsetime',
);
return $self;
}

View File

@ -33,6 +33,7 @@ sub new {
%{$self->{modes}} = (
'scenario' => 'apps::protocols::telnet::mode::scenario',
);
return $self;
}

View File

@ -33,6 +33,7 @@ sub new {
%{$self->{modes}} = (
'connection' => 'apps::protocols::udp::mode::connection',
);
return $self;
}

View File

@ -34,6 +34,7 @@ sub new {
'certificate' => 'apps::protocols::x509::mode::certificate',
'validity' => 'apps::protocols::x509::mode::validity', #legacy mode
);
return $self;
}

View File

@ -25,10 +25,6 @@ use base qw(centreon::plugins::templates::hardware);
use strict;
use warnings;
my $thresholds = {
};
sub set_system {
my ($self, %options) = @_;
@ -96,8 +92,7 @@ sub new {
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
bless $self, $class;
$options{options}->add_options(arguments =>
{
$options{options}->add_options(arguments => {
});
return $self;

View File

@ -31,9 +31,9 @@ sub new {
$self->{version} = '0.1';
%{$self->{modes}} = (
'inodes' => 'os::hpux::local::mode::inodes',
'list-storages' => 'os::hpux::local::mode::liststorages',
'storage' => 'os::hpux::local::mode::storage',
'inodes' => 'os::hpux::local::mode::inodes',
);
return $self;

View File

@ -34,6 +34,7 @@ sub new {
%{$self->{modes}} = (
'health-status' => 'centreon::common::smcli::mode::healthstatus',
);
$self->{custom_modes}{smcli} = 'centreon::common::smcli::custom::custom';
$self->{default} = {
'health-status' => {

View File

@ -31,8 +31,8 @@ sub new {
$self->{version} = '0.1';
%{$self->{modes}} = (
'system-status' => 'storage::emc::recoverypoint::ssh::mode::systemstatus',
'monitored-parameters' => 'storage::emc::recoverypoint::ssh::mode::monitoredparameters',
'system-status' => 'storage::emc::recoverypoint::ssh::mode::systemstatus',
);
return $self;

View File

@ -31,9 +31,9 @@ sub new {
$self->{version} = '1.0';
%{$self->{modes}} = (
'fc-usage' => 'storage::ibm::fs900::snmp::mode::fcusage',
'arrays-status' => 'storage::ibm::fs900::snmp::mode::arraysstatus',
'arrays-usage' => 'storage::ibm::fs900::snmp::mode::arraysusage',
'fc-usage' => 'storage::ibm::fs900::snmp::mode::fcusage',
'hardware' => 'storage::ibm::fs900::snmp::mode::hardware',
);

View File

@ -32,8 +32,8 @@ sub new {
$self->{version} = '1.0';
%{$self->{modes}} = (
'components' => 'storage::ibm::storwize::ssh::mode::hardware',
'pool-usage' => 'storage::ibm::storwize::ssh::mode::poolusage',
'eventlog' => 'storage::ibm::storwize::ssh::mode::eventlog',
'pool-usage' => 'storage::ibm::storwize::ssh::mode::poolusage',
);
return $self;

View File

@ -59,6 +59,7 @@ sub new {
'volume-status' => 'storage::netapp::restapi::mode::volumestatus',
'volume-usage' => 'storage::netapp::restapi::mode::volumeusage',
);
$self->{custom_modes}{api} = 'storage::netapp::restapi::custom::restapi';
return $self;
}

View File

@ -33,11 +33,11 @@ sub new {
$self->{version} = '1.0';
%{$self->{modes}} = (
'hardware' => 'storage::netgear::readynas::snmp::mode::hardware',
'cpu' => 'snmp_standard::mode::cpu',
'hardware' => 'storage::netgear::readynas::snmp::mode::hardware',
'interfaces' => 'snmp_standard::mode::interfaces',
'memory' => 'snmp_standard::mode::memory',
'load' => 'snmp_standard::mode::loadaverage',
'memory' => 'snmp_standard::mode::memory',
'storage' => 'snmp_standard::mode::storage',
);

View File

@ -31,8 +31,8 @@ sub new {
$self->{version} = '1.0';
%{$self->{modes}} = (
'volume-usage' => 'storage::nimble::snmp::mode::volumeusage',
'global-stats' => 'storage::nimble::snmp::mode::globalstats',
'volume-usage' => 'storage::nimble::snmp::mode::volumeusage',
);
return $self;

View File

@ -32,13 +32,13 @@ sub new {
$self->{version} = '1.1';
%{$self->{modes}} = (
'components' => 'storage::synology::snmp::mode::hardware',
'temperature' => 'storage::synology::snmp::mode::temperature',
'ups' => 'storage::synology::snmp::mode::ups',
'cpu' => 'snmp_standard::mode::cpu',
'interfaces' => 'snmp_standard::mode::interfaces',
'memory' => 'snmp_standard::mode::memory',
'load' => 'snmp_standard::mode::loadaverage',
'storage' => 'snmp_standard::mode::storage',
'temperature' => 'storage::synology::snmp::mode::temperature',
'ups' => 'storage::synology::snmp::mode::ups',
);
return $self;