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

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