mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
fix the bird plugin to work with perl 5.28
This commit is contained in:
parent
375d3643ec
commit
4a25b7de16
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ sub get_stats {
|
||||||
) or die $!;
|
) or die $!;
|
||||||
|
|
||||||
my ($protocol,$name);
|
my ($protocol,$name);
|
||||||
while (<$bird_ctl>) {
|
while (my $var = <$bird_ctl>) {
|
||||||
given($_) {
|
given($var) {
|
||||||
when (/1002-(\w+)\s+(\w+)\s+.*/) {
|
when (/1002-(\w+)\s+(\w+)\s+.*/) {
|
||||||
($name, $protocol) = ($1,$2);
|
($name, $protocol) = ($1,$2);
|
||||||
next unless $protocol ~~ $protocols;
|
next unless $protocol ~~ $protocols;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue