summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/model
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2010-11-18 18:08:23 +0000
committerManuel Munz <freifunk@somakoma.de>2010-11-18 18:08:23 +0000
commit9c8d860e69ee8781d0f00db805cf1038763782f4 (patch)
treec4bdd8f61ad98ee22590c214c80919dee8bf7e82 /applications/luci-statistics/luasrc/model
parent895c65738100e29ce28ec9e65d060ce8e7cb3952 (diff)
applications/luci-statistics: Add ping interval option, closes #136
Diffstat (limited to 'applications/luci-statistics/luasrc/model')
-rw-r--r--applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua8
1 files changed, 7 insertions, 1 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 56d6a93d0..c55ac8736 100644
--- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
+++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
@@ -28,7 +28,7 @@ enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 0
-- 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:depends( "enable", 1 )
@@ -38,4 +38,10 @@ ttl.isinteger = true
ttl.default = 128
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