9af3cdc95705e4a03e82e68cfbe769d434b43c16
[project/luci.git] / applications / luci-statistics / src / model / cbi / admin_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.processs (Process)
27 processes = s:option( Value, "Processs", "Überwachte Prozesse", "mehrere mit Leerzeichen trennen" )
28 processes.default = "olsrd bmxd httpd dnsmasq dropbear tinc"
29 processes:depends( "enable", 1 )
30
31 return m