collectd-mod-openvpn: does not create all luci-statistics needed files.
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @<github-user> (find it by checking history of the package Makefile)
Environment: (x86, generic, OpenWrt 18.06.1)
Firstly, i know that there are some other post similar to this one, but without any solution, so i think it was better to start a clean one instead. (since they are so old, and maybe file version dont match with mines).
This is the (UCI) config related the custom "status" file for openvpn:
openvpn.MyOVPN.status='/mnt/OpenVPN/MyOVPN 10'
luci_statistics.collectd_openvpn.StatusFile='/mnt/OpenVPN/MyOVPN'
firstly, i noticed that the file which has been created is created without world-readable permissions. So i had to enable them via chmod command.
Then, i found that several rrd files was created:
root@MainRouter:/mnt/Collectd/MainRouter/openvpn-MyOVPN# ls -lah
drwxr-xr-x 2 root root 4.0K Oct 19 11:51 .
drwxr-xr-x 32 root root 4.0K Oct 19 11:49 ..
-rw-r--r-- 1 root root 17.5K Oct 19 11:51 if_octets-Client1.rrd
-rw-r--r-- 1 root root 9.3K Oct 19 11:51 users-MyOVPN.rrd
This is the configuration of the collectd-mod-openvpn:
luci_statistics.collectd_openvpn=statistics
luci_statistics.collectd_openvpn.enable='1'
luci_statistics.collectd_openvpn.CollectIndividualUsers='1'
luci_statistics.collectd_openvpn.CollectCompression='1'
luci_statistics.collectd_openvpn.ImprovedNamingSchema='1'
luci_statistics.collectd_openvpn.CollectUserCount='1'
luci_statistics.collectd_openvpn.StatusFile='/mnt/OpenVPN/MyOVPN'
I think that this isnt good enough since when i try to check the graph inside luci-app-statistics, i found this log entries: (and of course, i get broken img icon at the web)
Fri Oct 19 11:52:41 2018 daemon.err uhttpd[2969]: ERROR: opening '/mnt/
Collectd/MainRouter/openvpn-MyOVPN/if_octets-traffic.rrd': No such file or directory
Fri Oct 19 11:52:41 2018 daemon.err uhttpd[2969]: ERROR: opening '/mnt/
Collectd/MainRouter/openvpn-MyOVPN/compression-data_out.rrd': No such file or directory
So I guess collectd-mod-openvpn isnt collecting all stats, needed.
Any clue?
Regards,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Check the package Makefile history to identify the maintainer and inspect how collectd-mod-openvpn is packaged. Reproduce the UCI configuration on OpenWrt 18.06.1, compare the generated RRD files under the shown openvpn-MyOVPN path with luci-app-statistics' requested files, and confirm that the missing graphs and permission behavior are resolved.
Written by the indexing model from the issue text.
Assessment
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100