mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Revert "nginx_byprojects: use more compatible perl expression"
This reverts commit a836f07d56
.
Closes: #922
This commit is contained in:
parent
b35840c5d0
commit
15d05f30c1
@ -38,7 +38,7 @@ my $statepath = $ENV{MUNIN_PLUGSTATE};
|
||||
my $logtail = $ENV{logtail_path} || '/usr/local/bin/logtail';
|
||||
|
||||
my @loglist = grep {$_ =~ /site\./} keys(%ENV);
|
||||
my %envLogs = $ENV{@loglist};
|
||||
my %envLogs = %ENV{@loglist};
|
||||
my %logs;
|
||||
while(my($k, $v) = each %envLogs) { @logs{substr($k, 5)} = decode_json($v); }
|
||||
|
||||
|
@ -44,7 +44,7 @@ my $statepath = $ENV{MUNIN_PLUGSTATE};
|
||||
my $logtail = $ENV{logtail_path} || '/usr/local/bin/logtail';
|
||||
|
||||
my @loglist = grep {$_ =~ /site\./} keys(%ENV);
|
||||
my %envLogs = $ENV{@loglist};
|
||||
my %envLogs = %ENV{@loglist};
|
||||
my %logs;
|
||||
while(my($k, $v) = each %envLogs) { @logs{substr($k, 5)} = decode_json($v); }
|
||||
|
||||
|
@ -44,7 +44,7 @@ my $statepath = $ENV{MUNIN_PLUGSTATE};
|
||||
my $logtail = $ENV{logtail_path} || '/usr/local/bin/logtail';
|
||||
|
||||
my @loglist = grep {$_ =~ /site\./} keys(%ENV);
|
||||
my %envLogs = $ENV{@loglist};
|
||||
my %envLogs = %ENV{@loglist};
|
||||
my %logs;
|
||||
while(my($k, $v) = each %envLogs) { @logs{substr($k, 5)} = decode_json($v); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user