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:
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...