1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 m = Map("luci_statistics",
5 translate("Ping Plugin Configuration"),
7 "The ping plugin will send icmp echo replies to selected " ..
8 "hosts and measure the roundtrip time for each host."
11 -- collectd_ping config section
12 s = m:section( NamedSection, "collectd_ping", "luci_statistics" )
14 -- collectd_ping.enable
15 enable = s:option( Flag, "enable", translate("Enable this plugin") )
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 )
23 -- collectd_ping.ttl (TTL)
24 ttl = s:option( Value, "TTL", translate("TTL for ping packets") )
27 ttl:depends( "enable", 1 )
29 -- collectd_ping.interval (Interval)
30 interval = s:option( Value, "Interval", translate("Interval for pings"), translate ("Seconds") )
31 interval.isinteger = true
33 interval:depends( "enable", 1 )