+ mode cisco ipsla : add tag name in cache file name

This commit is contained in:
garnier-quentin 2015-12-21 10:42:32 +01:00
parent d9cf33e55e
commit b79fc7e784
1 changed files with 3 additions and 1 deletions

View File

@ -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;