mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 14:44:43 +02:00
+ Good netapp mode disk message
This commit is contained in:
parent
4f009fe338
commit
23029aa41d
@ -71,8 +71,9 @@ sub run {
|
|||||||
short_msg => 'Disks are ok.');
|
short_msg => 'Disks are ok.');
|
||||||
if ($result->{$oid_diskFailedCount} != 0) {
|
if ($result->{$oid_diskFailedCount} != 0) {
|
||||||
$self->{output}->output_add(severity => 'CRITICAL',
|
$self->{output}->output_add(severity => 'CRITICAL',
|
||||||
short_msg => sprintf("'%d' fans are failed [message: %s].",
|
short_msg => sprintf("'%d' disks are failed [message: %s].",
|
||||||
$result->{$oid_diskFailedCount}, $result->{$oid_diskFailedMessage}));
|
$result->{$oid_diskFailedCount},
|
||||||
|
defined($result->{$oid_diskFailedMessage}) ? $result->{$oid_diskFailedMessage} : '-'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{output}->perfdata_add(label => 'failed',
|
$self->{output}->perfdata_add(label => 'failed',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user