]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
netovpnrw.cgi: Fixes bug13838 - additional file name correction for collectd-5.x
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 7 Apr 2025 18:43:44 +0000 (20:43 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:14:31 +0000 (14:14 +0000)
- One location in netovpnrw.cgi was missed with a filename change coming from the collectd
   update.
- This resulted in missing graph content for the openvpn road warrior graphs.
- Tested out on my production IPFire system. Making the change resulted in the grahs
   being visible again.

Fixes: Bug13838
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/netovpnrw.cgi

index 5014f9a555144ff10a781664bd8e448ceb8271bf..fb81e9ffe83371e34989b0198ea9df4c4e5ba9e4 100644 (file)
@@ -43,7 +43,7 @@ my @vpns=();
 
 my @vpngraphs = `find /var/log/rrd/collectd/localhost/openvpn-*/ -not  -path *openvpn-UNDEF*  -not -path *openvpn-*n2n* -name *.rrd 2>/dev/null|sort`;
 foreach (@vpngraphs){
-       if($_ =~ /(.*)\/openvpn-(.*)\/if_octets_derive.rrd/){
+       if($_ =~ /(.*)\/openvpn-(.*)\/if_octets.rrd/){
                push(@vpns,$2);
        }
 }