From 0158162ae4fcba3749d7071e1b889e0151904216 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 30 Nov 2016 17:19:06 +0100 Subject: [PATCH] + update cache name --- centreon-plugins/network/cisco/prime/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/network/cisco/prime/restapi/custom/api.pm b/centreon-plugins/network/cisco/prime/restapi/custom/api.pm index b2604b23e..e4b35444a 100644 --- a/centreon-plugins/network/cisco/prime/restapi/custom/api.pm +++ b/centreon-plugins/network/cisco/prime/restapi/custom/api.pm @@ -138,7 +138,7 @@ sub settings { sub cache_ap { my ($self, %options) = @_; - my $has_cache_file = $options{statefile}->read(statefile => 'cache_cisco_prime_' . $self->{hostname} . '_' . $self->{port}); + my $has_cache_file = $options{statefile}->read(statefile => 'cache_cisco_prime_accesspoint_' . $self->{hostname} . '_' . $self->{port}); my $timestamp_cache = $options{statefile}->get(name => 'last_timestamp'); my $ap = $options{statefile}->get(name => 'ap'); if ($has_cache_file == 0 || !defined($timestamp_cache) || ((time() - $timestamp_cache) > (($options{reload_cache_time}) * 60))) {