kopano-monitor.cfg.5 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. '\" t
  2. .\" Title: kopano-monitor.cfg
  3. .\" Author: [see the "Author" section]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: November 2016
  6. .\" Manual: Kopano Core user reference
  7. .\" Source: Kopano 8
  8. .\" Language: English
  9. .\"
  10. .TH "KOPANO\-MONITOR\&.CF" "5" "November 2016" "Kopano 8" "Kopano Core user reference"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. kopano-monitor.cfg \- The Kopano monitor configuration file
  32. .SH "SYNOPSIS"
  33. .PP
  34. \fBmonitor\&.cfg\fR
  35. .SH "DESCRIPTION"
  36. .PP
  37. The
  38. monitor\&.cfg
  39. is a configuration file for the Kopano Monitor\&.
  40. monitor\&.cfg
  41. contains instructions for the software to set up the logging system\&.
  42. .SH "FILE FORMAT"
  43. .PP
  44. The file consists of one big section, but parameters can be grouped by functionality\&.
  45. .PP
  46. The parameters are written in the form:
  47. .PP
  48. \fBname\fR
  49. =
  50. \fIvalue\fR
  51. .PP
  52. The file is line\-based\&. Each newline\-terminated line represents either a comment, nothing, a parameter or a directive\&. A line beginning with `#\*(Aq is considered a comment, and will be ignored by Kopano\&. Parameter names are case sensitive\&. Lines beginning with `!\*(Aq are directives\&.
  53. .PP
  54. Directives are written in the form:
  55. .PP
  56. !\fBdirective\fR
  57. \fI[argument(s)] \fR
  58. .PP
  59. The following directives exist:
  60. .PP
  61. \fBinclude\fR
  62. .RS 4
  63. Include and process
  64. \fIargument\fR
  65. .sp
  66. Example: !include common\&.cfg
  67. .RE
  68. .PP
  69. The types of parameters for the spooler are: server, smtp and log\&.
  70. .SH "EXPLANATION OF EACH PARAMETER"
  71. .PP
  72. \fBquota_check_interval\fR
  73. .RS 4
  74. Set the interval (in minutes) for checking the quota for all Kopano users\&.
  75. .sp
  76. Default:
  77. \fI15\fR
  78. .RE
  79. .PP
  80. \fBmailquota_resend_interval\fR
  81. .RS 4
  82. Send interval of a quota mail in days when a user reache his warning, soft or hard quota\&.
  83. .sp
  84. Default:
  85. \fI1\fR
  86. .RE
  87. .PP
  88. \fBserver_socket\fR
  89. .RS 4
  90. Connection URL to find the connection to the Kopano server\&.
  91. .sp
  92. Default:
  93. \fIfile:///var/run/kopano/server\&.sock\fR
  94. .RE
  95. .PP
  96. \fBrun_as_user\fR
  97. .RS 4
  98. After correctly starting, the monitor process will become this user, dropping root privileges\&. Note that the log file needs to be writeable by this user, and the directory too to create new logfiles after logrotation\&. This can also be achieved by setting the correct group and permissions\&.
  99. .sp
  100. Default value is empty, not changing the user after starting\&.
  101. .RE
  102. .PP
  103. \fBrun_as_group\fR
  104. .RS 4
  105. After correctly starting, the monitor process will become this group, dropping root privileges\&.
  106. .sp
  107. Default value is empty, not changing the group after starting\&.
  108. .RE
  109. .PP
  110. \fBpid_file\fR
  111. .RS 4
  112. Write the process ID number to this file\&. This is used by the init\&.d script to correctly stop/restart the service\&.
  113. .sp
  114. Default value: /var/run/kopano/monitor\&.pid
  115. .RE
  116. .PP
  117. \fBrunning_path\fR
  118. .RS 4
  119. Change directory to this path when running in daemonize mode\&. When using the \-F switch to run in the foreground the directory will not be changed\&.
  120. .sp
  121. Default:
  122. \fI/\fR
  123. .RE
  124. .PP
  125. \fBsslkey_file\fR
  126. .RS 4
  127. Use this file as key to logon to the server\&. This is only used when server_socket is set to an HTTPS transport\&. See the
  128. \fBkopano-server\fR(8)
  129. manual page on how to setup SSL keys\&.
  130. .sp
  131. Default: value not set\&.
  132. .RE
  133. .PP
  134. \fBsslkey_pass\fR
  135. .RS 4
  136. The password of the SSL key file that is set in sslkey_file\&.
  137. .sp
  138. Default: value not set\&.
  139. .RE
  140. .PP
  141. \fBlog_method\fR
  142. .RS 4
  143. The method which should be used for logging\&. Valid values are:
  144. .PP
  145. \fIsyslog\fR
  146. .RS 4
  147. Use the Linux system log\&. All messages will be written to the mail facility\&. See also
  148. \fBsyslog.conf\fR(5)\&.
  149. .RE
  150. .PP
  151. \fIfile\fR
  152. .RS 4
  153. Log to a file\&. The filename will be specified in
  154. \fBlog_file\fR\&.
  155. .RE
  156. .sp
  157. Default:
  158. \fIfile\fR
  159. .RE
  160. .PP
  161. \fBlog_file\fR
  162. .RS 4
  163. When logging to a file, specify the filename in this parameter\&. Use
  164. \fI\-\fR
  165. (minus sign) for stderr output\&.
  166. .sp
  167. Default:
  168. \fI/var/log/kopano/monitor\&.log\fR
  169. .RE
  170. .PP
  171. \fBlog_timestamp\fR
  172. .RS 4
  173. Specify whether to prefix each log line with a timestamp in \*(Aqfile\*(Aq logging mode\&.
  174. .sp
  175. Default:
  176. \fI1\fR
  177. .RE
  178. .PP
  179. \fBlog_buffer_size\fR
  180. .RS 4
  181. Buffer logging in what sized blocks\&. The special value 0 selects line buffering\&.
  182. .sp
  183. Default:
  184. \fI0\fR
  185. .RE
  186. .PP
  187. \fBlog_level\fR
  188. .RS 4
  189. The level of output for logging in the range from 0 to 5\&. 0 means no logging, 5 means full logging\&.
  190. .sp
  191. Default:
  192. \fI2\fR
  193. .RE
  194. .PP
  195. \fBuserquota_warning_template\fR, \fBcompanyquota_warning_template\fR
  196. .RS 4
  197. These templates are read by the kopano\-monitor when a user or tenant exceeds a particular quota level\&. In these templates multiple variables can be used which will be replaced before sending the quota warning email\&.
  198. .sp
  199. These files should be saved in the UTF\-8 charset\&. UTF\-8 is compatible with US\-ASCII, so if you only use western characters, there is no need for special measurements\&.
  200. .PP
  201. \fI${KOPANO_QUOTA_NAME}\fR
  202. .RS 4
  203. userquota template: The name of the user who exceeded his quota
  204. .sp
  205. companyquota template: The name of the tenant which exceeded its quota
  206. .RE
  207. .PP
  208. \fI${KOPANO_QUOTA_FULLNAME}\fR
  209. .RS 4
  210. userquota template: The fullname for the user who exceeded his quota
  211. .sp
  212. tenantquota template: The name of the tenant which exceeded its quota
  213. .RE
  214. .PP
  215. \fI${KOPANO_QUOTA_COMPANY}\fR
  216. .RS 4
  217. userquota template: The name of the tenant to which the user belongs
  218. .sp
  219. tenantquota template: The name of the tenant which exceeded its quota
  220. .RE
  221. .PP
  222. \fI${KOPANO_QUOTA_STORE_SIZE}\fR
  223. .RS 4
  224. userquota template: The total size of the user\*(Aqs store
  225. .sp
  226. companyquota template: The total size of all stores (including the public store) which belong to this tenant
  227. .sp
  228. Note: The size unit (KB,MB) is part of the variable
  229. .RE
  230. .PP
  231. \fI${KOPANO_QUOTA_WARN_SIZE}\fR
  232. .RS 4
  233. The quota warning level
  234. .sp
  235. Note: The size unit (KB,MB) is part of the variable
  236. .RE
  237. .PP
  238. \fI${KOPANO_QUOTA_SOFT_SIZE}\fR
  239. .RS 4
  240. The quota soft level
  241. .sp
  242. Note: The size unit (KB,MB) is part of the variable
  243. .RE
  244. .PP
  245. \fI${KOPANO_QUOTA_HARD_SIZE}\fR
  246. .RS 4
  247. The quota hard limit
  248. .sp
  249. Note: The size unit (KB,MB) is part of the variable
  250. .RE
  251. .RE
  252. .SH "RELOADING"
  253. .PP
  254. The following options are reloadable by sending the kopano\-monitor process a HUP signal:
  255. .PP
  256. log_level, mailquota_resend_interval, userquota_warning_template
  257. .RS 4
  258. .RE
  259. .SH "FILES"
  260. .PP
  261. /etc/kopano/monitor\&.cfg
  262. .RS 4
  263. The Kopano monitor configuration file\&.
  264. .RE
  265. .SH "AUTHOR"
  266. .PP
  267. Written by Kopano\&.
  268. .SH "SEE ALSO"
  269. .PP
  270. \fBkopano-monitor\fR(8)