[Solved] Luci-app-statistics tab doesn't show

Hi guys, I need help to troubleshoot luci-app-statistics.
I used this page to install and configure stats: https://openwrt.org/docs/guide-user/luci/luci_app_statistics
But stats tab doesnt't appears in the menu. I tried to reinstall luci_app but no luck.
Collectd is working, I see in logs:

Thu Aug 26 08:32:56 2021 daemon.err collectd[32297]: plugin_load: plugin "load" successfully loaded.
Thu Aug 26 08:32:56 2021 daemon.err collectd[32297]: Initialization complete, entering read-loop.
Thu Aug 26 08:42:46 2021 daemon.err collectd[32297]: Exiting normally.
Thu Aug 26 08:42:46 2021 daemon.err collectd[32297]: collectd: Stopping 2 read threads.
Thu Aug 26 08:42:46 2021 daemon.err collectd[32297]: collectd: Stopping 5 write threads.
Thu Aug 26 08:42:46 2021 daemon.err collectd[32297]: rrdtool plugin: Shutting down the queue thread.
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: plugin_load: plugin "iwinfo" successfully loaded.
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: plugin_load: plugin "memory" successfully loaded.
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: plugin_load: plugin "cpu" successfully loaded.
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: plugin_load: plugin "rrdtool" successfully loaded.
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: rrdtool plugin: RRASingle = true: creating only AVERAGE RRAs
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: plugin_load: plugin "interface" successfully loaded.
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: plugin_load: plugin "load" successfully loaded.
Thu Aug 26 08:42:46 2021 daemon.err collectd[3073]: Initialization complete, entering read-loop.
root@openwrt:/tmp/lib#

but I can't see that luci stat daemon is working:

root@openwrt:/tmp/lib# ps w | grep luci_statistics
 5063 root      1216 S    grep luci_statistics

And I can't find any logs from luci_statistics. Can somebody point me where are the logs from it? Or maybe some other reasons?

root@openwrt:/tmp/lib# opkg install luci-app-statistics
Installing luci-app-statistics (git-21.222.69112-b41f377-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.4/packages/mipsel_24kc/luci/luci-app-statistics_git-21.222.69112-b41f377-1_all.ipk
Configuring luci-app-statistics.
root@openwrt:/tmp/lib# /etc/init.d/luci_statistics enable
root@openwrt:/tmp/lib# /etc/init.d/luci_statistics start

Router is:

 |Hostname|openwrt|
 |Model|Xiaomi Mi Router 3G|
 |Architecture|MediaTek MT7621 ver:1 eco:3|
 |Firmware Version|OpenWrt 19.07.4 r11208-ce6496d796 / LuCI openwrt-19.07 branch git-20.247.75781-0d0ab01|

The is no "luci stat daemon". LuCI statistics is just a configuration layer on top of collectd, plus the config/display interface in LuCI.

If the data collection works, the stats data gets stored into /tmp/rrd

If there is data in /tmp/rrd but there is no menu item, it is about the LuCI menu structure. You might try rebooting the router, as the menu structure might not get refreshed immediately (or your browser caches stale menu data).

But what is that then?

It enables the configuration init script.

The luci_statistics service init script just converts the luci_statistics uci config to the format understood by collectd, and launches collectd. There is no separate luci_statistics binary running during the normal operations. The init script just translates the config (with /usr/bin/stat-genconfig ) and launches collectd.

Thank you very much for fast response and for the clarification. Reboot actually helped me.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

For posterity: Rebooting should not be necessary, but you need to logout and login to LuCI once to make the tab appear, it's a caching thing.

2 Likes

true, now I'm setting up ping plugin and logout\login was enough to make it visible

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.