Bug 12624 - OpenVPN Roadwarrior traffic graphs empty and or missing data
Summary: OpenVPN Roadwarrior traffic graphs empty and or missing data
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: openvpn (show other bugs)
Version: 2
Hardware: unspecified Unspecified
: - Unknown - Minor Usability
Assignee: Assigned to nobody - feel free to grab it and work on it
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-18 20:04 UTC by Timo Eissler
Modified: 2021-06-18 11:45 UTC (History)
3 users (show)

See Also:


Attachments
RW connections logs (51.39 KB, image/png)
2021-05-20 05:41 UTC, Timo Eissler
Details
RW graph (45.89 KB, image/png)
2021-05-20 05:42 UTC, Timo Eissler
Details
RW rrd (300.50 KB, application/octet-stream)
2021-05-20 05:43 UTC, Timo Eissler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Eissler 2021-05-18 20:04:38 UTC
The OpenVPN Roadwarrior traffic graphs are empty or doesn't show all data.

My customer has some associates who currently only works remote and the graphs arent't showing data.

What information can i provide to help solve this problem?

Kind regards

Timo
Comment 1 Adolf Belka 2021-05-18 21:20:17 UTC
This bug is a duplicate of 12615 and a patch has already been submitted

*** This bug has been marked as a duplicate of bug 12615 ***
Comment 2 Timo Eissler 2021-05-20 05:41:59 UTC
Created attachment 897 [details]
RW connections logs
Comment 3 Timo Eissler 2021-05-20 05:42:19 UTC
Created attachment 898 [details]
RW graph
Comment 4 Timo Eissler 2021-05-20 05:42:33 UTC
No it's not a duplicate of 12615. I already applied the patch mentioned in 12615 and the graphs are rendered correctly, but they are not showing all data.

See the attached screenshots (the graph is from the RW with the highest connection time).

I have also attached the rrd of the RW with the highest connection time.
Comment 5 Timo Eissler 2021-05-20 05:43:36 UTC
Created attachment 899 [details]
RW rrd
Comment 6 Michael Tremer 2021-05-20 10:26:33 UTC
So the RRD file shows "NaN" for most of time which suggests that collectd could not gather any data.

Did this happen after installing Core Update 155 or 156?

Does collectd log anything suspicious?
Comment 7 Timo Eissler 2021-05-20 18:39:39 UTC
I don't know at which point that issue started, sorry.

The only suspicous messages of collectd are:

May  8 16:35:04 ipfire collectd[44857]: uc_update: Value too old: name = localhost/openvpn-RW/if_octets_derive; value time = 1620484504; last cache update = 1620484504;
May  8 16:35:04 ipfire collectd[44857]: Filter subsystem: Built-in target `write': Dispatching value to the `rrdtool' plugin failed with status -1.
Comment 8 Michael Tremer 2021-05-21 08:44:23 UTC
Could you check the system time for me please?

It looks like time jumped and you can only append to a RRD file.
Comment 9 Timo Eissler 2021-05-21 10:57:53 UTC
[root@ipfire log]# date
Fri May 21 12:56:01 PM CEST 2021
[root@ipfire log]# hwclock 
n2021-05-21 12:56:03.606322+1:00
[root@ipfire log]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        .LOCL.          10 l   58   64  377    0.000   +0.000   0.000


Time is ok i think and NTP is configured to sync every hour.
Comment 10 Michael Tremer 2021-05-21 11:03:16 UTC
Could you try renaming this RRD file, restart collectd and see if it starts collecting correctly?

Maybe the file is just corrupted.
Comment 11 Timo Eissler 2021-05-21 18:25:47 UTC
I have renamed the RRD and restarted collectd. Collectd started without error messages, but the RRD file wasn't created. I assume the file will be created when there is data collected, correct?

I think then we have to wait for the user to connect next week.
Comment 12 Michael Tremer 2021-05-25 11:26:19 UTC
(In reply to Timo Eissler from comment #11)
> I assume the file will be created when there is data collected, correct?

Yes, collectd contacts the openvpn process which returns all active connections only.
Comment 13 Timo Eissler 2021-05-26 10:16:35 UTC
After renaming all RW rrd's the data collection seams to be fine now again.
I will have a look at the graphs after one or two weeks and will close this threads if everything is ok?!