From: Adolf Belka Date: Mon, 7 Apr 2025 18:43:44 +0000 (+0200) Subject: netovpnrw.cgi: Fixes bug13838 - additional file name correction for collectd-5.x X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=264b564c9cf78116b21236472fed08aacfd2b8d1;p=people%2Fms%2Fipfire-2.x.git netovpnrw.cgi: Fixes bug13838 - additional file name correction for collectd-5.x - 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 Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/netovpnrw.cgi b/html/cgi-bin/netovpnrw.cgi index 5014f9a55..fb81e9ffe 100644 --- a/html/cgi-bin/netovpnrw.cgi +++ b/html/cgi-bin/netovpnrw.cgi @@ -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); } }