How add cake to luci app statistic

hello everybody i have download luci app statistic and other repo for sqm.conf but cake don't appair to luci statistic how make the appair please

thanks

I believe I followed the following instructions and got it working:

If you're on 21.02, you don't need to do anything more than install collectd-moq-sqm (and -exec), add the specified lines/rule to collectd_exec_input, and possibly restart luci-app-statistics/collectd.

If you're on 19.07, forget about it.

1 Like

hi i'm on snapshot

now i have this mess

Have you set what you needed to in collectd-mod-exec? A restart might help. Make sure luci-app-statistics is working correctly on it's own, should see graphs for CPU usage, etc.

From /etc/config/luci_statistics:

config statistics 'collectd_exec'
	option enable '1'

config collectd_exec_input
	option cmdline '/usr/libexec/collectd/sqm_collectd.sh eth0.2'
	option cmduser 'nobody'
	option cmdgroup 'nogroup'

Replace eth0.2 with whatever interface name you have for WAN. Won't work if luci-app-sqm isn't installed, configured and running on the specified interface. Maybe try running the command (option cmdline) manually in the terminal to see if it returns anything. Here is a sample of what it returns on my side:

PUTVAL "localhost/sqm-eth0.2/qdisc_bytes" interval=60 N:1303378441758
PUTVAL "localhost/sqm-eth0.2/qdisc_drops" interval=60 N:212846794
PUTVAL "localhost/sqm-eth0.2/qdisc_backlog" interval=60 N:140611
PUTVAL "localhost/sqmcake-eth0.2/qdisct_bytes-BK" interval=60 N:91205
PUTVAL "localhost/sqmcake-eth0.2/qdisct_thres-BK" interval=60 N:117187
PUTVAL "localhost/sqmcake-eth0.2/qdisct_drops-BK" interval=60 N:0:0:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_backlog-BK" interval=60 N:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_flows-BK" interval=60 N:1:0:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_latencyus-BK" interval=60 N:19430:1427:493:37
PUTVAL "localhost/sqmcake-eth0.2/qdisct_bytes-BE" interval=60 N:1589360309407
PUTVAL "localhost/sqmcake-eth0.2/qdisct_thres-BE" interval=60 N:1875000
PUTVAL "localhost/sqmcake-eth0.2/qdisct_drops-BE" interval=60 N:212846794:0:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_backlog-BE" interval=60 N:140611
PUTVAL "localhost/sqmcake-eth0.2/qdisct_flows-BE" interval=60 N:96:73:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_latencyus-BE" interval=60 N:5000:80927:19771:2690
PUTVAL "localhost/sqmcake-eth0.2/qdisct_bytes-VI" interval=60 N:462314988
PUTVAL "localhost/sqmcake-eth0.2/qdisct_thres-VI" interval=60 N:468750
PUTVAL "localhost/sqmcake-eth0.2/qdisct_drops-VI" interval=60 N:0:0:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_backlog-VI" interval=60 N:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_flows-VI" interval=60 N:2:0:0
PUTVAL "localhost/sqmcake-eth0.2/qdisct_latencyus-VI" interval=60 N:5000:1712:465:60

I don't know if anything is different configuration wise in master compared to the 21.02 branch snapshot I'm on.

2 Likes

its the same