* luci/statistics: ffluci -> luci conversation
[project/luci.git] / applications / luci-statistics / src / model / cbi / luci_statistics / collectd.lua
1 --[[
2
3 Luci configuration model for statistics - general collectd 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 require("luci.sys")
17
18
19 m = Map("luci_statistics", "Collector Daemon",
20 [[Collectd ist ein kleiner und flexibler Dienst zum Sammeln und Abfragen von Daten
21 aus verschieden Quellen. Zur weiteren Verarbeitung werden die Daten in RRD Datenbanken
22 gespeichert oder per Multicast Relaying über das Netzwerk versendet.]])
23
24 -- general config section
25 s = m:section( NamedSection, "general", "luci_statistics", "Allgemeine Einstellungen" )
26
27 -- general.basedir (BaseDir)
28 basedir = s:option( Value, "BaseDir", "Basisverzeichnis" )
29 basedir.default = "/var/run/collectd"
30
31 -- general.include (Include)
32 include = s:option( Value, "Include", "Verzeichnis für Unterkonfigurationen" )
33 include.default = "/etc/collectd/conf.d/*.conf"
34
35 -- general.pidfile (PIDFile)
36 pidfile = s:option( Value, "PIDFile", "PID-Datei für den Collector Dienst" )
37 pidfile.default = "/var/run/collectd.pid"
38
39 -- general.plugindir (PluginDir)
40 plugindir = s:option( Value, "PluginDir", "Verzeichnis für die Collector-Plugins" )
41 plugindir.default = "/usr/lib/collectd/"
42
43 -- general.typesdb (TypesDB)
44 typesdb = s:option( Value, "TypesDB", "Datenbank mit den Datenset-Beschreibungen" )
45 typesdb.default = "/etc/collectd/types.db"
46
47 -- general.interval (Interval)
48 interval = s:option( Value, "Interval", "Abfrageintervall für die Datenerfassung", "Sekunden" )
49 interval.default  = 60
50 interval.isnumber = true
51
52 -- general.readthreads (ReadThreads)
53 readthreads = s:option( Value, "ReadThreads", "Anzahl paralleler Prozesse für die Datenabfrage" )
54 readthreads.default  = 5
55 readthreads.isnumber = true
56
57 -- general.hostname (Hostname)
58 hostname = s:option( Value, "Hostname", "Hostname zur Identifikation des Collector Dienstes (leer lassen um den Namen automatisch zu bestimmen)" )
59 hostname.default  = luci.sys.hostname()
60 hostname.optional = true
61
62 -- general.fqdnlookup (FQDNLookup)
63 fqdnlookup = s:option( Flag, "FQDNLookup", "Versuchen den vollen Hostnamen dieser Installation herauszufinden" )
64 fqdnlookup.enabled  = "true"
65 fqdnlookup.disabled = "false"
66 fqdnlookup.default  = "false"
67 fqdnlookup.optional = true
68 fqdnlookup:depends( "Hostname", "" )
69
70
71 return m