mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
add (for real) hash on filter_counter for cache_name
This commit is contained in:
parent
9114ac5d3c
commit
7a97c82ca1
@ -106,7 +106,7 @@ sub manage_selection {
|
|||||||
|
|
||||||
$self->{cache_name} = "cache_varnish_" . $self->{mode} . '_' .
|
$self->{cache_name} = "cache_varnish_" . $self->{mode} . '_' .
|
||||||
(defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')) . '_' .
|
(defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')) . '_' .
|
||||||
(defined($self->{option_results}->{filter_name}) ? md5_hex($self->{option_results}->{filter_name}) : md5_hex('all'));
|
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all'));
|
||||||
|
|
||||||
foreach my $counter (keys %{$json_data}) {
|
foreach my $counter (keys %{$json_data}) {
|
||||||
next if ($counter !~ /cache/);
|
next if ($counter !~ /cache/);
|
||||||
|
@ -129,7 +129,7 @@ sub manage_selection {
|
|||||||
|
|
||||||
$self->{cache_name} = "cache_varnish_" . $self->{mode} . '_' .
|
$self->{cache_name} = "cache_varnish_" . $self->{mode} . '_' .
|
||||||
(defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')) . '_' .
|
(defined($self->{option_results}->{hostname}) ? md5_hex($self->{option_results}->{hostname}) : md5_hex('all')) . '_' .
|
||||||
(defined($self->{option_results}->{filter_name}) ? md5_hex($self->{option_results}->{filter_name}) : md5_hex('all'));
|
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all'));
|
||||||
|
|
||||||
foreach my $counter (keys %{$json_data}) {
|
foreach my $counter (keys %{$json_data}) {
|
||||||
next if ($counter !~ /shm/);
|
next if ($counter !~ /shm/);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user