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:
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,