Advertisement
Guest User

Untitled

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