Collectd-mod-openvpn and luci-app-statistics fail

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'

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:


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?


uci show luci_statistics | grep /mnt/

Here it is:

root@MainRouter:~# uci show luci_statistics | grep /mnt/                                                                                                                                                                            


Help!... pls! :smiley:

What you have:


What application wants:


Speculation how to fix, choose one:

  • Find a way to write files with required names.
  • Find a way to read existing data files.
  • Use symlinks to link what you need with what you have.