Hello,
there's a good chance I'm being particularly thick today, but I can't make a graph tab showing up in LuCI after installing collectd-mod-exec.
So far I have a shell script successfully producing values, and collectd storing them in /tmp/rrd/<myhostname>/exec-lantiqdsl/*
... so far so good.
I made a quick and dirty LUA definition file in /usr/lib/lua/luci/statistics/rrdtool/definitions/exec.lua
with the following content:
module("luci.statistics.rrdtool.definitions.exec", package.seeall)
function item()
return luci.i18n.translate("Exec")
end
function rrdargs(graph, plugin, plugin_instance)
return {
title = "%H: SNR",
vlabel = "SNR",
data = {
types = { "signal_noise-downstream_snr" },
options = {
signal_noise-downstream_snr = {
title = "SNR",
color = "ff0000"
}
}
}
}
end
This LUA is not very sophisticated, of course, it's only supposed to get any statistics to show in a graph, and I plan to do much more later. However, do as I might, I cannot even make a tab show up in LuCI > Statistics > Graphs, there's only the ones that come by default. Neither emptying modulecaches on the device nor the browser cache, nor restarting uhttpd or anything else I tried makes a tab for "Exec" show up.
Halp. What am I missing?
Edit: Reboot didn't help, tab is still not showing up.
Edit²: In return, tabs for disabled modules still do show up. What is going on? What does one have to do to "refresh" the tabs in graphs?