Advertisement
Guest User

zabbix_proxy.conf

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