Globally reduce copyright headers
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / processes.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("luci_statistics",
5         translate("Processes Plugin Configuration"),
6         translate(
7                 "The processes plugin collects informations like cpu time, " ..
8                 "page faults and memory usage of selected processes."
9         ))
10
11 -- collectd_processes config section
12 s = m:section( NamedSection, "collectd_processes", "luci_statistics" )
13
14 -- collectd_processes.enable
15 enable = s:option( Flag, "enable", translate("Enable this plugin") )
16 enable.default = 0
17
18 -- collectd_processes.processes (Process)
19 processes = s:option( Value, "Processes", translate("Monitor processes"),
20         translate("Processes to monitor separated by space") )
21 processes:depends( "enable", 1 )
22 processes.default = "uhttpd dropbear dnsmasq"
23
24 return m