Revision f511082f lib/constants.py

b/lib/constants.py
157 157
CONFD = "ganeti-confd"
158 158
RAPI = "ganeti-rapi"
159 159
MASTERD = "ganeti-masterd"
160
MOND = "ganeti-mond"
160 161

  
161 162
DAEMONS = compat.UniqueFrozenset([
162 163
  NODED,
163 164
  CONFD,
164 165
  RAPI,
165 166
  MASTERD,
167
  MOND,
166 168
  ])
167 169

  
168 170
DAEMONS_PORTS = {
......
172 174
  RAPI: ("tcp", 5080),
173 175
  SSH: ("tcp", 22),
174 176
}
177

  
175 178
DEFAULT_NODED_PORT = DAEMONS_PORTS[NODED][1]
176 179
DEFAULT_CONFD_PORT = DAEMONS_PORTS[CONFD][1]
177 180
DEFAULT_RAPI_PORT = DAEMONS_PORTS[RAPI][1]
......
184 187
  CONFD: "conf-daemon",
185 188
  RAPI: "rapi-daemon",
186 189
  MASTERD: "master-daemon",
190
  MOND: "monitoring-daemon",
187 191
  }
188 192

  
189 193
DAEMONS_LOGFILES = \
......
191 195
         for daemon in DAEMONS_LOGBASE)
192 196

  
193 197
# Some daemons might require more than one logfile.
198
# Specifically, right now only the Haskell http library "snap", used by the
199
# monitoring daemon, requires multiple log files.
194 200

  
195 201
# These are the only valid reasons for having an extra logfile
196 202
EXTRA_LOGREASON_ACCESS = "access"
......
202 208
  ])
203 209

  
204 210
# These are the extra logfiles, grouped by daemon
205
DAEMONS_EXTRA_LOGBASE = {}
211
DAEMONS_EXTRA_LOGBASE = {
212
  MOND: {
213
    EXTRA_LOGREASON_ACCESS: "monitoring-daemon-access",
214
    EXTRA_LOGREASON_ERROR: "monitoring-daemon-error",
215
    }
216
  }
206 217

  
207 218
DAEMONS_EXTRA_LOGFILES = \
208 219
  dict((daemon, dict((extra,

Also available in: Unified diff