2
0
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:
Jérôme Drouet 2017-07-05 21:47:34 +02:00
parent d6dcc5d379
commit f9ec8381b4

View File

@ -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