Hi there,
I have completely re-initialized OpenVPN on the IPFire (IPFire 2.29 (x86_64) - Core-Update 192). Meaning that I deleted all clients and the CA and startet everything over again to produce a clean configuration.
Now that I have 2 new clients to test with, they work as expected except for the page “OpenVPN: Road Warrior Statistics”: No statistics are shown. I tried deleting data in /var/log/rrd/collectd/localhost/openvpn-* as suggested in the Wiki. After a new OpenVPN sessions, data was created (if_octets.rrd file) but no graphs were shown during and after the OpenVPN sessions.
Does anybody have a an idea what I can do to make it work again?
Thanks!
I have tested this out with both some RW’s and N2N connections on CU192.
I confirm that I also don’t see any data being shown in the graphs.
I have had a look in the /var/log/rrd/collectd/localhost/openvpn-ipfirenet2net-n2n/ which is the directory for my N2N connection and I have found that with the change from collectd-4.10.9 to 5.12.0 some names of the data sets were changed by collectd.
A lot of these were found during the Testing phase of CU192 but obviously not all of them, as the RW and N2N data names have also subtly changed. Those changed names need to be updated in the netovpnsrv.cgi and graphs.pl files.
Could you raise this as a bug in the IPFire Bugzilla.
Your IPFire People email address and password will act as your login credentials for the IPFire Bugzilla.
Putting it into bugzilla ensures it doesn’t get forgotten about.
I will put it on my list of things to look at but over the next 2.5 weeks I will have limited availability. So being logged as a bug anyone else could also then pick it up and supply a patch to fix it.
EDIT:
I have looked through all the rrd directories now and only the openvpn related ones have one set of files with todays date and another set with an earlier date.
So it will only need to have all the locations where those old names are used identified and change them to the new naming format.
According to the bug report the error was fixed with the latest release. I still don’t have any statistics or diagrams neither Net-to-Net nor in Road-Warrior-OpenVPN statistic page. Are there some manual changes I have to make?
When you have your RW connected but the graph does not show anything do you see any traffic being shown in the menu Logs - OpenVPN Roadwarrior Connections Log - Connection Name.
This is what I see for the one that just worked for me.
but with the connection names from your OpenVPN RW’s.
Inside the directory you should see something similar to
/var/log/rrd/collectd/localhost/openvpn-tethysskrymir:
total 616K
drwxr-xr-x 2 root root 4.0K Oct 10 2024 .
drwxr-xr-x 44 root root 4.0K Mar 20 10:58 ..
-rw-r–r-- 1 root root 301K Nov 6 2024 if_octets_derive.rrd
-rw-r–r-- 1 root root 301K May 28 14:13 if_octets.rrd
The file with _derive in its name is the old version and you can see that the last time it was updated was back in Nov 2024.
The other file is the current running version collecting the traffic data for that Road Warrior connection. That should have a date and time for when that connection was last being used.
Thank you very much for your detailed answer and the work. I have looked at all the tips, settings and files and followed them. Whatever happened, I can now see the RoadWarrior statistics. I will gladly wait another two releases for the Net-Net statistics.
Thanks again.