+ good fix... sorry
This commit is contained in:
parent
641d26814e
commit
8ecb80d575
|
@ -55,7 +55,7 @@ sub check {
|
||||||
|
|
||||||
$self->{output}->output_add(long_msg => sprintf("enclosure temperature '%s' status is '%s' [instance = %s] [value = %s]",
|
$self->{output}->output_add(long_msg => sprintf("enclosure temperature '%s' status is '%s' [instance = %s] [value = %s]",
|
||||||
$result->{scEnclTempLocation}, $result->{scEnclTempStatus}, $instance,
|
$result->{scEnclTempLocation}, $result->{scEnclTempStatus}, $instance,
|
||||||
defined($result->{scEnclTempCurrentC}) ? $result->{scEnclTempCurrentC} : '-');
|
defined($result->{scEnclTempCurrentC}) ? $result->{scEnclTempCurrentC} : '-'));
|
||||||
|
|
||||||
my $exit = $self->get_severity(label => 'default', section => 'encltemp', value => $result->{scEnclTempStatus});
|
my $exit = $self->get_severity(label => 'default', section => 'encltemp', value => $result->{scEnclTempStatus});
|
||||||
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
||||||
|
|
Loading…
Reference in New Issue