]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
netovpnsrv.cgi: Fixes rrd file names for n2n openvpn graphs
authorAdolf Belka <adolf.belka@ipfire.org>
Thu, 15 May 2025 11:49:18 +0000 (13:49 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 May 2025 14:58:44 +0000 (14:58 +0000)
- An additional rrd file name change missed from collect-5 update.
- This was identified as part of fixing bug13834

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/netovpnsrv.cgi

index 1fb66e7a4cb38069510ffdf95c3db63084df3495..7bc5d8509645c76023240ac5e219e38ed3b762eb 100644 (file)
@@ -55,7 +55,7 @@ foreach my $key (sort {$vpnsettings{$a}[1] <=> $vpnsettings{$b}[1]} keys %vpnset
 
 my @vpngraphs = `find /var/log/rrd/collectd/localhost/openvpn-*-n2n/ -not  -path *openvpn-UNDEF* -name *traffic.rrd 2>/dev/null|sort`;
 foreach (@vpngraphs){
-       if($_ =~ /(.*)\/openvpn-(.*)\/if_octets_derive-traffic.rrd/){
+       if($_ =~ /(.*)\/openvpn-(.*)\/if_octets-traffic.rrd/){
                push(@vpns,$2);
        }
 }