From b79fc7e7842041e823d7f209609005a0e2bec0fa Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 21 Dec 2015 10:42:32 +0100 Subject: [PATCH] + mode cisco ipsla : add tag name in cache file name --- centreon/common/cisco/standard/snmp/mode/ipsla.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/centreon/common/cisco/standard/snmp/mode/ipsla.pm b/centreon/common/cisco/standard/snmp/mode/ipsla.pm index ea4385571..3436d677d 100644 --- a/centreon/common/cisco/standard/snmp/mode/ipsla.pm +++ b/centreon/common/cisco/standard/snmp/mode/ipsla.pm @@ -26,6 +26,7 @@ use strict; use warnings; use centreon::plugins::statefile; use centreon::plugins::values; +use Digest::MD5 qw(md5_hex); use Math::Complex; my $maps_counters = { @@ -868,7 +869,8 @@ sub run { $self->manage_selection(); $self->{new_datas} = {}; - $self->{statefile_value}->read(statefile => "cache_cisco_" . $self->{hostname} . '_' . $self->{snmp_port} . '_' . $self->{mode}); + $self->{statefile_value}->read(statefile => "cache_cisco_" . $self->{hostname} . '_' . $self->{snmp_port} . '_' . $self->{mode} . '_' . + (defined($self->{option_results}->{filter_tag}) ? md5_hex($self->{option_results}->{filter_tag}) : md5_hex('all'))); $self->{new_datas}->{last_timestamp} = time(); my $multiple = 1;