From 36dbed7ac1669c450cf8a72939aa7c26d7f31c0f Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 9 Jun 2021 15:09:46 +0200 Subject: [PATCH] fix(junos/snmp): hardware mode - wrong help (#2862) --- .../juniper/common/junos/mode/hardware.pm | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/centreon-plugins/network/juniper/common/junos/mode/hardware.pm b/centreon-plugins/network/juniper/common/junos/mode/hardware.pm index de3bd1fe9..580362bd3 100644 --- a/centreon-plugins/network/juniper/common/junos/mode/hardware.pm +++ b/centreon-plugins/network/juniper/common/junos/mode/hardware.pm @@ -46,7 +46,7 @@ sub set_system { ['offline', 'CRITICAL'], ['diagnostic', 'WARNING'], ['standby', 'WARNING'], - ['empty', 'OK'], + ['empty', 'OK'] ], operating => [ ['runningAtFullSpeed', 'WARNING'], @@ -55,13 +55,13 @@ sub set_system { ['ready', 'OK'], ['reset', 'WARNING'], ['down', 'CRITICAL'], - ['standby', 'OK'], + ['standby', 'OK'] ], alarm => [ ['other', 'OK'], ['off', 'OK'], - ['on', 'CRITICAL'], - ], + ['on', 'CRITICAL'] + ] }; $self->{components_path} = 'network::juniper::common::junos::mode::components'; @@ -174,8 +174,9 @@ sub load_components { foreach (@{$self->{components_module}}) { if (/$self->{option_results}->{component}/) { my $mod_name = $self->{components_path} . "::$_"; - centreon::plugins::misc::mymodule_load(output => $self->{output}, module => $mod_name, - error_msg => "Cannot load module '$mod_name'.") if ($self->{load_components} == 1); + centreon::plugins::misc::mymodule_load( + output => $self->{output}, module => $mod_name, + error_msg => "Cannot load module '$mod_name'.") if ($self->{load_components} == 1); $self->{loaded} = 1; } } @@ -235,13 +236,13 @@ Example: --threshold-overload='operating,CRITICAL,^(?!(running)$)' =item B<--warning> -Set warning threshold for fru temperatures (syntax: type,regexp,threshold) -Example: --warning='fru-temperature,.*,30' +Set warning threshold (syntax: type,regexp,threshold) +Example: --warning='operating-temperature,.*,30' =item B<--critical> -Set critical threshold for fru temperatures (syntax: type,regexp,threshold) -Example: --critical='fru-temperature,.*,40' +Set critical threshold (syntax: type,regexp,threshold) +Example: --critical='operating-temperature,.*,40' =item B<--reload-cache-time>