Advertisement
Guest User

agent in zabbix server

a guest
May 6th, 2019
2,445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.38 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. #this is the agent configuration inside the zabbix-server
  5.  
  6. ############ GENERAL PARAMETERS #################
  7.  
  8. ### Option: ListenPort
  9. # Listen port for trapper.
  10. #
  11. # Mandatory: no
  12. # Range: 1024-32767
  13. # Default:
  14. ListenPort=10051
  15.  
  16. ### Option: SourceIP
  17. # Source IP address for outgoing connections.
  18. #
  19. # Mandatory: no
  20. # Default:
  21. # SourceIP=
  22.  
  23. ### Option: LogType
  24. # Specifies where log messages are written to:
  25. # system - syslog
  26. # file - file specified with LogFile parameter
  27. # console - standard output
  28. #
  29. # Mandatory: no
  30. # Default:
  31. # LogType=file
  32.  
  33. ### Option: LogFile
  34. # Log file name for LogType 'file' parameter.
  35. #
  36. # Mandatory: yes, if LogType is set to file, otherwise no
  37. # Default:
  38. # LogFile=
  39.  
  40. LogFile=/tmp/zabbix_server.log
  41.  
  42. ### Option: LogFileSize
  43. # Maximum size of log file in MB.
  44. # 0 - disable automatic log rotation.
  45. #
  46. # Mandatory: no
  47. # Range: 0-1024
  48. # Default:
  49. #LogFileSize=1
  50.  
  51. LogFileSize=0
  52.  
  53. ### Option: DebugLevel
  54. # Specifies debug level:
  55. # 0 - basic information about starting and stopping of Zabbix processes
  56. # 1 - critical information
  57. # 2 - error information
  58. # 3 - warnings
  59. # 4 - for debugging (produces lots of information)
  60. # 5 - extended debugging (produces even more information)
  61. #
  62. # Mandatory: no
  63. # Range: 0-5
  64. # Default:
  65. #DebugLevel=4
  66.  
  67. ### Option: PidFile
  68. # Name of PID file.
  69. #
  70. # Mandatory: no
  71. # Default:
  72. PidFile=/tmp/zabbix_server.pid
  73.  
  74. ### Option: SocketDir
  75. # IPC socket directory.
  76. # Directory to store IPC sockets used by internal Zabbix services.
  77. #
  78. # Mandatory: no
  79. # Default:
  80. # SocketDir=/tmp
  81.  
  82. ### Option: DBHost
  83. # Database host name.
  84. # If set to localhost, socket is used for MySQL.
  85. # If set to empty string, socket is used for PostgreSQL.
  86. #
  87. # Mandatory: no
  88. # Default:
  89. DBHost=localhost
  90.  
  91. ### Option: DBName
  92. # Database name.
  93. #
  94. # Mandatory: yes
  95. # Default:
  96. # DBName=
  97.  
  98. DBName=zabbix
  99.  
  100. ### Option: DBSchema
  101. # Schema name. Used for IBM DB2 and PostgreSQL.
  102. #
  103. # Mandatory: no
  104. # Default:
  105. # DBSchema=
  106.  
  107. ### Option: DBUser
  108. # Database user.
  109. #
  110. # Mandatory: no
  111. # Default:
  112. # DBUser=
  113.  
  114. DBUser=zabbix
  115.  
  116. ### Option: DBPassword
  117. # Database password.
  118. # Comment this line if no password is used.
  119. #
  120. # Mandatory: no
  121. # Default:
  122. DBPassword=zabbix12345
  123.  
  124. ### Option: DBSocket
  125. # Path to MySQL socket.
  126. #
  127. # Mandatory: no
  128. # Default:
  129. # DBSocket=
  130.  
  131. ### Option: DBPort
  132. # Database port when not using local socket.
  133. #
  134. # Mandatory: no
  135. # Range: 1024-65535
  136. # Default:
  137. # DBPort=
  138.  
  139. ### Option: HistoryStorageURL
  140. # History storage HTTP[S] URL.
  141. #
  142. # Mandatory: no
  143. # Default:
  144. # HistoryStorageURL=
  145.  
  146. ### Option: HistoryStorageTypes
  147. # Comma separated list of value types to be sent to the history storage.
  148. #
  149. # Mandatory: no
  150. # Default:
  151. # HistoryStorageTypes=uint,dbl,str,log,text
  152.  
  153. ### Option: HistoryStorageDateIndex
  154. # Enable preprocessing of history values in history storage to store values in different indices based on date.
  155. # 0 - disable
  156. # 1 - enable
  157. #
  158. # Mandatory: no
  159. # Default:
  160. # HistoryStorageDateIndex=0
  161.  
  162. ### Option: ExportDir
  163. # Directory for real time export of events, history and trends in newline delimited JSON format.
  164. # If set, enables real time export.
  165. #
  166. # Mandatory: no
  167. # Default:
  168. # ExportDir=
  169.  
  170. ### Option: ExportFileSize
  171. # Maximum size per export file in bytes.
  172. # Only used for rotation if ExportDir is set.
  173. #
  174. # Mandatory: no
  175. # Range: 1M-1G
  176. # Default:
  177. # ExportFileSize=1G
  178.  
  179. ############ ADVANCED PARAMETERS ################
  180.  
  181. ### Option: StartPollers
  182. # Number of pre-forked instances of pollers.
  183. #
  184. # Mandatory: no
  185. # Range: 0-1000
  186. # Default:
  187. # StartPollers=5
  188.  
  189. ### Option: StartIPMIPollers
  190. # Number of pre-forked instances of IPMI pollers.
  191. # The IPMI manager process is automatically started when at least one IPMI poller is started.
  192. #
  193. # Mandatory: no
  194. # Range: 0-1000
  195. # Default:
  196. # StartIPMIPollers=0
  197.  
  198. ### Option: StartPreprocessors
  199. # Number of pre-forked instances of preprocessing workers.
  200. # The preprocessing manager process is automatically started when preprocessor worker is started.
  201. #
  202. # Mandatory: no
  203. # Range: 1-1000
  204. # Default:
  205. # StartPreprocessors=3
  206.  
  207. ### Option: StartPollersUnreachable
  208. # Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java).
  209. # At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers
  210. # are started.
  211. #
  212. # Mandatory: no
  213. # Range: 0-1000
  214. # Default:
  215. # StartPollersUnreachable=1
  216.  
  217. ### Option: StartTrappers
  218. # Number of pre-forked instances of trappers.
  219. # Trappers accept incoming connections from Zabbix sender, active agents and active proxies.
  220. # At least one trapper process must be running to display server availability and view queue
  221. # in the frontend.
  222. #
  223. # Mandatory: no
  224. # Range: 0-1000
  225. # Default:
  226. # StartTrappers=5
  227.  
  228. ### Option: StartPingers
  229. # Number of pre-forked instances of ICMP pingers.
  230. #
  231. # Mandatory: no
  232. # Range: 0-1000
  233. # Default:
  234. # StartPingers=1
  235.  
  236. ### Option: StartDiscoverers
  237. # Number of pre-forked instances of discoverers.
  238. #
  239. # Mandatory: no
  240. # Range: 0-250
  241. # Default:
  242. # StartDiscoverers=1
  243.  
  244. ### Option: StartHTTPPollers
  245. # Number of pre-forked instances of HTTP pollers.
  246. #
  247. # Mandatory: no
  248. # Range: 0-1000
  249. # Default:
  250. # StartHTTPPollers=1
  251.  
  252. ### Option: StartTimers
  253. # Number of pre-forked instances of timers.
  254. # Timers process maintenance periods.
  255. # Only the first timer process handles host maintenance updates. Problem suppression updates are shared
  256. # between all timers.
  257. #
  258. # Mandatory: no
  259. # Range: 1-1000
  260. # Default:
  261. # StartTimers=1
  262.  
  263. ### Option: StartEscalators
  264. # Number of pre-forked instances of escalators.
  265. #
  266. # Mandatory: no
  267. # Range: 0-100
  268. # Default:
  269. # StartEscalators=1
  270.  
  271. ### Option: StartAlerters
  272. # Number of pre-forked instances of alerters.
  273. # Alerters send the notifications created by action operations.
  274. #
  275. # Mandatory: no
  276. # Range: 0-100
  277. # Default:
  278. # StartAlerters=3
  279.  
  280. ### Option: JavaGateway
  281. # IP address (or hostname) of Zabbix Java gateway.
  282. # Only required if Java pollers are started.
  283. #
  284. # Mandatory: no
  285. # Default:
  286. # JavaGateway=
  287.  
  288. ### Option: JavaGatewayPort
  289. # Port that Zabbix Java gateway listens on.
  290. #
  291. # Mandatory: no
  292. # Range: 1024-32767
  293. # Default:
  294. # JavaGatewayPort=10052
  295.  
  296. ### Option: StartJavaPollers
  297. # Number of pre-forked instances of Java pollers.
  298. #
  299. # Mandatory: no
  300. # Range: 0-1000
  301. # Default:
  302. # StartJavaPollers=0
  303.  
  304. ### Option: StartVMwareCollectors
  305. # Number of pre-forked vmware collector instances.
  306. #
  307. # Mandatory: no
  308. # Range: 0-250
  309. # Default:
  310. # StartVMwareCollectors=0
  311.  
  312. ### Option: VMwareFrequency
  313. # How often Zabbix will connect to VMware service to obtain a new data.
  314. #
  315. # Mandatory: no
  316. # Range: 10-86400
  317. # Default:
  318. # VMwareFrequency=60
  319.  
  320. ### Option: VMwarePerfFrequency
  321. # How often Zabbix will connect to VMware service to obtain performance data.
  322. #
  323. # Mandatory: no
  324. # Range: 10-86400
  325. # Default:
  326. # VMwarePerfFrequency=60
  327.  
  328. ### Option: VMwareCacheSize
  329. # Size of VMware cache, in bytes.
  330. # Shared memory size for storing VMware data.
  331. # Only used if VMware collectors are started.
  332. #
  333. # Mandatory: no
  334. # Range: 256K-2G
  335. # Default:
  336. # VMwareCacheSize=8M
  337.  
  338. ### Option: VMwareTimeout
  339. # Specifies how many seconds vmware collector waits for response from VMware service.
  340. #
  341. # Mandatory: no
  342. # Range: 1-300
  343. # Default:
  344. # VMwareTimeout=10
  345.  
  346. ### Option: SNMPTrapperFile
  347. # Temporary file used for passing data from SNMP trap daemon to the server.
  348. # Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.
  349. #
  350. # Mandatory: no
  351. # Default:
  352. # SNMPTrapperFile=/tmp/zabbix_traps.tmp
  353.  
  354. ### Option: StartSNMPTrapper
  355. # If 1, SNMP trapper process is started.
  356. #
  357. # Mandatory: no
  358. # Range: 0-1
  359. # Default:
  360. # StartSNMPTrapper=0
  361.  
  362. ### Option: ListenIP
  363. # List of comma delimited IP addresses that the trapper should listen on.
  364. # Trapper will listen on all network interfaces if this parameter is missing.
  365. #
  366. # Mandatory: no
  367. # Default:
  368. # ListenIP=0.0.0.0
  369.  
  370. # ListenIP=127.0.0.1
  371.  
  372. ### Option: HousekeepingFrequency
  373. # How often Zabbix will perform housekeeping procedure (in hours).
  374. # Housekeeping is removing outdated information from the database.
  375. # To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency
  376. # hours of outdated information are deleted in one housekeeping cycle, for each item.
  377. # To lower load on server startup housekeeping is postponed for 30 minutes after server start.
  378. # With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option.
  379. # In this case the period of outdated information deleted in one housekeeping cycle is 4 times the
  380. # period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days.
  381. #
  382. # Mandatory: no
  383. # Range: 0-24
  384. # Default:
  385. # HousekeepingFrequency=1
  386.  
  387. ### Option: MaxHousekeeperDelete
  388. # The table "housekeeper" contains "tasks" for housekeeping procedure in the format:
  389. # [housekeeperid], [tablename], [field], [value].
  390. # No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value])
  391. # will be deleted per one task in one housekeeping cycle.
  392. # If set to 0 then no limit is used at all. In this case you must know what you are doing!
  393. #
  394. # Mandatory: no
  395. # Range: 0-1000000
  396. # Default:
  397. # MaxHousekeeperDelete=5000
  398.  
  399. ### Option: CacheSize
  400. # Size of configuration cache, in bytes.
  401. # Shared memory size for storing host, item and trigger data.
  402. #
  403. # Mandatory: no
  404. # Range: 128K-8G
  405. # Default:
  406. # CacheSize=8M
  407.  
  408. ### Option: CacheUpdateFrequency
  409. # How often Zabbix will perform update of configuration cache, in seconds.
  410. #
  411. # Mandatory: no
  412. # Range: 1-3600
  413. # Default:
  414. # CacheUpdateFrequency=60
  415.  
  416. ### Option: StartDBSyncers
  417. # Number of pre-forked instances of DB Syncers.
  418. #
  419. # Mandatory: no
  420. # Range: 1-100
  421. # Default:
  422. # StartDBSyncers=4
  423.  
  424. ### Option: HistoryCacheSize
  425. # Size of history cache, in bytes.
  426. # Shared memory size for storing history data.
  427. #
  428. # Mandatory: no
  429. # Range: 128K-2G
  430. # Default:
  431. # HistoryCacheSize=16M
  432.  
  433. ### Option: HistoryIndexCacheSize
  434. # Size of history index cache, in bytes.
  435. # Shared memory size for indexing history cache.
  436. #
  437. # Mandatory: no
  438. # Range: 128K-2G
  439. # Default:
  440. # HistoryIndexCacheSize=4M
  441.  
  442. ### Option: TrendCacheSize
  443. # Size of trend cache, in bytes.
  444. # Shared memory size for storing trends data.
  445. #
  446. # Mandatory: no
  447. # Range: 128K-2G
  448. # Default:
  449. # TrendCacheSize=4M
  450.  
  451. ### Option: ValueCacheSize
  452. # Size of history value cache, in bytes.
  453. # Shared memory size for caching item history data requests.
  454. # Setting to 0 disables value cache.
  455. #
  456. # Mandatory: no
  457. # Range: 0,128K-64G
  458. # Default:
  459. # ValueCacheSize=8M
  460.  
  461. ### Option: Timeout
  462. # Specifies how long we wait for agent, SNMP device or external check (in seconds).
  463. #
  464. # Mandatory: no
  465. # Range: 1-30
  466. # Default:
  467. # Timeout=3
  468.  
  469. Timeout=4
  470.  
  471. ### Option: TrapperTimeout
  472. # Specifies how many seconds trapper may spend processing new data.
  473. #
  474. # Mandatory: no
  475. # Range: 1-300
  476. # Default:
  477. # TrapperTimeout=300
  478.  
  479. ### Option: UnreachablePeriod
  480. # After how many seconds of unreachability treat a host as unavailable.
  481. #
  482. # Mandatory: no
  483. # Range: 1-3600
  484. # Default:
  485. # UnreachablePeriod=45
  486.  
  487. ### Option: UnavailableDelay
  488. # How often host is checked for availability during the unavailability period, in seconds.
  489. #
  490. # Mandatory: no
  491. # Range: 1-3600
  492. # Default:
  493. # UnavailableDelay=60
  494.  
  495. ### Option: UnreachableDelay
  496. # How often host is checked for availability during the unreachability period, in seconds.
  497. #
  498. # Mandatory: no
  499. # Range: 1-3600
  500. # Default:
  501. # UnreachableDelay=15
  502.  
  503. ### Option: AlertScriptsPath
  504. # Full path to location of custom alert scripts.
  505. # Default depends on compilation options.
  506. # To see the default path run command "zabbix_server --help".
  507. #
  508. # Mandatory: no
  509. # Default:
  510. # AlertScriptsPath=${datadir}/zabbix/alertscripts
  511.  
  512. ### Option: ExternalScripts
  513. # Full path to location of external scripts.
  514. # Default depends on compilation options.
  515. # To see the default path run command "zabbix_server --help".
  516. #
  517. # Mandatory: no
  518. # Default:
  519. # ExternalScripts=${datadir}/zabbix/externalscripts
  520.  
  521. ### Option: FpingLocation
  522. # Location of fping.
  523. # Make sure that fping binary has root ownership and SUID flag set.
  524. #
  525. # Mandatory: no
  526. # Default:
  527. # FpingLocation=/usr/sbin/fping
  528.  
  529. ### Option: Fping6Location
  530. # Location of fping6.
  531. # Make sure that fping6 binary has root ownership and SUID flag set.
  532. # Make empty if your fping utility is capable to process IPv6 addresses.
  533. #
  534. # Mandatory: no
  535. # Default:
  536. # Fping6Location=/usr/sbin/fping6
  537.  
  538. ### Option: SSHKeyLocation
  539. # Location of public and private keys for SSH checks and actions.
  540. #
  541. # Mandatory: no
  542. # Default:
  543. # SSHKeyLocation=
  544.  
  545. ### Option: LogSlowQueries
  546. # How long a database query may take before being logged (in milliseconds).
  547. # Only works if DebugLevel set to 3, 4 or 5.
  548. # 0 - don't log slow queries.
  549. #
  550. # Mandatory: no
  551. # Range: 1-3600000
  552. # Default:
  553. # LogSlowQueries=0
  554.  
  555. LogSlowQueries=3000
  556.  
  557. ### Option: TmpDir
  558. # Temporary directory.
  559. #
  560. # Mandatory: no
  561. # Default:
  562. # TmpDir=/tmp
  563.  
  564. ### Option: StartProxyPollers
  565. # Number of pre-forked instances of pollers for passive proxies.
  566. #
  567. # Mandatory: no
  568. # Range: 0-250
  569. # Default:
  570. # StartProxyPollers=1
  571.  
  572. ### Option: ProxyConfigFrequency
  573. # How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds.
  574. # This parameter is used only for proxies in the passive mode.
  575. #
  576. # Mandatory: no
  577. # Range: 1-3600*24*7
  578. # Default:
  579. # ProxyConfigFrequency=3600
  580.  
  581. ### Option: ProxyDataFrequency
  582. # How often Zabbix Server requests history data from a Zabbix Proxy in seconds.
  583. # This parameter is used only for proxies in the passive mode.
  584. #
  585. # Mandatory: no
  586. # Range: 1-3600
  587. # Default:
  588. # ProxyDataFrequency=1
  589.  
  590. ### Option: AllowRoot
  591. # Allow the server to run as 'root'. If disabled and the server is started by 'root', the server
  592. # will try to switch to the user specified by the User configuration option instead.
  593. # Has no effect if started under a regular user.
  594. # 0 - do not allow
  595. # 1 - allow
  596. #
  597. # Mandatory: no
  598. # Default:
  599. # AllowRoot=0
  600.  
  601. ### Option: User
  602. # Drop privileges to a specific, existing user on the system.
  603. # Only has effect if run as 'root' and AllowRoot is disabled.
  604. #
  605. # Mandatory: no
  606. # Default:
  607. # User=zabbix
  608.  
  609. ### Option: Include
  610. # You may include individual files or all files in a directory in the configuration file.
  611. # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
  612. #
  613. # Mandatory: no
  614. # Default:
  615. # Include=
  616.  
  617. # Include=/usr/local/etc/zabbix_server.general.conf
  618. # Include=/usr/local/etc/zabbix_server.conf.d/
  619. # Include=/usr/local/etc/zabbix_server.conf.d/*.conf
  620.  
  621. ### Option: SSLCertLocation
  622. # Location of SSL client certificates.
  623. # This parameter is used only in web monitoring.
  624. # Default depends on compilation options.
  625. # To see the default path run command "zabbix_server --help".
  626. #
  627. # Mandatory: no
  628. # Default:
  629. # SSLCertLocation=${datadir}/zabbix/ssl/certs
  630.  
  631. ### Option: SSLKeyLocation
  632. # Location of private keys for SSL client certificates.
  633. # This parameter is used only in web monitoring.
  634. # Default depends on compilation options.
  635. # To see the default path run command "zabbix_server --help".
  636. #
  637. # Mandatory: no
  638. # Default:
  639. # SSLKeyLocation=${datadir}/zabbix/ssl/keys
  640.  
  641. ### Option: SSLCALocation
  642. # Override the location of certificate authority (CA) files for SSL server certificate verification.
  643. # If not set, system-wide directory will be used.
  644. # This parameter is used only in web monitoring and SMTP authentication.
  645. #
  646. # Mandatory: no
  647. # Default:
  648. # SSLCALocation=
  649.  
  650. ### Option: StatsAllowedIP
  651. # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of external Zabbix instances.
  652. # Stats request will be accepted only from the addresses listed here. If this parameter is not set no stats requests
  653. # will be accepted.
  654. # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
  655. # and '::/0' will allow any IPv4 or IPv6 address.
  656. # '0.0.0.0/0' can be used to allow any IPv4 address.
  657. # Example: StatsAllowedIP=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
  658. #
  659. # Mandatory: no
  660. # Default:
  661. # StatsAllowedIP=
  662.  
  663. ####### LOADABLE MODULES #######
  664.  
  665. ### Option: LoadModulePath
  666. # Full path to location of server modules.
  667. # Default depends on compilation options.
  668. # To see the default path run command "zabbix_server --help".
  669. #
  670. # Mandatory: no
  671. # Default:
  672. # LoadModulePath=${libdir}/modules
  673.  
  674. ### Option: LoadModule
  675. # Module to load at server startup. Modules are used to extend functionality of the server.
  676. # Format: LoadModule=<module.so>
  677. # The modules must be located in directory specified by LoadModulePath.
  678. # It is allowed to include multiple LoadModule parameters.
  679. #
  680. # Mandatory: no
  681. # Default:
  682. # LoadModule=
  683.  
  684. ####### TLS-RELATED PARAMETERS #######
  685.  
  686. ### Option: TLSCAFile
  687. # Full pathname of a file containing the top-level CA(s) certificates for
  688. # peer certificate verification.
  689. #
  690. # Mandatory: no
  691. # Default:
  692. TLSCAFile=/etc/zabbix/keys/zabbix-ca.crt
  693.  
  694. ### Option: TLSCRLFile
  695. # Full pathname of a file containing revoked certificates.
  696. #
  697. # Mandatory: no
  698. # Default:
  699. # TLSCRLFile=
  700.  
  701. ### Option: TLSCertFile
  702. # Full pathname of a file containing the server certificate or certificate chain.
  703. #
  704. # Mandatory: no
  705. # Default:
  706. TLSCertFile=/etc/zabbix/keys/zabbix-servr.crt
  707.  
  708. ### Option: TLSKeyFile
  709. # Full pathname of a file containing the server private key.
  710. #
  711. # Mandatory: no
  712. # Default:
  713. TLSKeyFile=/etc/zabbix/keys/zabbix-server.key
  714. root@zabbix-server:~# nano /usr/local/etc/zabbix_agentd.conf
  715. root@zabbix-server:~# cat /usr/local/etc/zabbix_agentd.conf
  716. # This is a configuration file for Zabbix agent daemon (Unix)
  717. # To get more information about Zabbix, visit http://www.zabbix.com
  718.  
  719. ############ GENERAL PARAMETERS #################
  720.  
  721. ### Option: PidFile
  722. # Name of PID file.
  723. #
  724. # Mandatory: no
  725. # Default:
  726. # PidFile=/tmp/zabbix_agentd.pid
  727.  
  728. ### Option: LogType
  729. # Specifies where log messages are written to:
  730. # system - syslog
  731. # file - file specified with LogFile parameter
  732. # console - standard output
  733. #
  734. # Mandatory: no
  735. # Default:
  736. # LogType=file
  737.  
  738. ### Option: LogFile
  739. # Log file name for LogType 'file' parameter.
  740. #
  741. # Mandatory: yes, if LogType is set to file, otherwise no
  742. # Default:
  743. # LogFile=
  744.  
  745. LogFile=/tmp/zabbix_agentd.log
  746.  
  747. ### Option: LogFileSize
  748. # Maximum size of log file in MB.
  749. # 0 - disable automatic log rotation.
  750. #
  751. # Mandatory: no
  752. # Range: 0-1024
  753. # Default:
  754. # LogFileSize=1
  755.  
  756. ### Option: DebugLevel
  757. # Specifies debug level:
  758. # 0 - basic information about starting and stopping of Zabbix processes
  759. # 1 - critical information
  760. # 2 - error information
  761. # 3 - warnings
  762. # 4 - for debugging (produces lots of information)
  763. # 5 - extended debugging (produces even more information)
  764. #
  765. # Mandatory: no
  766. # Range: 0-5
  767. # Default:
  768. # DebugLevel=3
  769.  
  770. ### Option: SourceIP
  771. # Source IP address for outgoing connections.
  772. #
  773. # Mandatory: no
  774. # Default:
  775. # SourceIP=
  776.  
  777. ### Option: EnableRemoteCommands
  778. # Whether remote commands from Zabbix server are allowed.
  779. # 0 - not allowed
  780. # 1 - allowed
  781. #
  782. # Mandatory: no
  783. # Default:
  784. # EnableRemoteCommands=0
  785.  
  786. ### Option: LogRemoteCommands
  787. # Enable logging of executed shell commands as warnings.
  788. # 0 - disabled
  789. # 1 - enabled
  790. #
  791. # Mandatory: no
  792. # Default:
  793. # LogRemoteCommands=0
  794.  
  795. ##### Passive checks related
  796.  
  797. ### Option: Server
  798. # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
  799. # Incoming connections will be accepted only from the hosts listed here.
  800. # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
  801. # and '::/0' will allow any IPv4 or IPv6 address.
  802. # '0.0.0.0/0' can be used to allow any IPv4 address.
  803. # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
  804. #
  805. # Mandatory: yes, if StartAgents is not explicitly set to 0
  806. # Default:
  807. # Server=
  808.  
  809. Server=192.168.178.88
  810.  
  811. ### Option: ListenPort
  812. # Agent will listen on this port for connections from the server.
  813. #
  814. # Mandatory: no
  815. # Range: 1024-32767
  816. # Default:
  817. ListenPort=10050
  818.  
  819. ### Option: ListenIP
  820. # List of comma delimited IP addresses that the agent should listen on.
  821. # First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
  822. #
  823. # Mandatory: no
  824. # Default:
  825. # ListenIP=0.0.0.0
  826.  
  827. ### Option: StartAgents
  828. # Number of pre-forked instances of zabbix_agentd that process passive checks.
  829. # If set to 0, disables passive checks and the agent will not listen on any TCP port.
  830. #
  831. # Mandatory: no
  832. # Range: 0-100
  833. # Default:
  834. # StartAgents=3
  835.  
  836. ##### Active checks related
  837.  
  838. ### Option: ServerActive
  839. # List of comma delimited IP:port (or DNS name:port) pairs of Zabbix servers and Zabbix proxies for active checks.
  840. # If port is not specified, default port is used.
  841. # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
  842. # If port is not specified, square brackets for IPv6 addresses are optional.
  843. # If this parameter is not specified, active checks are disabled.
  844. # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
  845. #
  846. # Mandatory: no
  847. # Default:
  848. # ServerActive=
  849.  
  850. ServerActive=192.168.178.88
  851.  
  852. ### Option: Hostname
  853. # Unique, case sensitive hostname.
  854. # Required for active checks and must match hostname as configured on the server.
  855. # Value is acquired from HostnameItem if undefined.
  856. #
  857. # Mandatory: no
  858. # Default:
  859. # Hostname=
  860.  
  861. Hostname=zabbix-server
  862.  
  863. ### Option: HostnameItem
  864. # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
  865. # Does not support UserParameters or aliases.
  866. #
  867. # Mandatory: no
  868. # Default:
  869. # HostnameItem=system.hostname
  870.  
  871. ### Option: HostMetadata
  872. # Optional parameter that defines host metadata.
  873. # Host metadata is used at host auto-registration process.
  874. # An agent will issue an error and not start if the value is over limit of 255 characters.
  875. # If not defined, value will be acquired from HostMetadataItem.
  876. #
  877. # Mandatory: no
  878. # Range: 0-255 characters
  879. # Default:
  880. # HostMetadata=
  881.  
  882. ### Option: HostMetadataItem
  883. # Optional parameter that defines an item used for getting host metadata.
  884. # Host metadata is used at host auto-registration process.
  885. # During an auto-registration request an agent will log a warning message if
  886. # the value returned by specified item is over limit of 255 characters.
  887. # This option is only used when HostMetadata is not defined.
  888. #
  889. # Mandatory: no
  890. # Default:
  891. # HostMetadataItem=
  892.  
  893. ### Option: RefreshActiveChecks
  894. # How often list of active checks is refreshed, in seconds.
  895. #
  896. # Mandatory: no
  897. # Range: 60-3600
  898. # Default:
  899. # RefreshActiveChecks=120
  900.  
  901. ### Option: BufferSend
  902. # Do not keep data longer than N seconds in buffer.
  903. #
  904. # Mandatory: no
  905. # Range: 1-3600
  906. # Default:
  907. # BufferSend=5
  908.  
  909. ### Option: BufferSize
  910. # Maximum number of values in a memory buffer. The agent will send
  911. # all collected data to Zabbix Server or Proxy if the buffer is full.
  912. #
  913. # Mandatory: no
  914. # Range: 2-65535
  915. # Default:
  916. # BufferSize=100
  917.  
  918. ### Option: MaxLinesPerSecond
  919. # Maximum number of new lines the agent will send per second to Zabbix Server
  920. # or Proxy processing 'log' and 'logrt' active checks.
  921. # The provided value will be overridden by the parameter 'maxlines',
  922. # provided in 'log' or 'logrt' item keys.
  923. #
  924. # Mandatory: no
  925. # Range: 1-1000
  926. # Default:
  927. # MaxLinesPerSecond=20
  928.  
  929. ############ ADVANCED PARAMETERS #################
  930.  
  931. ### Option: Alias
  932. # Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.
  933. # Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
  934. # Different Alias keys may reference the same item key.
  935. # For example, to retrieve the ID of user 'zabbix':
  936. # Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,\1]
  937. # Now shorthand key zabbix.userid may be used to retrieve data.
  938. # Aliases can be used in HostMetadataItem but not in HostnameItem parameters.
  939. #
  940. # Mandatory: no
  941. # Range:
  942. # Default:
  943.  
  944. ### Option: Timeout
  945. # Spend no more than Timeout seconds on processing
  946. #
  947. # Mandatory: no
  948. # Range: 1-30
  949. # Default:
  950. # Timeout=3
  951.  
  952. ### Option: AllowRoot
  953. # Allow the agent to run as 'root'. If disabled and the agent is started by 'root', the agent
  954. # will try to switch to the user specified by the User configuration option instead.
  955. # Has no effect if started under a regular user.
  956. # 0 - do not allow
  957. # 1 - allow
  958. #
  959. # Mandatory: no
  960. # Default:
  961. # AllowRoot=0
  962.  
  963. ### Option: User
  964. # Drop privileges to a specific, existing user on the system.
  965. # Only has effect if run as 'root' and AllowRoot is disabled.
  966. #
  967. # Mandatory: no
  968. # Default:
  969. # User=zabbix
  970.  
  971. ### Option: Include
  972. # You may include individual files or all files in a directory in the configuration file.
  973. # Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
  974. #
  975. # Mandatory: no
  976. # Default:
  977. # Include=
  978.  
  979. # Include=/usr/local/etc/zabbix_agentd.userparams.conf
  980. # Include=/usr/local/etc/zabbix_agentd.conf.d/
  981. # Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
  982.  
  983. ####### USER-DEFINED MONITORED PARAMETERS #######
  984.  
  985. ### Option: UnsafeUserParameters
  986. # Allow all characters to be passed in arguments to user-defined parameters.
  987. # The following characters are not allowed:
  988. # \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
  989. # Additionally, newline characters are not allowed.
  990. # 0 - do not allow
  991. # 1 - allow
  992. #
  993. # Mandatory: no
  994. # Range: 0-1
  995. # Default:
  996. # UnsafeUserParameters=0
  997.  
  998. ### Option: UserParameter
  999. # User-defined parameter to monitor. There can be several user-defined parameters.
  1000. # Format: UserParameter=<key>,<shell command>
  1001. # See 'zabbix_agentd' directory for examples.
  1002. #
  1003. # Mandatory: no
  1004. # Default:
  1005. # UserParameter=
  1006.  
  1007. ####### LOADABLE MODULES #######
  1008.  
  1009. ### Option: LoadModulePath
  1010. # Full path to location of agent modules.
  1011. # Default depends on compilation options.
  1012. # To see the default path run command "zabbix_agentd --help".
  1013. #
  1014. # Mandatory: no
  1015. # Default:
  1016. # LoadModulePath=${libdir}/modules
  1017.  
  1018. ### Option: LoadModule
  1019. # Module to load at agent startup. Modules are used to extend functionality of the agent.
  1020. # Format: LoadModule=<module.so>
  1021. # The modules must be located in directory specified by LoadModulePath.
  1022. # It is allowed to include multiple LoadModule parameters.
  1023. #
  1024. # Mandatory: no
  1025. # Default:
  1026. # LoadModule=
  1027.  
  1028. ####### TLS-RELATED PARAMETERS #######
  1029.  
  1030. ### Option: TLSConnect
  1031. # How the agent should connect to server or proxy. Used for active checks.
  1032. # Only one value can be specified:
  1033. # unencrypted - connect without encryption
  1034. # psk - connect using TLS and a pre-shared key
  1035. # cert - connect using TLS and a certificate
  1036. #
  1037. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  1038. # Default:
  1039. #TLSConnect=cert
  1040.  
  1041. ### Option: TLSAccept
  1042. # What incoming connections to accept.
  1043. # Multiple values can be specified, separated by comma:
  1044. # unencrypted - accept connections without encryption
  1045. # psk - accept connections secured with TLS and a pre-shared key
  1046. # cert - accept connections secured with TLS and a certificate
  1047. #
  1048. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  1049. # Default:
  1050. #TLSAccept=cert
  1051.  
  1052. ### Option: TLSCAFile
  1053. # Full pathname of a file containing the top-level CA(s) certificates for
  1054. # peer certificate verification.
  1055. #
  1056. # Mandatory: no
  1057. # Default:
  1058. #TLSCAFile=/etc/zabbix/keys/zabbix-ca.crt
  1059.  
  1060. ### Option: TLSCRLFile
  1061. # Full pathname of a file containing revoked certificates.
  1062. #
  1063. # Mandatory: no
  1064. # Default:
  1065. # TLSCRLFile=
  1066.  
  1067. ### Option: TLSServerCertIssuer
  1068. # Allowed server certificate issuer.
  1069. #
  1070. # Mandatory: no
  1071. # Default:
  1072. # TLSServerCertIssuer=
  1073.  
  1074. ### Option: TLSServerCertSubject
  1075. # Allowed server certificate subject.
  1076. #
  1077. # Mandatory: no
  1078. # Default:
  1079. # TLSServerCertSubject=
  1080.  
  1081. ### Option: TLSCertFile
  1082. # Full pathname of a file containing the agent certificate or certificate chain.
  1083. #
  1084. # Mandatory: no
  1085. # Default:
  1086. #TLSCertFile=/etc/zabbix/keys/zabbix-servr.crt
  1087.  
  1088. ### Option: TLSKeyFile
  1089. # Full pathname of a file containing the agent private key.
  1090. #
  1091. # Mandatory: no
  1092. # Default:
  1093. #TLSKeyFile=/etc/zabbix/keys/zabbix-server.key
  1094.  
  1095. ### Option: TLSPSKIdentity
  1096. # Unique, case sensitive string used to identify the pre-shared key.
  1097. #
  1098. # Mandatory: no
  1099. # Default:
  1100. # TLSPSKIdentity=
  1101.  
  1102. ### Option: TLSPSKFile
  1103. # Full pathname of a file containing the pre-shared key.
  1104. #
  1105. # Mandatory: no
  1106. # Default:
  1107. # TLSPSKFile=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement