Advertisement
Guest User

zabbix-server

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