Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / deployment / settings.ini @ c424d010

History | View | Annotate | Download (4.6 KB)

1
;
2
; vigiboard - Pylons development environment configuration
3
;
4
; The %(here)s variable will be replaced with the parent directory of this file
5
;
6
; This file is for deployment specific config options -- other configuration
7
; that is always required for the app is done in the config directory, 
8
; and generally should not be modified by end users. 
9

    
10
[DEFAULT]
11
debug = false
12
; Uncomment and replace with the address which should receive any error reports
13
;email_to = you@yourdomain.com
14
smtp_server = localhost
15
error_email_from = paste@localhost
16

    
17
[server:main]
18
use = egg:Paste#http
19
host = 0.0.0.0 
20
port = 80
21

    
22
[app:main]
23
use = egg:vigiboard
24

    
25
db_basename=vigilo_
26
password_hashing_function=md5
27
lang=fr
28
use_kerberos=False
29
help_link=http://foo.bar/help
30

    
31
; Délai de rafraichissement par défaut.
32
; Doit valoir une des valeurs dans app_cfg.py
33
; (voir vigiboard_refresh_times)
34
default_refresh=30
35

    
36
; Nombre d'événements par page.
37
vigiboard_items_per_page = 15
38

    
39
; URL vers laquelle le logo de Vigilo redirige.
40
logo_link = /
41

    
42
; Ordre de tri pour la priorité des événements.
43
; - Utiliser "asc" si la priorité est inversement proportionnelle à sa
44
;   valeur (ie: plus le nombre est bas, plus la priorité est élevée).
45
; - Utiliser "desc" si la priorité est proportionnelle à sa valeur
46
;   (ie: plus le nombre est élevé, plus la priorité est élevée).
47
; NE PAS METTRE DE GUILLEMETS/APOSTROPHES AUTOUR DE LA VALEUR.
48
vigiboard_priority_order = asc
49

    
50
; Default font size, must be a valid size as per the CSS 2.1 specification.
51
; See http://www.w3.org/TR/CSS21/fonts.html#font-size-props
52
vigiboard_font.size = 10px
53

    
54
; Indique si le tri des événements se fait d'abord sur l'état Nagios
55
; puis l'horodatage de l'événement, ou bien l'inverse.
56
; Dans tous les cas, d'autres critères de tri interviennent avant
57
; (état d'acquittement et priorité ITIL).
58
state_first = True
59

    
60
; Emplacement des applications (rrdgraph, Nagios, ...)
61
; sur les serveurs distants.
62
app_path.nagios = /nagios/
63

    
64
; Schéma ("protocol") à utiliser pour se connecter
65
; à l'application. En général : http ou https.
66
; Par défaut : http
67
app_scheme.nagios = http
68

    
69
; Port de connexion au serveur distant hébergeant
70
; l'application.
71
; Par défaut : 80
72
app_port.nagios = 80
73

    
74
full_stack = true
75
cache_dir = /tmp/vigilo/vigiboard/data
76
beaker.session.key = vigiboard
77
beaker.session.secret = vigilo
78
sa_auth.cookie_secret = vigilo
79

    
80
; If you'd like to fine-tune the individual locations of the cache data dirs
81
; for the Cache data, or the Session saves, un-comment the desired settings
82
; here:
83
;beaker.cache.data_dir = %(here)s/data/cache
84
;beaker.session.data_dir = %(here)s/data/sessions
85

    
86
; DB - sqlite fails, not postgresql ready, use mysql for now
87
sqlalchemy.url=postgres://vigilo:vigilo@localhost/vigilo
88

    
89
; echo shouldn't be used together with the logging module.
90
sqlalchemy.echo = false
91
sqlalchemy.echo_pool = false
92
sqlalchemy.pool_recycle = 3600
93

    
94
base_url_filter.base_url=
95
set debug = false
96

    
97
; Logging configuration
98
; Add additional loggers, handlers, formatters here
99
; Uses python's logging config file format
100
; http://docs.python.org/lib/logging-config-fileformat.html
101

    
102
[loggers]
103
keys = root, vigiboard, sqlalchemy, auth
104

    
105
[handlers]
106
keys = console,sql_log,root_log,vigiboard_log,auth_log
107

    
108
[formatters]
109
keys = generic
110

    
111
; If you create additional loggers, add them as a key to [loggers]
112
[logger_root]
113
level = INFO
114
handlers = root_log
115

    
116
[logger_vigiboard]
117
level = INFO
118
handlers = vigiboard_log
119
qualname = vigiboard
120

    
121
[logger_sqlalchemy]
122
level = INFO
123
handlers = sql_log
124
qualname = sqlalchemy.engine
125

    
126
; A logger for authentication, identification and authorization -- this is
127
; repoze.who and repoze.what:
128
[logger_auth]
129
level = INFO
130
handlers = auth_log
131
qualname = auth
132

    
133
; If you create additional handlers, add them as a key to [handlers]
134
[handler_console]
135
class = StreamHandler
136
args = (sys.stderr,)
137
level = NOTSET
138
formatter = generic
139

    
140
[handler_sql_log]
141
class = handlers.TimedRotatingFileHandler
142
args = ('/var/log/vigilo/vigiboard/sql.log','D', 30, 12)
143
level = DEBUG
144
formatter = generic
145

    
146
[handler_root_log]
147
class = handlers.TimedRotatingFileHandler
148
args = ('/var/log/vigilo/vigiboard/root.log', 'D', 30, 12)
149
level = DEBUG
150
formatter = generic
151

    
152
[handler_vigiboard_log]
153
class = handlers.TimedRotatingFileHandler
154
args = ('/var/log/vigilo/vigiboard/vigiboard.log', 'D', 30, 12)
155
level = DEBUG
156
formatter = generic
157

    
158
[handler_auth_log]
159
class = handlers.TimedRotatingFileHandler
160
args = ('/var/log/vigilo/vigiboard/auth.log', 'D', 30, 12)
161
level = DEBUG
162
formatter = generic
163

    
164
; If you create additional formatters, add them as a key to [formatters]
165
[formatter_generic]
166
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
167
datefmt = %H:%M:%S
168