Hi, I am interested in using this plugin, but when I install it it doe snot show up in luci and cannot be configured in it. I added the lines below to luci_statistics and restarted collectd, but it did not help: lsof does not show contextswitch.so open by collectd. What am I doing wrong?
collectd does not equal LuCI statistics. LuCI statistics uses collectd for data collection, but you need to also create the support in LuCI statistics for each collectd module. Having the collectd module installed in the router is necessary, but that does not create any support in LuCI by itself.
LuCI statistics knows only about a limited subset about collectd features, and offers settings and charts only for those collectd items that it has logic for.
If you want collectd_contextswitch, you need to build the data model for it and define the chart. As examples, the items done for cpufreq and thermal:
Ps.
restarting only collectd is wrong. It will then use the "old config" generated at the time when luci_statistics was restarted last time. You need to restart luci_statistics to generate the corresponding new config for collectd.
Monkey see, monkey do! So I got the context switch plugin going in luci. The next step is to figure out the commit process. Is it as simple as sending a pull request against the lede-17.01 branch, or there is more magic to it? I cannot find any document on this...
New stuff gets first into LuCI master, not into 17.01.
So, a pull request against the LuCI master branch.
(But if you do the PR against 17.01 branch, I can cherry-pick it from that to the master. There is no relevant difference between master and 17.01 at the moment.)