From 410ba42c0982ae3b5258835b44f380489d36c377 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 19 Dec 2017 11:56:04 +0100 Subject: [PATCH] finished pure storage restapi --- storage/purestorage/restapi/mode/hardware.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/purestorage/restapi/mode/hardware.pm b/storage/purestorage/restapi/mode/hardware.pm index fc95843d3..6c2f4755d 100644 --- a/storage/purestorage/restapi/mode/hardware.pm +++ b/storage/purestorage/restapi/mode/hardware.pm @@ -99,12 +99,12 @@ Example: --threshold-overload='entity,OK,device_off' =item B<--warning> -Set warning threshold for 'temperature', 'fan' (syntax: type,regexp,threshold) +Set warning threshold for 'temperature' (syntax: type,regexp,threshold) Example: --warning='temperature,.*,40' =item B<--critical> -Set critical threshold for 'temperature', 'fan' (syntax: type,regexp,threshold) +Set critical threshold for 'temperature' (syntax: type,regexp,threshold) Example: --critical='temperature,.*,50' =back @@ -135,7 +135,7 @@ sub check { next if ($self->check_filter(section => 'entity', instance => $instance)); - $self->{components}->{fan}->{total}++; + $self->{components}->{entity}->{total}++; $self->{output}->output_add(long_msg => sprintf("entity '%s' status is '%s' [instance = %s]", $entry->{name}, $entry->{status}, $instance)); my $exit = $self->get_severity(section => 'entity', value => $entry->{status});