projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-statistics: add support for apcups plugin
[project/luci.git]
/
applications
/
luci-app-statistics
/
root
/
usr
/
bin
/
stat-genconfig
diff --git
a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index
df9af15
..
2bf63c1
100755
(executable)
--- a/
applications/luci-app-statistics/root/usr/bin/stat-genconfig
+++ b/
applications/luci-app-statistics/root/usr/bin/stat-genconfig
@@
-255,6
+255,12
@@
end
plugins = {
plugins = {
+ apcups = {
+ { "Host", "Port" },
+ { },
+ { }
+ },
+
collectd = {
{ "BaseDir", "Include", "PIDFile", "PluginDir", "TypesDB", "Interval", "ReadThreads", "Hostname" },
{ },
collectd = {
{ "BaseDir", "Include", "PIDFile", "PluginDir", "TypesDB", "Interval", "ReadThreads", "Hostname" },
{ },
@@
-279,6
+285,12
@@
plugins = {
{ }
},
{ }
},
+ contextswitch = {
+ { },
+ { },
+ { }
+ },
+
csv = {
{ "DataDir" },
{ "StoreRates" },
csv = {
{ "DataDir" },
{ "StoreRates" },
@@
-349,12
+361,6
@@
plugins = {
{ }
},
{ }
},
- madwifi = {
- { "WatchSet" },
- { },
- { "Interfaces", "WatchAdds" }
- },
-
memory = {
{ },
{ },
memory = {
{ },
{ },
@@
-461,8
+467,10
@@
preprocess = {
section("collectd")
section("collectd")
+section("logfile")
+
for plugin in pairs(plugins) do
for plugin in pairs(plugins) do
- if
plugin ~= "collectd"
then
+ if
(plugin ~= "collectd") and (plugin ~= "logfile")
then
section( plugin )
end
end
section( plugin )
end
end