commit 4f6198094cf4134179d1f9c9fa8f79759a27c87e
[project/luci.git] / applications / luci-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", "Processes Plugin",
17 [[Das Processes-Plugin sammelt Informationen über ausgewählte Prozesse auf diesem Gerät.]])
18
19 -- collectd_processes config section
20 s = m:section( NamedSection, "collectd_processes", "luci_statistics", "Pluginkonfiguration" )
21
22 -- collectd_processes.enable
23 enable = s:option( Flag, "enable", "Plugin aktivieren" )
24 enable.default = 0
25
26 -- collectd_processes.processes (Process)
27 processes = s:option( Value, "Processes", "Überwachte Prozesse", "mehrere mit Leerzeichen trennen" )
28 processes.default = "olsrd bmxd httpd dnsmasq dropbear tinc"
29 processes:depends( "enable", 1 )
30
31 return m