enhance alcatel isam
This commit is contained in:
parent
961a52bc33
commit
b2ff97e1bd
|
@ -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;
|
||||
1;
|
||||
|
|
|
@ -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
|
||||
=cut
|
||||
|
|
Loading…
Reference in New Issue