mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
+ mode cisco ipsla : add tag name in cache file name
This commit is contained in:
parent
9ff526a3fe
commit
eefff10f38
@ -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…
x
Reference in New Issue
Block a user