You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zabbix_server.conf 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. # This is a configuration file for Zabbix server daemon
  2. # To get more information about Zabbix, visit http://www.zabbix.com
  3. ############ GENERAL PARAMETERS #################
  4. ### Option: ListenPort
  5. # Listen port for trapper.
  6. #
  7. # Mandatory: no
  8. # Range: 1024-32767
  9. # Default:
  10. ListenPort=ZABBIX_PORT
  11. ### Option: SourceIP
  12. # Source IP address for outgoing connections.
  13. #
  14. # Mandatory: no
  15. # Default:
  16. # SourceIP=
  17. ### Option: LogType
  18. # Specifies where log messages are written to:
  19. # system - syslog
  20. # file - file specified with LogFile parameter
  21. # console - standard output
  22. #
  23. # Mandatory: no
  24. # Default:
  25. # LogType=file
  26. ### Option: LogFile
  27. # Log file name for LogType 'file' parameter.
  28. #
  29. # Mandatory: no
  30. # Default:
  31. # LogFile=
  32. LogFile=/var/log/zabbix/zabbix_server.log
  33. ### Option: LogFileSize
  34. # Maximum size of log file in MB.
  35. # 0 - disable automatic log rotation.
  36. #
  37. # Mandatory: no
  38. # Range: 0-1024
  39. # Default:
  40. # LogFileSize=1
  41. LogFileSize=0
  42. ### Option: DebugLevel
  43. # Specifies debug level:
  44. # 0 - basic information about starting and stopping of Zabbix processes
  45. # 1 - critical information
  46. # 2 - error information
  47. # 3 - warnings
  48. # 4 - for debugging (produces lots of information)
  49. # 5 - extended debugging (produces even more information)
  50. #
  51. # Mandatory: no
  52. # Range: 0-5
  53. # Default:
  54. # DebugLevel=3
  55. ### Option: PidFile
  56. # Name of PID file.
  57. #
  58. # Mandatory: no
  59. # Default:
  60. # PidFile=/tmp/zabbix_server.pid
  61. PidFile=/var/run/zabbix/zabbix_server.pid
  62. ### Option: DBHost
  63. # Database host name.
  64. # If set to localhost, socket is used for MySQL.
  65. # If set to empty string, socket is used for PostgreSQL.
  66. #
  67. # Mandatory: no
  68. # Default:
  69. DBHost=POSTGRES_HOST
  70. ### Option: DBName
  71. # Database name.
  72. # For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
  73. #
  74. # Mandatory: yes
  75. # Default:
  76. # DBName=
  77. DBName=POSTGRES_DB
  78. ### Option: DBSchema
  79. # Schema name. Used for IBM DB2 and PostgreSQL.
  80. #
  81. # Mandatory: no
  82. # Default:
  83. # DBSchema=
  84. ### Option: DBUser
  85. # Database user. Ignored for SQLite.
  86. #
  87. # Mandatory: no
  88. # Default:
  89. # DBUser=
  90. DBUser=POSTGRES_USER
  91. ### Option: DBPassword
  92. # Database password. Ignored for SQLite.
  93. # Comment this line if no password is used.
  94. #
  95. # Mandatory: no
  96. # Default:
  97. DBPassword=POSTGRES_PASSWORD
  98. ### Option: DBSocket
  99. # Path to MySQL socket.
  100. #
  101. # Mandatory: no
  102. # Default:
  103. # DBSocket=/tmp/mysql.sock
  104. ### Option: DBPort
  105. # Database port when not using local socket. Ignored for SQLite.
  106. #
  107. # Mandatory: no
  108. # Range: 1024-65535
  109. # Default (for MySQL):
  110. # DBPort=3306
  111. ############ ADVANCED PARAMETERS ################
  112. ### Option: StartPollers
  113. # Number of pre-forked instances of pollers.
  114. #
  115. # Mandatory: no
  116. # Range: 0-1000
  117. # Default:
  118. StartPollers=20
  119. ### Option: StartIPMIPollers
  120. # Number of pre-forked instances of IPMI pollers.
  121. #
  122. # Mandatory: no
  123. # Range: 0-1000
  124. # Default:
  125. # StartIPMIPollers=0
  126. ### Option: StartPollersUnreachable
  127. # Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java).
  128. # At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers
  129. # are started.
  130. #
  131. # Mandatory: no
  132. # Range: 0-1000
  133. # Default:
  134. # StartPollersUnreachable=1
  135. ### Option: StartTrappers
  136. # Number of pre-forked instances of trappers.
  137. # Trappers accept incoming connections from Zabbix sender, active agents and active proxies.
  138. # At least one trapper process must be running to display server availability and view queue
  139. # in the frontend.
  140. #
  141. # Mandatory: no
  142. # Range: 0-1000
  143. # Default:
  144. # StartTrappers=5
  145. ### Option: StartPingers
  146. # Number of pre-forked instances of ICMP pingers.
  147. #
  148. # Mandatory: no
  149. # Range: 0-1000
  150. # Default:
  151. # StartPingers=1
  152. ### Option: StartDiscoverers
  153. # Number of pre-forked instances of discoverers.
  154. #
  155. # Mandatory: no
  156. # Range: 0-250
  157. # Default:
  158. # StartDiscoverers=1
  159. ### Option: StartHTTPPollers
  160. # Number of pre-forked instances of HTTP pollers.
  161. #
  162. # Mandatory: no
  163. # Range: 0-1000
  164. # Default:
  165. # StartHTTPPollers=1
  166. ### Option: StartTimers
  167. # Number of pre-forked instances of timers.
  168. # Timers process time-based trigger functions and maintenance periods.
  169. # Only the first timer process handles the maintenance periods.
  170. #
  171. # Mandatory: no
  172. # Range: 1-1000
  173. # Default:
  174. # StartTimers=1
  175. ### Option: StartEscalators
  176. # Number of pre-forked instances of escalators.
  177. #
  178. # Mandatory: no
  179. # Range: 0-100
  180. # Default:
  181. # StartEscalators=1
  182. ### Option: JavaGateway
  183. # IP address (or hostname) of Zabbix Java gateway.
  184. # Only required if Java pollers are started.
  185. #
  186. # Mandatory: no
  187. # Default:
  188. # JavaGateway=
  189. ### Option: JavaGatewayPort
  190. # Port that Zabbix Java gateway listens on.
  191. #
  192. # Mandatory: no
  193. # Range: 1024-32767
  194. # Default:
  195. # JavaGatewayPort=10052
  196. ### Option: StartJavaPollers
  197. # Number of pre-forked instances of Java pollers.
  198. #
  199. # Mandatory: no
  200. # Range: 0-1000
  201. # Default:
  202. # StartJavaPollers=0
  203. ### Option: StartVMwareCollectors
  204. # Number of pre-forked vmware collector instances.
  205. #
  206. # Mandatory: no
  207. # Range: 0-250
  208. # Default:
  209. # StartVMwareCollectors=0
  210. ### Option: VMwareFrequency
  211. # How often Zabbix will connect to VMware service to obtain a new data.
  212. #
  213. # Mandatory: no
  214. # Range: 10-86400
  215. # Default:
  216. # VMwareFrequency=60
  217. ### Option: VMwarePerfFrequency
  218. # How often Zabbix will connect to VMware service to obtain performance data.
  219. #
  220. # Mandatory: no
  221. # Range: 10-86400
  222. # Default:
  223. # VMwarePerfFrequency=60
  224. ### Option: VMwareCacheSize
  225. # Size of VMware cache, in bytes.
  226. # Shared memory size for storing VMware data.
  227. # Only used if VMware collectors are started.
  228. #
  229. # Mandatory: no
  230. # Range: 256K-2G
  231. # Default:
  232. # VMwareCacheSize=8M
  233. ### Option: VMwareTimeout
  234. # Specifies how many seconds vmware collector waits for response from VMware service.
  235. #
  236. # Mandatory: no
  237. # Range: 1-300
  238. # Default:
  239. # VMwareTimeout=10
  240. ### Option: SNMPTrapperFile
  241. # Temporary file used for passing data from SNMP trap daemon to the server.
  242. # Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.
  243. #
  244. # Mandatory: no
  245. # Default:
  246. # SNMPTrapperFile=/tmp/zabbix_traps.tmp
  247. ### Option: StartSNMPTrapper
  248. # If 1, SNMP trapper process is started.
  249. #
  250. # Mandatory: no
  251. # Range: 0-1
  252. # Default:
  253. # StartSNMPTrapper=0
  254. ### Option: ListenIP
  255. # List of comma delimited IP addresses that the trapper should listen on.
  256. # Trapper will listen on all network interfaces if this parameter is missing.
  257. #
  258. # Mandatory: no
  259. # Default:
  260. ListenIP=0.0.0.0
  261. ### Option: HousekeepingFrequency
  262. # How often Zabbix will perform housekeeping procedure (in hours).
  263. # Housekeeping is removing outdated information from the database.
  264. # To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency
  265. # hours of outdated information are deleted in one housekeeping cycle, for each item.
  266. # To lower load on server startup housekeeping is postponed for 30 minutes after server start.
  267. # With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option.
  268. # In this case the period of outdated information deleted in one housekeeping cycle is 4 times the
  269. # period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days.
  270. #
  271. # Mandatory: no
  272. # Range: 0-24
  273. # Default:
  274. # HousekeepingFrequency=1
  275. ### Option: MaxHousekeeperDelete
  276. # The table "housekeeper" contains "tasks" for housekeeping procedure in the format:
  277. # [housekeeperid], [tablename], [field], [value].
  278. # No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value])
  279. # will be deleted per one task in one housekeeping cycle.
  280. # SQLite3 does not use this parameter, deletes all corresponding rows without a limit.
  281. # If set to 0 then no limit is used at all. In this case you must know what you are doing!
  282. #
  283. # Mandatory: no
  284. # Range: 0-1000000
  285. # Default:
  286. # MaxHousekeeperDelete=5000
  287. ### Option: SenderFrequency
  288. # How often Zabbix will try to send unsent alerts (in seconds).
  289. #
  290. # Mandatory: no
  291. # Range: 5-3600
  292. # Default:
  293. # SenderFrequency=30
  294. ### Option: CacheSize
  295. # Size of configuration cache, in bytes.
  296. # Shared memory size for storing host, item and trigger data.
  297. #
  298. # Mandatory: no
  299. # Range: 128K-8G
  300. # Default:
  301. # CacheSize=8M
  302. ### Option: CacheUpdateFrequency
  303. # How often Zabbix will perform update of configuration cache, in seconds.
  304. #
  305. # Mandatory: no
  306. # Range: 1-3600
  307. # Default:
  308. # CacheUpdateFrequency=60
  309. ### Option: StartDBSyncers
  310. # Number of pre-forked instances of DB Syncers.
  311. #
  312. # Mandatory: no
  313. # Range: 1-100
  314. # Default:
  315. # StartDBSyncers=4
  316. ### Option: HistoryCacheSize
  317. # Size of history cache, in bytes.
  318. # Shared memory size for storing history data.
  319. #
  320. # Mandatory: no
  321. # Range: 128K-2G
  322. # Default:
  323. # HistoryCacheSize=16M
  324. ### Option: HistoryIndexCacheSize
  325. # Size of history index cache, in bytes.
  326. # Shared memory size for indexing history cache.
  327. #
  328. # Mandatory: no
  329. # Range: 128K-2G
  330. # Default:
  331. # HistoryIndexCacheSize=4M
  332. ### Option: TrendCacheSize
  333. # Size of trend cache, in bytes.
  334. # Shared memory size for storing trends data.
  335. #
  336. # Mandatory: no
  337. # Range: 128K-2G
  338. # Default:
  339. # TrendCacheSize=4M
  340. ### Option: ValueCacheSize
  341. # Size of history value cache, in bytes.
  342. # Shared memory size for caching item history data requests.
  343. # Setting to 0 disables value cache.
  344. #
  345. # Mandatory: no
  346. # Range: 0,128K-64G
  347. # Default:
  348. # ValueCacheSize=8M
  349. ### Option: Timeout
  350. # Specifies how long we wait for agent, SNMP device or external check (in seconds).
  351. #
  352. # Mandatory: no
  353. # Range: 1-30
  354. # Default:
  355. # Timeout=3
  356. Timeout=10
  357. ### Option: TrapperTimeout
  358. # Specifies how many seconds trapper may spend processing new data.
  359. #
  360. # Mandatory: no
  361. # Range: 1-300
  362. # Default:
  363. # TrapperTimeout=300
  364. ### Option: UnreachablePeriod
  365. # After how many seconds of unreachability treat a host as unavailable.
  366. #
  367. # Mandatory: no
  368. # Range: 1-3600
  369. # Default:
  370. # UnreachablePeriod=45
  371. ### Option: UnavailableDelay
  372. # How often host is checked for availability during the unavailability period, in seconds.
  373. #
  374. # Mandatory: no
  375. # Range: 1-3600
  376. # Default:
  377. # UnavailableDelay=60
  378. ### Option: UnreachableDelay
  379. # How often host is checked for availability during the unreachability period, in seconds.
  380. #
  381. # Mandatory: no
  382. # Range: 1-3600
  383. # Default:
  384. # UnreachableDelay=15
  385. ### Option: AlertScriptsPath
  386. # Full path to location of custom alert scripts.
  387. # Default depends on compilation options.
  388. #
  389. # Mandatory: no
  390. # Default:
  391. # AlertScriptsPath=${datadir}/zabbix/alertscripts
  392. AlertScriptsPath=/usr/lib/zabbix/alertscripts
  393. ### Option: ExternalScripts
  394. # Full path to location of external scripts.
  395. # Default depends on compilation options.
  396. #
  397. # Mandatory: no
  398. # Default:
  399. # ExternalScripts=${datadir}/zabbix/externalscripts
  400. ExternalScripts=/usr/lib/zabbix/externalscripts
  401. ### Option: FpingLocation
  402. # Location of fping.
  403. # Make sure that fping binary has root ownership and SUID flag set.
  404. #
  405. # Mandatory: no
  406. # Default:
  407. # FpingLocation=/usr/sbin/fping
  408. FpingLocation=/usr/bin/fping
  409. ### Option: Fping6Location
  410. # Location of fping6.
  411. # Make sure that fping6 binary has root ownership and SUID flag set.
  412. # Make empty if your fping utility is capable to process IPv6 addresses.
  413. #
  414. # Mandatory: no
  415. # Default:
  416. # Fping6Location=/usr/sbin/fping6
  417. Fping6Location=/usr/bin/fping6
  418. ### Option: SSHKeyLocation
  419. # Location of public and private keys for SSH checks and actions.
  420. #
  421. # Mandatory: no
  422. # Default:
  423. # SSHKeyLocation=
  424. ### Option: LogSlowQueries
  425. # How long a database query may take before being logged (in milliseconds).
  426. # Only works if DebugLevel set to 3, 4 or 5.
  427. # 0 - don't log slow queries.
  428. #
  429. # Mandatory: no
  430. # Range: 1-3600000
  431. # Default:
  432. # LogSlowQueries=0
  433. LogSlowQueries=3000
  434. ### Option: TmpDir
  435. # Temporary directory.
  436. #
  437. # Mandatory: no
  438. # Default:
  439. # TmpDir=/tmp
  440. ### Option: StartProxyPollers
  441. # Number of pre-forked instances of pollers for passive proxies.
  442. #
  443. # Mandatory: no
  444. # Range: 0-250
  445. # Default:
  446. # StartProxyPollers=1
  447. ### Option: ProxyConfigFrequency
  448. # How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds.
  449. # This parameter is used only for proxies in the passive mode.
  450. #
  451. # Mandatory: no
  452. # Range: 1-3600*24*7
  453. # Default:
  454. # ProxyConfigFrequency=3600
  455. ### Option: ProxyDataFrequency
  456. # How often Zabbix Server requests history data from a Zabbix Proxy in seconds.
  457. # This parameter is used only for proxies in the passive mode.
  458. #
  459. # Mandatory: no
  460. # Range: 1-3600
  461. # Default:
  462. # ProxyDataFrequency=1
  463. ### Option: AllowRoot
  464. # Allow the server to run as 'root'. If disabled and the server is started by 'root', the server
  465. # will try to switch to the user specified by the User configuration option instead.
  466. # Has no effect if started under a regular user.
  467. # 0 - do not allow
  468. # 1 - allow
  469. #
  470. # Mandatory: no
  471. # Default:
  472. # AllowRoot=0
  473. ### Option: User
  474. # Drop privileges to a specific, existing user on the system.
  475. # Only has effect if run as 'root' and AllowRoot is disabled.
  476. #
  477. # Mandatory: no
  478. # Default:
  479. # User=zabbix
  480. ### Option: Include
  481. # You may include individual files or all files in a directory in the configuration file.
  482. # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
  483. #
  484. # Mandatory: no
  485. # Default:
  486. # Include=
  487. # Include=/usr/local/etc/zabbix_server.general.conf
  488. # Include=/usr/local/etc/zabbix_server.conf.d/
  489. # Include=/usr/local/etc/zabbix_server.conf.d/*.conf
  490. ### Option: SSLCertLocation
  491. # Location of SSL client certificates.
  492. # This parameter is used only in web monitoring.
  493. #
  494. # Mandatory: no
  495. # Default:
  496. # SSLCertLocation=${datadir}/zabbix/ssl/certs
  497. ### Option: SSLKeyLocation
  498. # Location of private keys for SSL client certificates.
  499. # This parameter is used only in web monitoring.
  500. #
  501. # Mandatory: no
  502. # Default:
  503. # SSLKeyLocation=${datadir}/zabbix/ssl/keys
  504. ### Option: SSLCALocation
  505. # Override the location of certificate authority (CA) files for SSL server certificate verification.
  506. # If not set, system-wide directory will be used.
  507. # This parameter is used only in web monitoring and SMTP authentication.
  508. #
  509. # Mandatory: no
  510. # Default:
  511. # SSLCALocation=
  512. ####### LOADABLE MODULES #######
  513. ### Option: LoadModulePath
  514. # Full path to location of server modules.
  515. # Default depends on compilation options.
  516. #
  517. # Mandatory: no
  518. # Default:
  519. # LoadModulePath=${libdir}/modules
  520. ### Option: LoadModule
  521. # Module to load at server startup. Modules are used to extend functionality of the server.
  522. # Format: LoadModule=<module.so>
  523. # The modules must be located in directory specified by LoadModulePath.
  524. # It is allowed to include multiple LoadModule parameters.
  525. #
  526. # Mandatory: no
  527. # Default:
  528. # LoadModule=
  529. ####### TLS-RELATED PARAMETERS #######
  530. ### Option: TLSCAFile
  531. # Full pathname of a file containing the top-level CA(s) certificates for
  532. # peer certificate verification.
  533. #
  534. # Mandatory: no
  535. # Default:
  536. # TLSCAFile=
  537. ### Option: TLSCRLFile
  538. # Full pathname of a file containing revoked certificates.
  539. #
  540. # Mandatory: no
  541. # Default:
  542. # TLSCRLFile=
  543. ### Option: TLSCertFile
  544. # Full pathname of a file containing the server certificate or certificate chain.
  545. #
  546. # Mandatory: no
  547. # Default:
  548. # TLSCertFile=
  549. ### Option: TLSKeyFile
  550. # Full pathname of a file containing the server private key.
  551. #
  552. # Mandatory: no
  553. # Default:
  554. # TLSKeyFile=