[2/4] netovpnsrv.cgi: Fixes rrd file names for n2n openvpn graphs
Commit Message
- 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>
---
html/cgi-bin/netovpnsrv.cgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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);
}
}