mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
(plugin) storage::netapp::ontap::restapi - mode hardware missing disk state (#4298)
This commit is contained in:
parent
9b81c0c8d6
commit
a0e9c3fe06
@ -39,6 +39,9 @@ sub check {
|
||||
foreach my $disk (@{$disks->{records}}) {
|
||||
next if ($self->check_filter(section => 'disk', instance => $disk->{name}));
|
||||
|
||||
# state can be missing
|
||||
$disk->{state} = defined($disk->{state}) ? $disk->{state} : 'n/a';
|
||||
|
||||
$self->{components}->{disk}->{total}++;
|
||||
$self->{output}->output_add(
|
||||
long_msg => sprintf(
|
||||
|
@ -46,7 +46,8 @@ sub set_system {
|
||||
['removed', 'OK'],
|
||||
['spare', 'OK'],
|
||||
['unfail', 'OK'],
|
||||
['zeroing', 'OK']
|
||||
['zeroing', 'OK'],
|
||||
['n/a', 'OK']
|
||||
]
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user