mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
ignore UNDEF (not really connected) users
This commit is contained in:
parent
d6dcc5d379
commit
f9ec8381b4
@ -51,7 +51,7 @@ sub config {
|
||||
print "out.cdef out,1,*\n";
|
||||
|
||||
while (<FILE>) {
|
||||
next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/);
|
||||
next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/ || $_ =~ /^UNDEF,/);
|
||||
last if ($_ =~ /ROUTING TABLE/);
|
||||
|
||||
# client,IP:port,in,out,D M N hour Y
|
||||
@ -101,7 +101,7 @@ sub report {
|
||||
|
||||
open FILE, $statusfile or die $!;
|
||||
while (<FILE>) {
|
||||
next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/);
|
||||
next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/ || $_ =~ /^UNDEF,/);
|
||||
last if ($_ =~ /ROUTING TABLE/);
|
||||
|
||||
# client,IP:port,in,out,D M N hour Y
|
||||
|
Loading…
Reference in New Issue
Block a user