2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Merge pull request #857 from jeromedrouet/master

ignore UNDEF (not really connected) users for openvpn_multi plugin
This commit is contained in:
sumpfralle 2017-07-06 01:23:12 +02:00 committed by GitHub
commit 92a8c9df17

View file

@ -51,7 +51,7 @@ sub config {
print "out.cdef out,1,*\n"; print "out.cdef out,1,*\n";
while (<FILE>) { while (<FILE>) {
next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/); next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/ || $_ =~ /^UNDEF,/);
last if ($_ =~ /ROUTING TABLE/); last if ($_ =~ /ROUTING TABLE/);
# client,IP:port,in,out,D M N hour Y # client,IP:port,in,out,D M N hour Y
@ -101,7 +101,7 @@ sub report {
open FILE, $statusfile or die $!; open FILE, $statusfile or die $!;
while (<FILE>) { while (<FILE>) {
next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/); next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/ || $_ =~ /^UNDEF,/);
last if ($_ =~ /ROUTING TABLE/); last if ($_ =~ /ROUTING TABLE/);
# client,IP:port,in,out,D M N hour Y # client,IP:port,in,out,D M N hour Y