luci icon indicating copy to clipboard operation
luci copied to clipboard

collectd-mod-openvpn - Luci stats fail to display openvpn stats

Open ezplanet opened this issue 1 year ago • 1 comments

Issue template:

  1. Please make sure that the issue subject starts with <package-name>:
  2. Issues related to end of life (EOL) releases are not supported or maintained and will be closed
  3. Remove lines from top till here and fill in the following questions

Steps to reproduce:

Configure openwrt with luci stats + openvpn plugin configure the openvpn plugin to point to the openvpn server status file as follows:

config statistics 'collectd_openvpn'
    option enable '1'
    option CollectIndividualUsers '1'
    option CollectCompression '1'
    option ImprovedNamingSchema '1'
    list StatusFile '/var/log/myvpnserver.status'

The following files are collected in the openvpn-myvpnserver.status folder under /var/rrd/myhostname

-rw-r--r--    1 root     root         25008 Apr 24 11:52 if_octets-UNDEF.rrd
-rw-r--r--    1 root     root         25008 Apr 27 14:37 if_octets-client1.rrd
-rw-r--r--    1 root     root         25008 Apr 28 14:06 if_octets-client2.rrd

Thare are files for each client that connected to the openvpn server running on the openwrt router (names are redacted). However going to the page: luci -> statistics -> graphs, OpenVPN tab

Broken images are displayed. This issue has been reported several times in OpenWRT forums, but it appears it was never addressed. Please see: [(https://forum.openwrt.org/t/collectd-mod-openvpn/11034/11)]

Actual behavior:

Broken images are displayed for OpenVPN in Luci stats graphs

Expected behavior:

graphs stats are expected

Additional Information:

OpenWrt version information from system /etc/openwrt_release:

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='22.03-SNAPSHOT'
DISTRIB_REVISION='r20130-31b1366bc6'
DISTRIB_TARGET='mvebu/cortexa9'
DISTRIB_ARCH='arm_cortex-a9_vfpv3-d16'
DISTRIB_DESCRIPTION='OpenWrt 22.03-SNAPSHOT r20130-31b1366bc6'
DISTRIB_TAINTS='no-all'

It happened on every release since the plugin was included in luci stats.

ezplanet avatar Apr 28 '23 12:04 ezplanet