mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 02:48:28 +00:00
Fixing Evictions Stats Key Collision
This commit is contained in:
parent
503c2a0d73
commit
281bd584c4
1 changed files with 3 additions and 0 deletions
|
@ -810,6 +810,9 @@ sub fetch_stats {
|
||||||
while (my $line = <$s>) {
|
while (my $line = <$s>) {
|
||||||
if ($line =~ /STAT\s(.+?)\s(.*)/) {
|
if ($line =~ /STAT\s(.+?)\s(.*)/) {
|
||||||
my ($skey,$svalue) = ($1,$2);
|
my ($skey,$svalue) = ($1,$2);
|
||||||
|
if ($skey eq 'evictions') {
|
||||||
|
$skey = 'evictions_active';
|
||||||
|
}
|
||||||
$stats{$skey} = $svalue;
|
$stats{$skey} = $svalue;
|
||||||
}
|
}
|
||||||
last if $line =~ /^END/;
|
last if $line =~ /^END/;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue