}
-- create toplevel menu nodes
- entry({"admin", "statistics"}, call("statistics_index"), _i18n("statistics"), 80).i18n = "statistics"
- entry({"admin", "statistics", "collectd"}, cbi("luci_statistics/collectd"), _i18n("collectd"), 10)
+ local st = entry({"admin", "statistics"}, call("statistics_index"), _i18n("statistics"), 80)
+ st.i18n = "statistics"
+ st.index = true
+
+ entry({"admin", "statistics", "collectd"}, cbi("luci_statistics/collectd"), _i18n("collectd"), 10).subindex = true
+
-- populate collectd plugin menu
local index = 1
call( "statistics_" .. section .. "plugins" ),
_i18n( section .. "plugins" ),
index * 10
- )
+ ).index = true
for j, plugin in luci.util.vspairs( plugins ) do
_entry(
stat_network = 'Netzwerk'
stat_csv = 'CSV Ausgabe'
stat_load = 'Systemlast'
+stat_dns = 'DNS'
+stat_email = 'Email'
+stat_unixsock = 'UnixSock'
lucistatistics = 'Statistiken'
lucistatistics_collectd = 'Collectd Einstellungen'
lucistatistics_collectd_desc = 'Collectd ist ein schlankes Dienstprogramm zum Sammeln von Systemdaten aus verschiedenen Quellen mittels diverser Plugins. Auf dieser Seite können generelle Einstellungen für den Collectd-Daemon vorgenommen werden.'
lucistatistics_collectdnetlink_classes_desc = 'Strg gedrückt halten um mehrere zu wählen'
lucistatistics_collectdnetlink_filters = 'Filterklassen überwachen'
lucistatistics_collectdnetlink_filters_desc = 'Strg gedrückt halten um mehrere zu wählen'
+lucistatistics_collectdnetlink_ignoreselected = 'Alle außer Ausgewählte überwachen'
lucistatistics_collectdnetwork = 'Network Plugin Konfiguration'
lucistatistics_collectdnetwork_desc = 'Das Network-Plugin ermöglicht die netzwerkgestützte Kommunikation zwischen verschiedenen Collectd-Instanzen. Collectd kann gleichzeitig im Server- und Client-Modus betrieben werden. Im Client-Modus werden lokal gesammelte Daten an einen Collectd-Server übermittelt, im Server-Modus empfängt die lokale Instanz Daten von anderen Installationen.'
lucistatistics_collectdnetwork_enable = 'Plugin aktivieren'
<i18n:msg xml:id="stat_network">Netzwerk</i18n:msg>
<i18n:msg xml:id="stat_csv">CSV Ausgabe</i18n:msg>
<i18n:msg xml:id="stat_load">Systemlast</i18n:msg>
+<i18n:msg xml:id="stat_dns">DNS</i18n:msg>
+<i18n:msg xml:id="stat_email">Email</i18n:msg>
+<i18n:msg xml:id="stat_unixsock">UnixSock</i18n:msg>
<i18n:msg xml:id="lucistatistics">Statistiken</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetlink_classes_desc">Strg gedrückt halten um mehrere zu wählen</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetlink_filters">Filterklassen überwachen</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetlink_filters_desc">Strg gedrückt halten um mehrere zu wählen</i18n:msg>
+<i18n:msg xml:id="lucistatistics_collectdnetlink_ignoreselected">Alle außer Ausgewählte überwachen</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetwork">Network Plugin Konfiguration</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetwork_desc">Das Network-Plugin ermöglicht die netzwerkgestützte Kommunikation zwischen verschiedenen Collectd-Instanzen. Collectd kann gleichzeitig im Server- und Client-Modus betrieben werden. Im Client-Modus werden lokal gesammelte Daten an einen Collectd-Server übermittelt, im Server-Modus empfängt die lokale Instanz Daten von anderen Installationen.</i18n:msg>
stat_network = 'Network'
stat_csv = 'CSV Output'
stat_load = 'System Load'
+stat_dns = 'DNS'
+stat_email = 'Email'
+stat_unixsock = 'UnixSock'
lucistatistics = 'Statistics'
lucistatistics_collectd = 'Collectd Settings'
lucistatistics_collectd_desc = 'Collectd is a small daeomon for collecting data from various sources through different plugins. On this page you can change general settings for the collectd daemon.'
lucistatistics_collectddns_interfaces = 'Monitor interfaces'
lucistatistics_collectddns_interfaces_desc = 'multiple separated by space'
lucistatistics_collectddns_ignoresources = 'Ignore source addresses'
-lucistatistics_collectddns_ignoresources_desc = 'multiple separated by space'
+lucistatistics_collectddns_ignoresources_desc = 'hold Ctrl while clicking to select multiple interfaces'
lucistatistics_collectdemail = 'E-Mail Plugin Configuration'
lucistatistics_collectdemail_desc = 'The email plugin creates a unix socket which can be used to transmit email-statistics to a running collectd daemon. This plugin is primarily intended to be used in conjunction with Mail::SpamAssasin::Plugin::Collectd but can be used in other ways as well.'
lucistatistics_collectdemail_enable = 'Enable this plugin'
lucistatistics_collectdnetlink_classes_desc = 'hold Ctrl while clicking to select multiple interfaces'
lucistatistics_collectdnetlink_filters = 'Filter class monitoring'
lucistatistics_collectdnetlink_filters_desc = 'hold Ctrl while clicking to select multiple interfaces'
+lucistatistics_collectdnetlink_ignoreselected = 'Monitor all except selected ones'
lucistatistics_collectdnetwork = 'Network Plugin Configuration'
lucistatistics_collectdnetwork_desc = 'The network plugin provides network based communication between different collectd instances. Collectd can operate both in client and server mode. In client mode locally collected date is transferred to a collectd server instance, in server mode the local instance receives data from other hosts.'
lucistatistics_collectdnetwork_enable = 'Enable this plugin'
<i18n:msg xml:id="stat_network">Network</i18n:msg>
<i18n:msg xml:id="stat_csv">CSV Output</i18n:msg>
<i18n:msg xml:id="stat_load">System Load</i18n:msg>
+<i18n:msg xml:id="stat_dns">DNS</i18n:msg>
+<i18n:msg xml:id="stat_email">Email</i18n:msg>
+<i18n:msg xml:id="stat_unixsock">UnixSock</i18n:msg>
<i18n:msg xml:id="lucistatistics">Statistics</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectddns_interfaces">Monitor interfaces</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectddns_interfaces_desc">multiple separated by space</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectddns_ignoresources">Ignore source addresses</i18n:msg>
-<i18n:msg xml:id="lucistatistics_collectddns_ignoresources_desc">multiple separated by space</i18n:msg>
+<i18n:msg xml:id="lucistatistics_collectddns_ignoresources_desc">hold Ctrl while clicking to select multiple interfaces</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdemail">E-Mail Plugin Configuration</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdemail_desc">The email plugin creates a unix socket which can be used to transmit email-statistics to a running collectd daemon. This plugin is primarily intended to be used in conjunction with Mail::SpamAssasin::Plugin::Collectd but can be used in other ways as well.</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetlink_classes_desc">hold Ctrl while clicking to select multiple interfaces</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetlink_filters">Filter class monitoring</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetlink_filters_desc">hold Ctrl while clicking to select multiple interfaces</i18n:msg>
+<i18n:msg xml:id="lucistatistics_collectdnetlink_ignoreselected">Monitor all except selected ones</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetwork">Network Plugin Configuration</i18n:msg>
<i18n:msg xml:id="lucistatistics_collectdnetwork_desc">The network plugin provides network based communication between different collectd instances. Collectd can operate both in client and server mode. In client mode locally collected date is transferred to a collectd server instance, in server mode the local instance receives data from other hosts.</i18n:msg>
enable.default = 0
-- collectd_dns.interfaces (Interface)
-interfaces = s:option( ListValue, "Interfaces" )
+interfaces = s:option( MultiValue, "Interfaces" )
+interfaces.widget = "select"
+interfaces.size = 5
interfaces:depends( "enable", 1 )
interfaces:value("any")
for k, v in pairs(luci.sys.net.devices()) do
- interfaces:value(v)
+ interfaces:value(v)
end
-
+
-- collectd_dns.ignoresources (IgnoreSource)
ignoresources = s:option( Value, "IgnoreSources" )
ignoresources.default = "127.0.0.1"