From 3fa466c595bf4bbcdba8427f7869d1734e8db66a Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 22 Jan 2020 10:25:52 +0100 Subject: [PATCH] enhance indent --- apps/automation/ansible/tower/plugin.pm | 2 +- hardware/server/cisco/ucs/mode/auditlogs.pm | 16 ++++---- .../server/cisco/ucs/mode/components/blade.pm | 34 +++++++++------ .../cisco/ucs/mode/components/chassis.pm | 21 ++++++---- .../server/cisco/ucs/mode/components/cpu.pm | 38 ++++++++++------- .../server/cisco/ucs/mode/components/fan.pm | 36 +++++++++------- .../server/cisco/ucs/mode/components/fex.pm | 36 +++++++++------- .../cisco/ucs/mode/components/iocard.pm | 36 +++++++++------- .../cisco/ucs/mode/components/localdisk.pm | 41 +++++++++++-------- .../cisco/ucs/mode/components/memory.pm | 36 +++++++++------- .../server/cisco/ucs/mode/components/psu.pm | 38 ++++++++++------- hardware/server/cisco/ucs/mode/equipment.pm | 18 ++++---- 12 files changed, 209 insertions(+), 143 deletions(-) diff --git a/apps/automation/ansible/tower/plugin.pm b/apps/automation/ansible/tower/plugin.pm index 62e7a9354..d68a6931e 100644 --- a/apps/automation/ansible/tower/plugin.pm +++ b/apps/automation/ansible/tower/plugin.pm @@ -35,7 +35,7 @@ sub new { 'discovery' => 'apps::automation::ansible::tower::mode::discovery', 'inventory-statistics' => 'apps::automation::ansible::tower::mode::inventorystatistics', ); - + $self->{custom_modes}{towercli} = 'apps::automation::ansible::tower::custom::towercli'; return $self; } diff --git a/hardware/server/cisco/ucs/mode/auditlogs.pm b/hardware/server/cisco/ucs/mode/auditlogs.pm index 64cdaf6b7..d31ea47d2 100644 --- a/hardware/server/cisco/ucs/mode/auditlogs.pm +++ b/hardware/server/cisco/ucs/mode/auditlogs.pm @@ -49,13 +49,13 @@ sub new { my $self = $class->SUPER::new(package => __PACKAGE__, %options); bless $self, $class; - $options{options}->add_options(arguments => - { - "filter-severity:s@" => { name => 'filter_severity', }, - "filter-message:s" => { name => 'filter_message' }, - "retention:s" => { name => 'retention' }, - "memory" => { name => 'memory' }, - }); + $options{options}->add_options(arguments => { + 'filter-severity:s@' => { name => 'filter_severity', }, + 'filter-message:s' => { name => 'filter_message' }, + 'retention:s' => { name => 'retention' }, + 'memory' => { name => 'memory' }, + }); + $self->{statefile_cache} = centreon::plugins::statefile->new(%options); $self->{severities} = {}; return $self; @@ -214,4 +214,4 @@ Event older (current time - retention time) is not checked (in seconds). =back =cut - \ No newline at end of file + diff --git a/hardware/server/cisco/ucs/mode/components/blade.pm b/hardware/server/cisco/ucs/mode/components/blade.pm index 95effa575..b25c071e7 100644 --- a/hardware/server/cisco/ucs/mode/components/blade.pm +++ b/hardware/server/cisco/ucs/mode/components/blade.pm @@ -57,17 +57,23 @@ sub check { next if ($self->absent_problem(section => 'blade', instance => $blade_dn)); next if ($self->check_filter(section => 'blade', instance => $blade_dn)); - $self->{output}->output_add(long_msg => sprintf("blade '%s' state is '%s' [presence: %s].", - $blade_dn, $result2->{cucsComputeBladeOperState}, - $result->{cucsComputeBladePresence}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "blade '%s' state is '%s' [presence: %s].", + $blade_dn, $result2->{cucsComputeBladeOperState}, + $result->{cucsComputeBladePresence} + ) + ); my $exit = $self->get_severity(section => 'blade.presence', label => 'default.presence', value => $result->{cucsComputeBladePresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("blade '%s' presence is: '%s'", - $blade_dn, $result->{cucsComputeBladePresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "blade '%s' presence is: '%s'", + $blade_dn, $result->{cucsComputeBladePresence} + ) + ); next; } @@ -75,11 +81,13 @@ sub check { $exit = $self->get_severity(section => 'blade.overall_status', label => 'default.overall_status', value => $result2->{cucsComputeBladeOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("blade '%s' state is '%s'", - $blade_dn, $result2->{cucsComputeBladeOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "blade '%s' state is '%s'", + $blade_dn, $result2->{cucsComputeBladeOperState} + ) + ); } } } diff --git a/hardware/server/cisco/ucs/mode/components/chassis.pm b/hardware/server/cisco/ucs/mode/components/chassis.pm index a32437ddb..4c15b071d 100644 --- a/hardware/server/cisco/ucs/mode/components/chassis.pm +++ b/hardware/server/cisco/ucs/mode/components/chassis.pm @@ -56,16 +56,21 @@ sub check { $self->{components}->{chassis}->{total}++; - $self->{output}->output_add(long_msg => sprintf("chassis '%s' state is '%s'.", - $chassis_dn, $result->{cucsEquipmentChassisOperState}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "chassis '%s' state is '%s'.", + $chassis_dn, $result->{cucsEquipmentChassisOperState} + ) + ); my $exit = $self->get_severity(section => 'chassis.operability', label => 'default.operability', value => $result->{cucsEquipmentChassisOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("chassis '%s' state is '%s'", - $chassis_dn, $result->{cucsEquipmentChassisOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "chassis '%s' state is '%s'", + $chassis_dn, $result->{cucsEquipmentChassisOperState} + ) + ); } } } diff --git a/hardware/server/cisco/ucs/mode/components/cpu.pm b/hardware/server/cisco/ucs/mode/components/cpu.pm index cde6c365e..5084df4f3 100644 --- a/hardware/server/cisco/ucs/mode/components/cpu.pm +++ b/hardware/server/cisco/ucs/mode/components/cpu.pm @@ -57,31 +57,39 @@ sub check { next if ($self->absent_problem(section => 'cpu', instance => $cpu_dn)); next if ($self->check_filter(section => 'cpu', instance => $cpu_dn)); - $self->{output}->output_add(long_msg => sprintf("cpu '%s' state is '%s' [presence: %s].", - $cpu_dn, $result2->{cucsProcessorUnitOperState}, - $result->{cucsProcessorUnitPresence}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "cpu '%s' state is '%s' [presence: %s].", + $cpu_dn, $result2->{cucsProcessorUnitOperState}, + $result->{cucsProcessorUnitPresence} + ) + ); my $exit = $self->get_severity(section => 'cpu.presence', label => 'default.presence', value => $result->{cucsProcessorUnitPresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("cpu '%s' presence is: '%s'", - $cpu_dn, $result->{cucsProcessorUnitPresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "cpu '%s' presence is: '%s'", + $cpu_dn, $result->{cucsProcessorUnitPresence} + ) + ); next; } - + $self->{components}->{cpu}->{total}++; $exit = $self->get_severity(section => 'cpu.operability', label => 'default.operability', value => $result2->{cucsProcessorUnitOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("cpu '%s' state is '%s'", - $cpu_dn, $result2->{cucsProcessorUnitOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "cpu '%s' state is '%s'", + $cpu_dn, $result2->{cucsProcessorUnitOperState} + ) + ); } } } -1; \ No newline at end of file +1; diff --git a/hardware/server/cisco/ucs/mode/components/fan.pm b/hardware/server/cisco/ucs/mode/components/fan.pm index c158ef665..485f8de48 100644 --- a/hardware/server/cisco/ucs/mode/components/fan.pm +++ b/hardware/server/cisco/ucs/mode/components/fan.pm @@ -57,17 +57,23 @@ sub check { next if ($self->absent_problem(section => 'fan', instance => $fan_dn)); next if ($self->check_filter(section => 'fan', instance => $fan_dn)); - $self->{output}->output_add(long_msg => sprintf("fan '%s' state is '%s' [presence: %s].", - $fan_dn, $result2->{cucsEquipmentFanOperState}, - $result->{cucsEquipmentFanPresence}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "fan '%s' state is '%s' [presence: %s].", + $fan_dn, $result2->{cucsEquipmentFanOperState}, + $result->{cucsEquipmentFanPresence} + ) + ); my $exit = $self->get_severity(section => 'fan.presence', label => 'default.presence', value => $result->{cucsEquipmentFanPresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("fan '%s' presence is: '%s'", - $fan_dn, $result->{cucsEquipmentFanPresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "fan '%s' presence is: '%s'", + $fan_dn, $result->{cucsEquipmentFanPresence} + ) + ); next; } @@ -75,13 +81,15 @@ sub check { $exit = $self->get_severity(section => 'fan.operability', label => 'default.operability', value => $result2->{cucsEquipmentFanOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("fan '%s' state is '%s'", - $fan_dn, $result2->{cucsEquipmentFanOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "fan '%s' state is '%s'", + $fan_dn, $result2->{cucsEquipmentFanOperState} + ) + ); } } } -1; \ No newline at end of file +1; diff --git a/hardware/server/cisco/ucs/mode/components/fex.pm b/hardware/server/cisco/ucs/mode/components/fex.pm index 66b249705..d09f778cb 100644 --- a/hardware/server/cisco/ucs/mode/components/fex.pm +++ b/hardware/server/cisco/ucs/mode/components/fex.pm @@ -57,29 +57,37 @@ sub check { next if ($self->absent_problem(section => 'fex', instance => $fex_dn)); next if ($self->check_filter(section => 'fex', instance => $fex_dn)); - $self->{output}->output_add(long_msg => sprintf("Fabric extender '%s' state is '%s' [presence: %s].", - $fex_dn, $result2->{cucsEquipmentFexOperState}, - $result->{cucsEquipmentFexPresence}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "Fabric extender '%s' state is '%s' [presence: %s].", + $fex_dn, $result2->{cucsEquipmentFexOperState}, + $result->{cucsEquipmentFexPresence} + ) + ); my $exit = $self->get_severity(section => 'fex.presence', label => 'default.presence', value => $result->{cucsEquipmentFexPresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Fabric extender '%s' presence is: '%s'", - $fex_dn, $result->{cucsEquipmentFexPresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "Fabric extender '%s' presence is: '%s'", + $fex_dn, $result->{cucsEquipmentFexPresence} + ) + ); next; } - + $self->{components}->{fex}->{total}++; $exit = $self->get_severity(section => 'fex.presence', label => 'default.operability', value => $result2->{cucsEquipmentFexOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Fabric extender '%s' state is '%s'.", - $fex_dn, $result2->{cucsEquipmentFexOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "Fabric extender '%s' state is '%s'.", + $fex_dn, $result2->{cucsEquipmentFexOperState} + ) + ); } } } diff --git a/hardware/server/cisco/ucs/mode/components/iocard.pm b/hardware/server/cisco/ucs/mode/components/iocard.pm index e79e10cac..cd65501f6 100644 --- a/hardware/server/cisco/ucs/mode/components/iocard.pm +++ b/hardware/server/cisco/ucs/mode/components/iocard.pm @@ -58,29 +58,37 @@ sub check { next if ($self->absent_problem(section => 'iocard', instance => $iocard_dn)); next if ($self->check_filter(section => 'iocard', instance => $iocard_dn)); - $self->{output}->output_add(long_msg => sprintf("IO cards '%s' state is '%s' [presence: %s].", - $iocard_dn, $result2->{cucsEquipmentIOCardOperState}, - $result->{cucsEquipmentIOCardPresence}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "IO cards '%s' state is '%s' [presence: %s].", + $iocard_dn, $result2->{cucsEquipmentIOCardOperState}, + $result->{cucsEquipmentIOCardPresence} + ) + ); my $exit = $self->get_severity(section => 'iocard.presence', label => 'default.presence', value => $result->{cucsEquipmentIOCardPresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("IO cards '%s' presence is: '%s'", - $iocard_dn, $result->{cucsEquipmentIOCardPresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "IO cards '%s' presence is: '%s'", + $iocard_dn, $result->{cucsEquipmentIOCardPresence} + ) + ); next; } - + $self->{components}->{iocard}->{total}++; $exit = $self->get_severity(section => 'iocard.operability', label => 'default.operability', value => $result2->{cucsEquipmentIOCardOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("IO cards '%s' state is '%s'.", - $iocard_dn, $result2->{cucsEquipmentIOCardOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "IO cards '%s' state is '%s'.", + $iocard_dn, $result2->{cucsEquipmentIOCardOperState} + ) + ); } } } diff --git a/hardware/server/cisco/ucs/mode/components/localdisk.pm b/hardware/server/cisco/ucs/mode/components/localdisk.pm index 45e0c559c..8786ec47d 100644 --- a/hardware/server/cisco/ucs/mode/components/localdisk.pm +++ b/hardware/server/cisco/ucs/mode/components/localdisk.pm @@ -35,7 +35,7 @@ my $oid_cucsStorageLocalDiskDn = '.1.3.6.1.4.1.9.9.719.1.45.4.1.2'; sub load { my ($self) = @_; - + push @{$self->{request}}, { oid => $mapping1->{cucsStorageLocalDiskPresence}->{oid} }, { oid => $mapping2->{cucsStorageLocalDiskOperability}->{oid} }, { oid => $oid_cucsStorageLocalDiskDn }; } @@ -53,35 +53,42 @@ sub check { my $localdisk_dn = $self->{results}->{$oid_cucsStorageLocalDiskDn}->{$oid}; my $result = $self->{snmp}->map_instance(mapping => $mapping1, results => $self->{results}->{$mapping1->{cucsStorageLocalDiskPresence}->{oid}}, instance => $instance); my $result2 = $self->{snmp}->map_instance(mapping => $mapping2, results => $self->{results}->{$mapping2->{cucsStorageLocalDiskOperability}->{oid}}, instance => $instance); - + next if ($self->absent_problem(section => 'localdisk', instance => $localdisk_dn)); next if ($self->check_filter(section => 'localdisk', instance => $localdisk_dn)); - $self->{output}->output_add(long_msg => sprintf("local disk '%s' state is '%s' [presence: %s].", - $localdisk_dn, $result2->{cucsStorageLocalDiskOperability}, - $result->{cucsStorageLocalDiskPresence}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "local disk '%s' state is '%s' [presence: %s].", + $localdisk_dn, $result2->{cucsStorageLocalDiskOperability}, + $result->{cucsStorageLocalDiskPresence} + ) + ); my $exit = $self->get_severity(section => 'localdisk.presence', label => 'default.presence', value => $result->{cucsStorageLocalDiskPresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("local disk '%s' presence is: '%s'", - $localdisk_dn, $result->{cucsStorageLocalDiskPresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "local disk '%s' presence is: '%s'", + $localdisk_dn, $result->{cucsStorageLocalDiskPresence}) + ); next; } - + $self->{components}->{localdisk}->{total}++; $exit = $self->get_severity(section => 'localdisk.operability', label => 'default.operability', value => $result2->{cucsStorageLocalDiskOperability}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("local disk '%s' state is '%s'", - $localdisk_dn, $result2->{cucsStorageLocalDiskOperability} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "local disk '%s' state is '%s'", + $localdisk_dn, $result2->{cucsStorageLocalDiskOperability} + ) + ); } } } -1; \ No newline at end of file +1; diff --git a/hardware/server/cisco/ucs/mode/components/memory.pm b/hardware/server/cisco/ucs/mode/components/memory.pm index 3535e329b..a4956a427 100644 --- a/hardware/server/cisco/ucs/mode/components/memory.pm +++ b/hardware/server/cisco/ucs/mode/components/memory.pm @@ -58,17 +58,23 @@ sub check { next if ($self->absent_problem(section => 'memory', instance => $memory_dn)); next if ($self->check_filter(section => 'memory', instance => $memory_dn)); - $self->{output}->output_add(long_msg => sprintf("memory '%s' state is '%s' [presence: %s].", - $memory_dn, $result2->{cucsMemoryUnitOperState}, - $result->{cucsMemoryUnitPresence}) - ); + $self->{output}->output_add( + long_msg => sprintf( + "memory '%s' state is '%s' [presence: %s].", + $memory_dn, $result2->{cucsMemoryUnitOperState}, + $result->{cucsMemoryUnitPresence} + ) + ); my $exit = $self->get_severity(section => 'memory.presence', label => 'default.presence', value => $result->{cucsMemoryUnitPresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("memory '%s' presence is: '%s'", - $memory_dn, $result->{cucsMemoryUnitPresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "memory '%s' presence is: '%s'", + $memory_dn, $result->{cucsMemoryUnitPresence} + ) + ); next; } @@ -76,13 +82,15 @@ sub check { $exit = $self->get_severity(section => 'memory.operability', label => 'default.operability', value => $result2->{cucsMemoryUnitOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("memory '%s' state is '%s'", - $memory_dn, $result2->{cucsMemoryUnitOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "memory '%s' state is '%s'", + $memory_dn, $result2->{cucsMemoryUnitOperState} + ) + ); } } } -1; \ No newline at end of file +1; diff --git a/hardware/server/cisco/ucs/mode/components/psu.pm b/hardware/server/cisco/ucs/mode/components/psu.pm index 5ae4dd97b..e5f46129b 100644 --- a/hardware/server/cisco/ucs/mode/components/psu.pm +++ b/hardware/server/cisco/ucs/mode/components/psu.pm @@ -58,29 +58,37 @@ sub check { next if ($self->absent_problem(section => 'psu', instance => $psu_dn)); next if ($self->check_filter(section => 'psu', instance => $psu_dn)); - $self->{output}->output_add(long_msg => sprintf("power supply '%s' state is '%s' [presence: %s].", - $psu_dn, $result2->{cucsEquipmentPsuOperState}, - $result->{cucsEquipmentPsuPresence}) - ); - + $self->{output}->output_add( + long_msg => sprintf( + "power supply '%s' state is '%s' [presence: %s].", + $psu_dn, $result2->{cucsEquipmentPsuOperState}, + $result->{cucsEquipmentPsuPresence} + ) + ); + my $exit = $self->get_severity(section => 'psu.presence', label => 'default.presence', value => $result->{cucsEquipmentPsuPresence}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("power supply '%s' presence is: '%s'", - $psu_dn, $result->{cucsEquipmentPsuPresence}) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "power supply '%s' presence is: '%s'", + $psu_dn, $result->{cucsEquipmentPsuPresence} + ) + ); next; } - + $self->{components}->{psu}->{total}++; $exit = $self->get_severity(section => 'psu.operability', label => 'default.operability', value => $result2->{cucsEquipmentPsuOperState}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { - $self->{output}->output_add(severity => $exit, - short_msg => sprintf("power supply '%s' state is '%s'.", - $psu_dn, $result2->{cucsEquipmentPsuOperState} - ) - ); + $self->{output}->output_add( + severity => $exit, + short_msg => sprintf( + "power supply '%s' state is '%s'.", + $psu_dn, $result2->{cucsEquipmentPsuOperState} + ) + ); } } } diff --git a/hardware/server/cisco/ucs/mode/equipment.pm b/hardware/server/cisco/ucs/mode/equipment.pm index 6bfdd4c56..9ee1ee1b1 100644 --- a/hardware/server/cisco/ucs/mode/equipment.pm +++ b/hardware/server/cisco/ucs/mode/equipment.pm @@ -28,20 +28,20 @@ use hardware::server::cisco::ucs::mode::components::resources qw($thresholds); sub set_system { my ($self, %options) = @_; - + $self->{regexp_threshold_overload_check_section_option} = '^(fan|psu|chassis|iocard|blade|fex|cpu|memory|localdisk)\.(presence|operability|overall_status)$'; - + $self->{cb_hook2} = 'snmp_execute'; - + $self->{thresholds} = $thresholds; - + $self->{components_path} = 'hardware::server::cisco::ucs::mode::components'; $self->{components_module} = ['fan', 'psu', 'chassis', 'iocard', 'blade', 'fex', 'cpu', 'memory', 'localdisk']; } sub snmp_execute { my ($self, %options) = @_; - + $self->{snmp} = $options{snmp}; $self->{results} = $self->{snmp}->get_multiple_table(oids => $self->{request}); } @@ -50,10 +50,9 @@ sub new { my ($class, %options) = @_; my $self = $class->SUPER::new(package => __PACKAGE__, %options, no_performance => 1); bless $self, $class; - - $options{options}->add_options(arguments => - { - }); + + $options{options}->add_options(arguments => { + }); return $self; } @@ -97,4 +96,3 @@ Example: --threshold-overload='fan.operability,OK,poweredOff|removed' =back =cut -