Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
30
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=0
  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.105
  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=Proxy-Filial
  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.200.111
  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=0
  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=3
  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=192.168.200.111
  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=PostgreSQL
  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=4linux
  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=300
  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=192.168.200.115
  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=5
  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. ### Option: StartSNMPTrapper
  363. # If 1, SNMP trapper process is started.
  364. #
  365. # Mandatory: no
  366. # Range: 0-1
  367. # Default:
  368. # StartSNMPTrapper=0
  369.  
  370. ### Option: ListenIP
  371. # List of comma delimited IP addresses that the trapper should listen on.
  372. # Trapper will listen on all network interfaces if this parameter is missing.
  373. #
  374. # Mandatory: no
  375. # Default:
  376. # ListenIP=0.0.0.0
  377.  
  378. ### Option: HousekeepingFrequency
  379. # How often Zabbix will perform housekeeping procedure (in hours).
  380. # Housekeeping is removing outdated information from the database.
  381. # To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency
  382. # hours of outdated information are deleted in one housekeeping cycle.
  383. # To lower load on proxy startup housekeeping is postponed for 30 minutes after proxy start.
  384. # With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option.
  385. # In this case the period of outdated information deleted in one housekeeping cycle is 4 times the
  386. # period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days.
  387. #
  388. # Mandatory: no
  389. # Range: 0-24
  390. # Default:
  391. # HousekeepingFrequency=1
  392.  
  393. ### Option: CacheSize
  394. # Size of configuration cache, in bytes.
  395. # Shared memory size, for storing hosts and items data.
  396. #
  397. # Mandatory: no
  398. # Range: 128K-8G
  399. # Default:
  400. # CacheSize=8M
  401.  
  402. ### Option: StartDBSyncers
  403. # Number of pre-forked instances of DB Syncers.
  404. #
  405. # Mandatory: no
  406. # Range: 1-100
  407. # Default:
  408. # StartDBSyncers=4
  409.  
  410. ### Option: HistoryCacheSize
  411. # Size of history cache, in bytes.
  412. # Shared memory size for storing history data.
  413. #
  414. # Mandatory: no
  415. # Range: 128K-2G
  416. # Default:
  417. HistoryCacheSize=16M
  418.  
  419. ### Option: HistoryIndexCacheSize
  420. # Size of history index cache, in bytes.
  421. # Shared memory size for indexing history cache.
  422. #
  423. # Mandatory: no
  424. # Range: 128K-2G
  425. # Default:
  426. HistoryIndexCacheSize=4M
  427.  
  428. ### Option: Timeout
  429. # Specifies how long we wait for agent, SNMP device or external check (in seconds).
  430. #
  431. # Mandatory: no
  432. # Range: 1-30
  433. # Default:
  434. # Timeout=3
  435.  
  436. Timeout=4
  437.  
  438. ### Option: TrapperTimeout
  439. # Specifies how many seconds trapper may spend processing new data.
  440. #
  441. # Mandatory: no
  442. # Range: 1-300
  443. # Default:
  444. # TrapperTimeout=300
  445.  
  446. ### Option: UnreachablePeriod
  447. # After how many seconds of unreachability treat a host as unavailable.
  448. #
  449. # Mandatory: no
  450. # Range: 1-3600
  451. # Default:
  452. # UnreachablePeriod=45
  453.  
  454. ### Option: UnavailableDelay
  455. # How often host is checked for availability during the unavailability period, in seconds.
  456. #
  457. # Mandatory: no
  458. # Range: 1-3600
  459. # Default:
  460. # UnavailableDelay=60
  461.  
  462. ### Option: UnreachableDelay
  463. # How often host is checked for availability during the unreachability period, in seconds.
  464. #
  465. # Mandatory: no
  466. # Range: 1-3600
  467. # Default:
  468. # UnreachableDelay=15
  469.  
  470. ### Option: ExternalScripts
  471. # Full path to location of external scripts.
  472. # Default depends on compilation options.
  473. #
  474. # Mandatory: no
  475. # Default:
  476. # ExternalScripts=${datadir}/zabbix/externalscripts
  477.  
  478. ExternalScripts=/usr/lib/zabbix/externalscripts
  479.  
  480. ### Option: FpingLocation
  481. # Location of fping.
  482. # Make sure that fping binary has root ownership and SUID flag set.
  483. #
  484. # Mandatory: no
  485. # Default:
  486. # FpingLocation=/usr/sbin/fping
  487.  
  488. FpingLocation=/usr/bin/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. Fping6Location=/usr/bin/fping6
  500.  
  501. ### Option: SSHKeyLocation
  502. # Location of public and private keys for SSH checks and actions.
  503. #
  504. # Mandatory: no
  505. # Default:
  506. # SSHKeyLocation=
  507.  
  508. ### Option: LogSlowQueries
  509. # How long a database query may take before being logged (in milliseconds).
  510. # Only works if DebugLevel set to 3 or 4.
  511. # 0 - don't log slow queries.
  512. #
  513. # Mandatory: no
  514. # Range: 1-3600000
  515. # Default:
  516. # LogSlowQueries=0
  517.  
  518. LogSlowQueries=3000
  519.  
  520. ### Option: TmpDir
  521. # Temporary directory.
  522. #
  523. # Mandatory: no
  524. # Default:
  525. # TmpDir=/tmp
  526.  
  527. ### Option: AllowRoot
  528. # Allow the proxy to run as 'root'. If disabled and the proxy is started by 'root', the proxy
  529. # will try to switch to the user specified by the User configuration option instead.
  530. # Has no effect if started under a regular user.
  531. # 0 - do not allow
  532. # 1 - allow
  533. #
  534. # Mandatory: no
  535. # Default:
  536. # AllowRoot=0
  537.  
  538. ### Option: User
  539. # Drop privileges to a specific, existing user on the system.
  540. # Only has effect if run as 'root' and AllowRoot is disabled.
  541. #
  542. # Mandatory: no
  543. # Default:
  544. # User=zabbix
  545.  
  546. ### Option: Include
  547. # You may include individual files or all files in a directory in the configuration file.
  548. # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
  549. #
  550. # Mandatory: no
  551. # Default:
  552. # Include=
  553.  
  554. # Include=/usr/local/etc/zabbix_proxy.general.conf
  555. # Include=/usr/local/etc/zabbix_proxy.conf.d/
  556. # Include=/usr/local/etc/zabbix_proxy.conf.d/*.conf
  557.  
  558. ### Option: SSLCertLocation
  559. # Location of SSL client certificates.
  560. # This parameter is used only in web monitoring.
  561. #
  562. # Mandatory: no
  563. # Default:
  564. # SSLCertLocation=${datadir}/zabbix/ssl/certs
  565.  
  566. ### Option: SSLKeyLocation
  567. # Location of private keys for SSL client certificates.
  568. # This parameter is used only in web monitoring.
  569. #
  570. # Mandatory: no
  571. # Default:
  572. # SSLKeyLocation=${datadir}/zabbix/ssl/keys
  573.  
  574. ### Option: SSLCALocation
  575. # Location of certificate authority (CA) files for SSL server certificate verification.
  576. # If not set, system-wide directory will be used.
  577. # This parameter is used only in web monitoring.
  578. #
  579. # Mandatory: no
  580. # Default:
  581. # SSLCALocation=
  582.  
  583. ####### LOADABLE MODULES #######
  584.  
  585. ### Option: LoadModulePath
  586. # Full path to location of proxy modules.
  587. # Default depends on compilation options.
  588. #
  589. # Mandatory: no
  590. # Default:
  591. # LoadModulePath=${libdir}/modules
  592.  
  593. ### Option: LoadModule
  594. # Module to load at proxy startup. Modules are used to extend functionality of the proxy.
  595. # Format: LoadModule=<module.so>
  596. # The modules must be located in directory specified by LoadModulePath.
  597. # It is allowed to include multiple LoadModule parameters.
  598. #
  599. # Mandatory: no
  600. # Default:
  601. # LoadModule=
  602.  
  603. ####### TLS-RELATED PARAMETERS #######
  604.  
  605. ### Option: TLSConnect
  606. # How the proxy should connect to Zabbix server. Used for an active proxy, ignored on a passive proxy.
  607. # Only one value can be specified:
  608. # unencrypted - connect without encryption
  609. # psk - connect using TLS and a pre-shared key
  610. # cert - connect using TLS and a certificate
  611. #
  612. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  613. # Default:
  614. # TLSConnect=unencrypted
  615.  
  616. ### Option: TLSAccept
  617. # What incoming connections to accept from Zabbix server. Used for a passive proxy, ignored on an active proxy.
  618. # Multiple values can be specified, separated by comma:
  619. # unencrypted - accept connections without encryption
  620. # psk - accept connections secured with TLS and a pre-shared key
  621. # cert - accept connections secured with TLS and a certificate
  622. #
  623. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  624. # Default:
  625. # TLSAccept=unencrypted
  626.  
  627. ### Option: TLSCAFile
  628. # Full pathname of a file containing the top-level CA(s) certificates for
  629. # peer certificate verification.
  630. #
  631. # Mandatory: no
  632. # Default:
  633. # TLSCAFile=
  634.  
  635. ### Option: TLSCRLFile
  636. # Full pathname of a file containing revoked certificates.
  637. #
  638. # Mandatory: no
  639. # Default:
  640. # TLSCRLFile=
  641.  
  642. ### Option: TLSServerCertIssuer
  643. # Allowed server certificate issuer.
  644. #
  645. # Mandatory: no
  646. # Default:
  647. # TLSServerCertIssuer=
  648.  
  649. ### Option: TLSServerCertSubject
  650. # Allowed server certificate subject.
  651. #
  652. # Mandatory: no
  653. # Default:
  654. # TLSServerCertSubject=
  655.  
  656. ### Option: TLSCertFile
  657. # Full pathname of a file containing the proxy certificate or certificate chain.
  658. #
  659. # Mandatory: no
  660. # Default:
  661. # TLSCertFile=
  662.  
  663. ### Option: TLSKeyFile
  664. # Full pathname of a file containing the proxy private key.
  665. #
  666. # Mandatory: no
  667. # Default:
  668. # TLSKeyFile=
  669.  
  670. ### Option: TLSPSKIdentity
  671. # Unique, case sensitive string used to identify the pre-shared key.
  672. #
  673. # Mandatory: no
  674. # Default:
  675. # TLSPSKIdentity=
  676.  
  677. ### Option: TLSPSKFile
  678. # Full pathname of a file containing the pre-shared key.
  679. #
  680. # Mandatory: no
  681. # Default:
  682. # TLSPSKFile=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement