From 90ebe363bb572d06b6489c93bbc70a693dc493d4 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 6 Dec 2017 14:10:46 +0100 Subject: [PATCH] xtremio enhance fix --- .../storage/emc/xtremio/restapi/custom/xtremioapi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/storage/emc/xtremio/restapi/custom/xtremioapi.pm b/centreon-plugins/storage/emc/xtremio/restapi/custom/xtremioapi.pm index c1389aec3..af3ba4ac0 100644 --- a/centreon-plugins/storage/emc/xtremio/restapi/custom/xtremioapi.pm +++ b/centreon-plugins/storage/emc/xtremio/restapi/custom/xtremioapi.pm @@ -133,7 +133,7 @@ sub settings { sub cache_clusters { my ($self, %options) = @_; - my $has_cache_file = $self->{statefile_cache_cluster}->read(statefile => 'cache_xtremio_clusters_' . $self->{hostname} . '_' . $self->{port}); + my $has_cache_file = $self->{statefile_cache_cluster}->read(statefile => 'cache_xtremio_clusters_' . $self->{hostname}); my $timestamp_cache = $self->{statefile_cache_cluster}->get(name => 'last_timestamp'); my $clusters = $self->{statefile_cache_cluster}->get(name => 'clusters'); if ($has_cache_file == 0 || !defined($timestamp_cache) || ((time() - $timestamp_cache) > (($self->{reload_cache_time}) * 60))) {