e59a4b8f7e8e37eff2513e786c260cbd02f9e06f
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / load.lua
1 --[[
2
3 Luci configuration model for statistics - collectd load 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("Load Plugin Configuration"),
18         translate(
19                 "The load plugin collects statistics about the general system load."
20         ))
21
22 -- collectd_wireless config section
23 s = m:section( NamedSection, "collectd_load", "luci_statistics" )
24
25 -- collectd_wireless.enable
26 enable = s:option( Flag, "enable", translate("Enable this plugin") )
27 enable.default = 0
28
29 return m