diff options
Diffstat (limited to 'applications/luci-statistics')
3 files changed, 9 insertions, 2 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 56d6a93d02..c55ac87368 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 diff --git a/applications/luci-statistics/root/etc/config/luci_statistics b/applications/luci-statistics/root/etc/config/luci_statistics index fe3a1cba94..ea0ae6d89e 100644 --- a/applications/luci-statistics/root/etc/config/luci_statistics +++ b/applications/luci-statistics/root/etc/config/luci_statistics @@ -15,6 +15,7 @@ config 'statistics' 'collectd' config 'statistics' 'collectd_ping' option 'enable' '0' option 'TTL' '127' + option 'Interval' '30' option 'Hosts' '127.0.0.1' config 'statistics' 'collectd_csv' diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig index 8bd6262ef6..4c396ff057 100755 --- a/applications/luci-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-statistics/root/usr/bin/stat-genconfig @@ -330,7 +330,7 @@ plugins = { network = config_network, ping = { - { "TTL" }, + { "TTL", "Interval" }, { }, { "Hosts" } }, |