applications/luci-statistics: Add ping interval option, closes #136
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / ping.lua
index 56d6a93d023d49fa45330bd44a3ed0ea169299fb..c55ac87368900c65f31d391492a9a69c8e645da1 100644 (file)
@@ -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