applications/luci-statistics: Add ping interval option, closes #136
This commit is contained in:
parent
895c657381
commit
9c8d860e69
5 changed files with 21 additions and 5 deletions
|
@ -28,7 +28,7 @@ enable = s:option( Flag, "enable", translate("Enable this plugin") )
|
||||||
enable.default = 0
|
enable.default = 0
|
||||||
|
|
||||||
-- collectd_ping.hosts (Host)
|
-- collectd_ping.hosts (Host)
|
||||||
hosts = s:option( Value, "Hosts", translate("Monitor hosts") )
|
hosts = s:option( Value, "Hosts", translate("Monitor hosts"), translate ("Add multiple hosts separated by space."))
|
||||||
hosts.default = "127.0.0.1"
|
hosts.default = "127.0.0.1"
|
||||||
hosts:depends( "enable", 1 )
|
hosts:depends( "enable", 1 )
|
||||||
|
|
||||||
|
@ -38,4 +38,10 @@ ttl.isinteger = true
|
||||||
ttl.default = 128
|
ttl.default = 128
|
||||||
ttl:depends( "enable", 1 )
|
ttl:depends( "enable", 1 )
|
||||||
|
|
||||||
|
-- collectd_ping.interval (Interval)
|
||||||
|
interval = s:option( Value, "Interval", translate("Interval for pings"), translate ("Seconds") )
|
||||||
|
interval.isinteger = true
|
||||||
|
interval.default = 30
|
||||||
|
interval:depends( "enable", 1 )
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
|
@ -15,6 +15,7 @@ config 'statistics' 'collectd'
|
||||||
config 'statistics' 'collectd_ping'
|
config 'statistics' 'collectd_ping'
|
||||||
option 'enable' '0'
|
option 'enable' '0'
|
||||||
option 'TTL' '127'
|
option 'TTL' '127'
|
||||||
|
option 'Interval' '30'
|
||||||
option 'Hosts' '127.0.0.1'
|
option 'Hosts' '127.0.0.1'
|
||||||
|
|
||||||
config 'statistics' 'collectd_csv'
|
config 'statistics' 'collectd_csv'
|
||||||
|
|
|
@ -330,7 +330,7 @@ plugins = {
|
||||||
network = config_network,
|
network = config_network,
|
||||||
|
|
||||||
ping = {
|
ping = {
|
||||||
{ "TTL" },
|
{ "TTL", "Interval" },
|
||||||
{ },
|
{ },
|
||||||
{ "Hosts" }
|
{ "Hosts" }
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,10 +2,11 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2009-05-26 17:57+0200\n"
|
"POT-Creation-Date: \n"
|
||||||
"PO-Revision-Date: 2009-05-21 19:32+0200\n"
|
"PO-Revision-Date: 2010-11-18 19:06+0100\n"
|
||||||
"Last-Translator: Jo-Philipp Wich <xm@subsignal.org>\n"
|
"Last-Translator: Manuel Munz <freifunk@somakoma.de>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"Language: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -62,6 +63,10 @@ msgstr "Prozessor"
|
||||||
msgid "Ping"
|
msgid "Ping"
|
||||||
msgstr "Ping"
|
msgstr "Ping"
|
||||||
|
|
||||||
|
#. Interval of pings
|
||||||
|
msgid "Interval for pings"
|
||||||
|
msgstr "Intervall zwischen den Pings"
|
||||||
|
|
||||||
#. Firewall
|
#. Firewall
|
||||||
#: applications/luci-statistics/luasrc/i18n/statistics.en.lua:11
|
#: applications/luci-statistics/luasrc/i18n/statistics.en.lua:11
|
||||||
msgid "Firewall"
|
msgid "Firewall"
|
||||||
|
|
|
@ -51,6 +51,10 @@ msgstr ""
|
||||||
msgid "Ping"
|
msgid "Ping"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. Interval of pings
|
||||||
|
msgid "Interval for pings"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. Firewall
|
#. Firewall
|
||||||
#: applications/luci-statistics/luasrc/i18n/statistics.en.lua:11
|
#: applications/luci-statistics/luasrc/i18n/statistics.en.lua:11
|
||||||
msgid "Firewall"
|
msgid "Firewall"
|
||||||
|
|
Loading…
Reference in a new issue