From 42a23bfe1a6b348fe8b6219e652a59d06ad4bbd8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 9 Sep 2019 14:59:19 +0200 Subject: [PATCH] fix emc unisphere thresholds --- centreon-plugins/storage/emc/unisphere/restapi/mode/pools.pm | 2 +- .../storage/emc/unisphere/restapi/mode/storageresources.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/storage/emc/unisphere/restapi/mode/pools.pm b/centreon-plugins/storage/emc/unisphere/restapi/mode/pools.pm index 5d603a98c..97c128ad6 100644 --- a/centreon-plugins/storage/emc/unisphere/restapi/mode/pools.pm +++ b/centreon-plugins/storage/emc/unisphere/restapi/mode/pools.pm @@ -90,7 +90,7 @@ sub set_counters { } }, { label => 'usage-free', nlabel => 'pool.space.free.bytes', display_ok => 0, set => { - key_values => [ { name => 'used_space' }, { name => 'free_space' }, { name => 'prct_used_space' }, { name => 'prct_free_space' }, { name => 'total_space' }, { name => 'display' }, ], + key_values => [ { name => 'free_space' }, { name => 'used_space' }, { name => 'prct_used_space' }, { name => 'prct_free_space' }, { name => 'total_space' }, { name => 'display' }, ], closure_custom_output => $self->can('custom_usage_output'), perfdatas => [ { value => 'free_space_absolute', template => '%d', min => 0, max => 'total_space_absolute', diff --git a/centreon-plugins/storage/emc/unisphere/restapi/mode/storageresources.pm b/centreon-plugins/storage/emc/unisphere/restapi/mode/storageresources.pm index 6607da547..4dac3db47 100644 --- a/centreon-plugins/storage/emc/unisphere/restapi/mode/storageresources.pm +++ b/centreon-plugins/storage/emc/unisphere/restapi/mode/storageresources.pm @@ -90,7 +90,7 @@ sub set_counters { } }, { label => 'usage-free', nlabel => 'storageresource.space.free.bytes', display_ok => 0, set => { - key_values => [ { name => 'used_space' }, { name => 'free_space' }, { name => 'prct_used_space' }, { name => 'prct_free_space' }, { name => 'total_space' }, { name => 'display' }, ], + key_values => [ { name => 'free_space' }, { name => 'used_space' }, { name => 'prct_used_space' }, { name => 'prct_free_space' }, { name => 'total_space' }, { name => 'display' }, ], closure_custom_output => $self->can('custom_usage_output'), perfdatas => [ { value => 'free_space_absolute', template => '%d', min => 0, max => 'total_space_absolute',