diff --git a/network/alcatel/isam/snmp/mode/components/sfp.pm b/network/alcatel/isam/snmp/mode/components/sfp.pm index d73020bb9..58ea7f679 100644 --- a/network/alcatel/isam/snmp/mode/components/sfp.pm +++ b/network/alcatel/isam/snmp/mode/components/sfp.pm @@ -71,7 +71,7 @@ sub check { $self->{components}->{sfp}->{total}++; $self->{output}->output_add(long_msg => sprintf("sfp '%s' signal status is '%s' [instance = %s]", $name, $result2->{sfpDiagLOS}, $slot_id . '.' . $sfp_faceplate_num)); - $exit = $self->get_severity(section => 'sfp', value => $result2->{sfpDiagLOS}); + $exit = $self->get_severity(section => 'sfp', instance => $slot_id . '.' . $sfp_faceplate_num, value => $result2->{sfpDiagLOS}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("sfp '%s' signal status is '%s'", $name, $result2->{sfpDiagLOS})); @@ -154,4 +154,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/isam/snmp/mode/hardware.pm b/network/alcatel/isam/snmp/mode/hardware.pm index 0d13abdf0..906cda298 100644 --- a/network/alcatel/isam/snmp/mode/hardware.pm +++ b/network/alcatel/isam/snmp/mode/hardware.pm @@ -97,7 +97,7 @@ If total (with skipped) is 0. (Default: 'critical' returns). Set to overload default threshold values (syntax: section,[instance,]status,regexp) It used before default thresholds (order stays). -Example: --threshold-overload='psu,CRITICAL,^(?!(presentOK)$)' +Example: --threshold-overload='sfp,OK,^los$' =item B<--warning> @@ -111,4 +111,4 @@ Example: --warning='sfp.temperature,1.1,40' =back -=cut \ No newline at end of file +=cut