fix(junos/snmp): hardware mode - wrong help (#2862)

This commit is contained in:
qgarnier 2021-06-09 15:09:46 +02:00 committed by GitHub
parent 2b9ebf3bc9
commit 36dbed7ac1
1 changed files with 11 additions and 10 deletions

View File

@ -46,7 +46,7 @@ sub set_system {
['offline', 'CRITICAL'], ['offline', 'CRITICAL'],
['diagnostic', 'WARNING'], ['diagnostic', 'WARNING'],
['standby', 'WARNING'], ['standby', 'WARNING'],
['empty', 'OK'], ['empty', 'OK']
], ],
operating => [ operating => [
['runningAtFullSpeed', 'WARNING'], ['runningAtFullSpeed', 'WARNING'],
@ -55,13 +55,13 @@ sub set_system {
['ready', 'OK'], ['ready', 'OK'],
['reset', 'WARNING'], ['reset', 'WARNING'],
['down', 'CRITICAL'], ['down', 'CRITICAL'],
['standby', 'OK'], ['standby', 'OK']
], ],
alarm => [ alarm => [
['other', 'OK'], ['other', 'OK'],
['off', 'OK'], ['off', 'OK'],
['on', 'CRITICAL'], ['on', 'CRITICAL']
], ]
}; };
$self->{components_path} = 'network::juniper::common::junos::mode::components'; $self->{components_path} = 'network::juniper::common::junos::mode::components';
@ -174,8 +174,9 @@ sub load_components {
foreach (@{$self->{components_module}}) { foreach (@{$self->{components_module}}) {
if (/$self->{option_results}->{component}/) { if (/$self->{option_results}->{component}/) {
my $mod_name = $self->{components_path} . "::$_"; my $mod_name = $self->{components_path} . "::$_";
centreon::plugins::misc::mymodule_load(output => $self->{output}, module => $mod_name, centreon::plugins::misc::mymodule_load(
error_msg => "Cannot load module '$mod_name'.") if ($self->{load_components} == 1); output => $self->{output}, module => $mod_name,
error_msg => "Cannot load module '$mod_name'.") if ($self->{load_components} == 1);
$self->{loaded} = 1; $self->{loaded} = 1;
} }
} }
@ -235,13 +236,13 @@ Example: --threshold-overload='operating,CRITICAL,^(?!(running)$)'
=item B<--warning> =item B<--warning>
Set warning threshold for fru temperatures (syntax: type,regexp,threshold) Set warning threshold (syntax: type,regexp,threshold)
Example: --warning='fru-temperature,.*,30' Example: --warning='operating-temperature,.*,30'
=item B<--critical> =item B<--critical>
Set critical threshold for fru temperatures (syntax: type,regexp,threshold) Set critical threshold (syntax: type,regexp,threshold)
Example: --critical='fru-temperature,.*,40' Example: --critical='operating-temperature,.*,40'
=item B<--reload-cache-time> =item B<--reload-cache-time>