From f32e1a370711612c7c72524a734f574b3644e069 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 17 Mar 2017 13:32:56 +0100 Subject: [PATCH] + Fix watchguard policyusage --- network/watchguard/snmp/mode/policyusage.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network/watchguard/snmp/mode/policyusage.pm b/network/watchguard/snmp/mode/policyusage.pm index 2244262f4..8876f555a 100644 --- a/network/watchguard/snmp/mode/policyusage.pm +++ b/network/watchguard/snmp/mode/policyusage.pm @@ -139,8 +139,9 @@ sub manage_selection { $self->{output}->option_exit(); } - $self->{cache_name} = "kemp_" . $self->{mode} . '_' . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' . - (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')); + $self->{cache_name} = "watchguard_" . $self->{mode} . '_' . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' . + (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')) . '_' . + (defined($self->{option_results}->{wgPolicyName}) ? md5_hex($self->{option_results}->{wgPolicyName}) : md5_hex('all')); } 1;