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->{version} = '0.1';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'status' => 'apps::github::mode::status',
|
|
||||||
'issues' => 'apps::github::mode::issues',
|
'issues' => 'apps::github::mode::issues',
|
||||||
'commits' => 'apps::github::mode::commits',
|
'commits' => 'apps::github::mode::commits',
|
||||||
'pullrequests' => 'apps::github::mode::pullrequests',
|
'pullrequests' => 'apps::github::mode::pullrequests',
|
||||||
'stats' => 'apps::github::mode::stats',
|
'stats' => 'apps::github::mode::stats',
|
||||||
|
'status' => 'apps::github::mode::status',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'connection' => 'apps::protocols::dhcp::mode::connection',
|
'connection' => 'apps::protocols::dhcp::mode::connection',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'request' => 'apps::protocols::dns::mode::request',
|
'request' => 'apps::protocols::dns::mode::request',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,11 +31,12 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '0.1';
|
$self->{version} = '0.1';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'login' => 'apps::protocols::ftp::mode::login',
|
|
||||||
'commands' => 'apps::protocols::ftp::mode::commands',
|
'commands' => 'apps::protocols::ftp::mode::commands',
|
||||||
'date' => 'apps::protocols::ftp::mode::date',
|
'date' => 'apps::protocols::ftp::mode::date',
|
||||||
'filescount' => 'apps::protocols::ftp::mode::filescount',
|
'filescount' => 'apps::protocols::ftp::mode::filescount',
|
||||||
|
'login' => 'apps::protocols::ftp::mode::login',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ sub new {
|
|||||||
'login' => 'apps::protocols::imap::mode::login',
|
'login' => 'apps::protocols::imap::mode::login',
|
||||||
'search-message' => 'apps::protocols::imap::mode::searchmessage',
|
'search-message' => 'apps::protocols::imap::mode::searchmessage',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ sub new {
|
|||||||
'login' => 'apps::protocols::ldap::mode::login',
|
'login' => 'apps::protocols::ldap::mode::login',
|
||||||
'search' => 'apps::protocols::ldap::mode::search',
|
'search' => 'apps::protocols::ldap::mode::search',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '0.1';
|
$self->{version} = '0.1';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'response-time' => 'apps::protocols::ntp::mode::responsetime',
|
|
||||||
'offset' => 'apps::protocols::ntp::mode::offset',
|
'offset' => 'apps::protocols::ntp::mode::offset',
|
||||||
|
'response-time' => 'apps::protocols::ntp::mode::responsetime',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -33,6 +33,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'login' => 'apps::protocols::radius::mode::login',
|
'login' => 'apps::protocols::radius::mode::login',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ sub new {
|
|||||||
'login' => 'apps::protocols::smtp::mode::login',
|
'login' => 'apps::protocols::smtp::mode::login',
|
||||||
'message' => 'apps::protocols::smtp::mode::message',
|
'message' => 'apps::protocols::smtp::mode::message',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'response-time' => 'apps::protocols::tcp::mode::responsetime',
|
'response-time' => 'apps::protocols::tcp::mode::responsetime',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'scenario' => 'apps::protocols::telnet::mode::scenario',
|
'scenario' => 'apps::protocols::telnet::mode::scenario',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'connection' => 'apps::protocols::udp::mode::connection',
|
'connection' => 'apps::protocols::udp::mode::connection',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ sub new {
|
|||||||
'certificate' => 'apps::protocols::x509::mode::certificate',
|
'certificate' => 'apps::protocols::x509::mode::certificate',
|
||||||
'validity' => 'apps::protocols::x509::mode::validity', #legacy mode
|
'validity' => 'apps::protocols::x509::mode::validity', #legacy mode
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,10 +25,6 @@ use base qw(centreon::plugins::templates::hardware);
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $thresholds = {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
sub set_system {
|
sub set_system {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
@ -96,8 +92,7 @@ sub new {
|
|||||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -31,9 +31,9 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '0.1';
|
$self->{version} = '0.1';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
|
'inodes' => 'os::hpux::local::mode::inodes',
|
||||||
'list-storages' => 'os::hpux::local::mode::liststorages',
|
'list-storages' => 'os::hpux::local::mode::liststorages',
|
||||||
'storage' => 'os::hpux::local::mode::storage',
|
'storage' => 'os::hpux::local::mode::storage',
|
||||||
'inodes' => 'os::hpux::local::mode::inodes',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -34,6 +34,7 @@ sub new {
|
|||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'health-status' => 'centreon::common::smcli::mode::healthstatus',
|
'health-status' => 'centreon::common::smcli::mode::healthstatus',
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->{custom_modes}{smcli} = 'centreon::common::smcli::custom::custom';
|
$self->{custom_modes}{smcli} = 'centreon::common::smcli::custom::custom';
|
||||||
$self->{default} = {
|
$self->{default} = {
|
||||||
'health-status' => {
|
'health-status' => {
|
||||||
|
@ -31,8 +31,8 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '0.1';
|
$self->{version} = '0.1';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'system-status' => 'storage::emc::recoverypoint::ssh::mode::systemstatus',
|
|
||||||
'monitored-parameters' => 'storage::emc::recoverypoint::ssh::mode::monitoredparameters',
|
'monitored-parameters' => 'storage::emc::recoverypoint::ssh::mode::monitoredparameters',
|
||||||
|
'system-status' => 'storage::emc::recoverypoint::ssh::mode::systemstatus',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -31,9 +31,9 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'fc-usage' => 'storage::ibm::fs900::snmp::mode::fcusage',
|
|
||||||
'arrays-status' => 'storage::ibm::fs900::snmp::mode::arraysstatus',
|
'arrays-status' => 'storage::ibm::fs900::snmp::mode::arraysstatus',
|
||||||
'arrays-usage' => 'storage::ibm::fs900::snmp::mode::arraysusage',
|
'arrays-usage' => 'storage::ibm::fs900::snmp::mode::arraysusage',
|
||||||
|
'fc-usage' => 'storage::ibm::fs900::snmp::mode::fcusage',
|
||||||
'hardware' => 'storage::ibm::fs900::snmp::mode::hardware',
|
'hardware' => 'storage::ibm::fs900::snmp::mode::hardware',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ sub new {
|
|||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'components' => 'storage::ibm::storwize::ssh::mode::hardware',
|
'components' => 'storage::ibm::storwize::ssh::mode::hardware',
|
||||||
'pool-usage' => 'storage::ibm::storwize::ssh::mode::poolusage',
|
|
||||||
'eventlog' => 'storage::ibm::storwize::ssh::mode::eventlog',
|
'eventlog' => 'storage::ibm::storwize::ssh::mode::eventlog',
|
||||||
|
'pool-usage' => 'storage::ibm::storwize::ssh::mode::poolusage',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -59,6 +59,7 @@ sub new {
|
|||||||
'volume-status' => 'storage::netapp::restapi::mode::volumestatus',
|
'volume-status' => 'storage::netapp::restapi::mode::volumestatus',
|
||||||
'volume-usage' => 'storage::netapp::restapi::mode::volumeusage',
|
'volume-usage' => 'storage::netapp::restapi::mode::volumeusage',
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->{custom_modes}{api} = 'storage::netapp::restapi::custom::restapi';
|
$self->{custom_modes}{api} = 'storage::netapp::restapi::custom::restapi';
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
@ -33,11 +33,11 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'hardware' => 'storage::netgear::readynas::snmp::mode::hardware',
|
|
||||||
'cpu' => 'snmp_standard::mode::cpu',
|
'cpu' => 'snmp_standard::mode::cpu',
|
||||||
|
'hardware' => 'storage::netgear::readynas::snmp::mode::hardware',
|
||||||
'interfaces' => 'snmp_standard::mode::interfaces',
|
'interfaces' => 'snmp_standard::mode::interfaces',
|
||||||
'memory' => 'snmp_standard::mode::memory',
|
|
||||||
'load' => 'snmp_standard::mode::loadaverage',
|
'load' => 'snmp_standard::mode::loadaverage',
|
||||||
|
'memory' => 'snmp_standard::mode::memory',
|
||||||
'storage' => 'snmp_standard::mode::storage',
|
'storage' => 'snmp_standard::mode::storage',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'volume-usage' => 'storage::nimble::snmp::mode::volumeusage',
|
|
||||||
'global-stats' => 'storage::nimble::snmp::mode::globalstats',
|
'global-stats' => 'storage::nimble::snmp::mode::globalstats',
|
||||||
|
'volume-usage' => 'storage::nimble::snmp::mode::volumeusage',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -32,13 +32,13 @@ sub new {
|
|||||||
$self->{version} = '1.1';
|
$self->{version} = '1.1';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'components' => 'storage::synology::snmp::mode::hardware',
|
'components' => 'storage::synology::snmp::mode::hardware',
|
||||||
'temperature' => 'storage::synology::snmp::mode::temperature',
|
|
||||||
'ups' => 'storage::synology::snmp::mode::ups',
|
|
||||||
'cpu' => 'snmp_standard::mode::cpu',
|
'cpu' => 'snmp_standard::mode::cpu',
|
||||||
'interfaces' => 'snmp_standard::mode::interfaces',
|
'interfaces' => 'snmp_standard::mode::interfaces',
|
||||||
'memory' => 'snmp_standard::mode::memory',
|
'memory' => 'snmp_standard::mode::memory',
|
||||||
'load' => 'snmp_standard::mode::loadaverage',
|
'load' => 'snmp_standard::mode::loadaverage',
|
||||||
'storage' => 'snmp_standard::mode::storage',
|
'storage' => 'snmp_standard::mode::storage',
|
||||||
|
'temperature' => 'storage::synology::snmp::mode::temperature',
|
||||||
|
'ups' => 'storage::synology::snmp::mode::ups',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user