summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua')
-rw-r--r--applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua12
1 files changed, 5 insertions, 7 deletions
diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
index 334a0300d..a391d64e4 100644
--- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
+++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
@@ -13,24 +13,22 @@ $Id$
]]--
-m = Map("luci_statistics", "Ping Plugin",
-[[Das Ping-Plugin veranlasst periodische ICMP-Requests an die angegebenen Adressen und zeichnet
-Parameter wie Verfügbarkeit und Antwortzeiten auf.]])
+m = Map("luci_statistics")
-- collectd_ping config section
-s = m:section( NamedSection, "collectd_ping", "luci_statistics", "Pluginkonfiguration" )
+s = m:section( NamedSection, "collectd_ping", "luci_statistics" )
-- collectd_ping.enable
-enable = s:option( Flag, "enable", "Plugin aktivieren" )
+enable = s:option( Flag, "enable" )
enable.default = 0
-- collectd_ping.hosts (Host)
-hosts = s:option( Value, "Hosts", "Zieladressen", "Einträge durch Leerzeichen trennen" )
+hosts = s:option( Value, "Hosts" )
hosts.default = "127.0.0.1"
hosts:depends( "enable", 1 )
-- collectd_ping.ttl (TTL)
-ttl = s:option( Value, "TTL", "Time-to-Live für die ICMP-Pakete (Werte 0 bis 255)" )
+ttl = s:option( Value, "TTL" )
ttl.isinteger = true
ttl.default = 128
ttl:depends( "enable", 1 )