mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
enhance indent
This commit is contained in:
parent
3b117fb49f
commit
f2ad00e133
@ -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;
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ sub new {
|
||||
%{$self->{modes}} = (
|
||||
'connection' => 'apps::protocols::dhcp::mode::connection',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ sub new {
|
||||
%{$self->{modes}} = (
|
||||
'request' => 'apps::protocols::dns::mode::request',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@ sub new {
|
||||
'login' => 'apps::protocols::imap::mode::login',
|
||||
'search-message' => 'apps::protocols::imap::mode::searchmessage',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@ sub new {
|
||||
'login' => 'apps::protocols::ldap::mode::login',
|
||||
'search' => 'apps::protocols::ldap::mode::search',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -33,6 +33,7 @@ sub new {
|
||||
%{$self->{modes}} = (
|
||||
'login' => 'apps::protocols::radius::mode::login',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@ sub new {
|
||||
'login' => 'apps::protocols::smtp::mode::login',
|
||||
'message' => 'apps::protocols::smtp::mode::message',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ sub new {
|
||||
%{$self->{modes}} = (
|
||||
'response-time' => 'apps::protocols::tcp::mode::responsetime',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ sub new {
|
||||
%{$self->{modes}} = (
|
||||
'scenario' => 'apps::protocols::telnet::mode::scenario',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ sub new {
|
||||
%{$self->{modes}} = (
|
||||
'connection' => 'apps::protocols::udp::mode::connection',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@ sub new {
|
||||
'certificate' => 'apps::protocols::x509::mode::certificate',
|
||||
'validity' => 'apps::protocols::x509::mode::validity', #legacy mode
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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' => {
|
||||
|
@ -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;
|
||||
|
@ -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',
|
||||
);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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',
|
||||
);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user