enhance indent aeg
This commit is contained in:
parent
699145d590
commit
51f2a6df5c
|
@ -65,8 +65,7 @@ sub new {
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
"warning-status:s" => { name => 'warning_status', default => '' },
|
"warning-status:s" => { name => 'warning_status', default => '' },
|
||||||
"critical-status:s" => { name => 'critical_status', default => '%{status} =~ /true/i' },
|
"critical-status:s" => { name => 'critical_status', default => '%{status} =~ /true/i' },
|
||||||
});
|
});
|
||||||
|
@ -99,10 +98,13 @@ sub manage_selection {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{global} = {};
|
$self->{global} = {};
|
||||||
$self->{results} = $options{snmp}->get_multiple_table(oids => [ { oid => $oid_acm1000AcPlant },
|
$self->{results} = $options{snmp}->get_multiple_table(
|
||||||
|
oids => [
|
||||||
|
{ oid => $oid_acm1000AcPlant },
|
||||||
{ oid => $oid_acmi1000AcPlant },
|
{ oid => $oid_acmi1000AcPlant },
|
||||||
],
|
],
|
||||||
nothing_quit => 1);
|
nothing_quit => 1
|
||||||
|
);
|
||||||
|
|
||||||
my $result_acm1000 = $options{snmp}->map_instance(mapping => $mapping_acm1000, results => $self->{results}->{$oid_acm1000AcPlant}, instance => '0');
|
my $result_acm1000 = $options{snmp}->map_instance(mapping => $mapping_acm1000, results => $self->{results}->{$oid_acm1000AcPlant}, instance => '0');
|
||||||
my $result_acmi1000 = $options{snmp}->map_instance(mapping => $mapping_acmi1000, results => $self->{results}->{$oid_acmi1000AcPlant}, instance => '0');
|
my $result_acmi1000 = $options{snmp}->map_instance(mapping => $mapping_acmi1000, results => $self->{results}->{$oid_acmi1000AcPlant}, instance => '0');
|
||||||
|
|
|
@ -62,8 +62,7 @@ sub new {
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
|
|
@ -137,8 +137,7 @@ sub new {
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
"warning-status:s" => { name => 'warning_status', default => '%{status} =~ /onBattery/i' },
|
"warning-status:s" => { name => 'warning_status', default => '%{status} =~ /onBattery/i' },
|
||||||
"critical-status:s" => { name => 'critical_status', default => '%{status} =~ /disconnected/i || %{status} =~ /shutdown/i' },
|
"critical-status:s" => { name => 'critical_status', default => '%{status} =~ /disconnected/i || %{status} =~ /shutdown/i' },
|
||||||
});
|
});
|
||||||
|
|
|
@ -102,8 +102,7 @@ sub new {
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
"warning-status:s" => { name => 'warning_status', default => '' },
|
"warning-status:s" => { name => 'warning_status', default => '' },
|
||||||
"critical-status:s" => { name => 'critical_status', default => '%{status} !~ /ok|notInstalled/i' },
|
"critical-status:s" => { name => 'critical_status', default => '%{status} !~ /ok|notInstalled/i' },
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue