statistics: Add support for entropy stats
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / ping.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("luci_statistics",
5         translate("Ping Plugin Configuration"),
6         translate(
7                 "The ping plugin will send icmp echo replies to selected " ..
8                 "hosts and measure the roundtrip time for each host."
9         ))
10
11 -- collectd_ping config section
12 s = m:section( NamedSection, "collectd_ping", "luci_statistics" )
13
14 -- collectd_ping.enable
15 enable = s:option( Flag, "enable", translate("Enable this plugin") )
16 enable.default = 0
17
18 -- collectd_ping.hosts (Host)
19 hosts = s:option( Value, "Hosts", translate("Monitor hosts"), translate ("Add multiple hosts separated by space."))
20 hosts.default = "127.0.0.1"
21 hosts:depends( "enable", 1 )
22
23 -- collectd_ping.ttl (TTL)
24 ttl = s:option( Value, "TTL", translate("TTL for ping packets") )
25 ttl.isinteger = true
26 ttl.default   = 128
27 ttl:depends( "enable", 1 )
28
29 -- collectd_ping.interval (Interval)
30 interval = s:option( Value, "Interval", translate("Interval for pings"), translate ("Seconds") )
31 interval.isinteger = true
32 interval.default   = 30
33 interval:depends( "enable", 1 )
34
35 return m