mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
Fix #5410
This commit is contained in:
parent
8bfab88662
commit
f07977875a
@ -39,6 +39,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my %conditions = (
|
my %conditions = (
|
||||||
|
0 => ['other', 'UNKNOWN'], # maybe on standby mode only!!
|
||||||
1 => ['other', 'CRITICAL'],
|
1 => ['other', 'CRITICAL'],
|
||||||
2 => ['ok', 'OK'],
|
2 => ['ok', 'OK'],
|
||||||
3 => ['degraded', 'WARNING'],
|
3 => ['degraded', 'WARNING'],
|
||||||
@ -90,7 +91,7 @@ sub check {
|
|||||||
$self->{output}->output_add(long_msg => sprintf("Enclosure management module %d is %s, status is %s [serial: %s, part: %s, spare: %s].",
|
$self->{output}->output_add(long_msg => sprintf("Enclosure management module %d is %s, status is %s [serial: %s, part: %s, spare: %s].",
|
||||||
$instance, ${$conditions{$man_condition}}[0], $map_role{$man_role},
|
$instance, ${$conditions{$man_condition}}[0], $map_role{$man_role},
|
||||||
$man_serial, $man_part, $man_spare));
|
$man_serial, $man_part, $man_spare));
|
||||||
if ($man_condition != 2) {
|
if ($man_role == 2 && $man_condition != 2) {
|
||||||
$self->{output}->output_add(severity => ${$conditions{$man_condition}}[1],
|
$self->{output}->output_add(severity => ${$conditions{$man_condition}}[1],
|
||||||
short_msg => sprintf("Enclosure management module %d is %s, status is %s",
|
short_msg => sprintf("Enclosure management module %d is %s, status is %s",
|
||||||
$instance, ${$conditions{$man_condition}}[0], $map_role{$man_role}));
|
$instance, ${$conditions{$man_condition}}[0], $map_role{$man_role}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user