From 62f8379350329926cdaa8aeb7e0d0ee22c68c41e Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 7 May 2020 08:58:47 +0200 Subject: [PATCH] fix typo --- storage/netapp/santricity/restapi/mode/hardware.pm | 4 ++-- storage/netapp/santricity/restapi/mode/storagevolumes.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/netapp/santricity/restapi/mode/hardware.pm b/storage/netapp/santricity/restapi/mode/hardware.pm index fd025d731..0fb65c47c 100644 --- a/storage/netapp/santricity/restapi/mode/hardware.pm +++ b/storage/netapp/santricity/restapi/mode/hardware.pm @@ -48,7 +48,7 @@ sub set_system { ['overtemp', ''], ['expired', 'WARNING'], ['maintenanceCharging', 'OK'], - ['replacementRequired', 'CRTICICAL'] + ['replacementRequired', 'CRITICAL'] ], board => [ ['unknown', 'UNKNOWN'], @@ -78,7 +78,7 @@ sub set_system { ['optimal', 'OK'], ['failed', 'CRITICAL'], ['removed', 'OK'], - ['rpaParErr', 'WAARNING'], + ['rpaParErr', 'WARNING'], ['serviceMode', 'OK'], ['suspended', 'OK'], ['degraded', 'WARNING'] diff --git a/storage/netapp/santricity/restapi/mode/storagevolumes.pm b/storage/netapp/santricity/restapi/mode/storagevolumes.pm index 92a7df658..a3cac70db 100644 --- a/storage/netapp/santricity/restapi/mode/storagevolumes.pm +++ b/storage/netapp/santricity/restapi/mode/storagevolumes.pm @@ -80,7 +80,7 @@ sub set_counters { ]; $self->{maps_counters}->{volumes} = [ - { label => 'status', threshold => 0, set => { + { label => 'volume-status', threshold => 0, set => { key_values => [ { name => 'status' }, { name => 'display' } ], closure_custom_calc => \&catalog_status_calc, closure_custom_output => $self->can('custom_status_output'), @@ -99,7 +99,7 @@ sub new { $options{options}->add_options(arguments => { 'filter-storage-name:s' => { name => 'filter_storage_name' }, 'filter-volume-name:s' => { name => 'filter_volume_name' }, - 'unknown-volyme-status:s' => { name => 'unknown_volume_status', default => '' }, + 'unknown-volume-status:s' => { name => 'unknown_volume_status', default => '' }, 'warning-volume-status:s' => { name => 'warning_volume_status', default => '%{status} =~ /degraded/i' }, 'critical-volume-status:s' => { name => 'critical_volume_status', default => '%{status} =~ /failed/i' } });