3aea6b3c718d86a01c4f22721dda6fde29158fb2
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / processes.lua
1 --[[
2
3 Luci configuration model for statistics - collectd processes plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 m = Map("luci_statistics",
17         translate("Processes Plugin Configuration"),
18         translate(
19                 "The processes plugin collects informations like cpu time, " ..
20                 "page faults and memory usage of selected processes."
21         ))
22
23 -- collectd_processes config section
24 s = m:section( NamedSection, "collectd_processes", "luci_statistics" )
25
26 -- collectd_processes.enable
27 enable = s:option( Flag, "enable", translate("Enable this plugin") )
28 enable.default = 0
29
30 -- collectd_processes.processes (Process)
31 processes = s:option( Value, "Processes", translate("Monitor processes"),
32         translate("Processes to monitor separated by space") )
33 processes:depends( "enable", 1 )
34 processes.default = "uhttpd dropbear dnsmasq"
35
36 return m