+ mode cisco ipsla : add tag name in cache file name
This commit is contained in:
parent
d9cf33e55e
commit
b79fc7e784
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue