zabbix_agent2.conf 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. # This is a configuration file for Zabbix agent daemon (Unix)
  2. # To get more information about Zabbix, visit http://www.zabbix.com
  3. ############ GENERAL PARAMETERS #################
  4. ### Option: PidFile
  5. # Name of PID file.
  6. #
  7. # Mandatory: no
  8. # Default:
  9. # PidFile=/tmp/zabbix_agentd.pid
  10. PidFile=/run/zabbix/zabbix_agentd.pid
  11. ### Option: LogType
  12. # Specifies where log messages are written to:
  13. # system - syslog
  14. # file - file specified with LogFile parameter
  15. # console - standard output
  16. #
  17. # Mandatory: no
  18. # Default:
  19. # LogType=file
  20. ### Option: LogFile
  21. # Log file name for LogType 'file' parameter.
  22. #
  23. # Mandatory: yes, if LogType is set to file, otherwise no
  24. # Default:
  25. # LogFile=
  26. LogFile=/var/log/zabbix/zabbix_agent2.log
  27. ### Option: LogFileSize
  28. # Maximum size of log file in MB.
  29. # 0 - disable automatic log rotation.
  30. #
  31. # Mandatory: no
  32. # Range: 0-1024
  33. # Default:
  34. # LogFileSize=1
  35. #LogFileSize=0
  36. ### Option: DebugLevel
  37. # Specifies debug level:
  38. # 0 - basic information about starting and stopping of Zabbix processes
  39. # 1 - critical information
  40. # 2 - error information
  41. # 3 - warnings
  42. # 4 - for debugging (produces lots of information)
  43. # 5 - extended debugging (produces even more information)
  44. #
  45. # Mandatory: no
  46. # Range: 0-5
  47. # Default:
  48. # DebugLevel=3
  49. ### Option: SourceIP
  50. # Source IP address for outgoing connections.
  51. #
  52. # Mandatory: no
  53. # Default:
  54. # SourceIP=
  55. ### Option: AllowKey
  56. # Allow execution of item keys matching pattern.
  57. # Multiple keys matching rules may be defined in combination with DenyKey.
  58. # Key pattern is wildcard expression, which support "*" character to match any number of any characters in certain position. It might be used in both key name and key arguments.
  59. # Parameters are processed one by one according their appearance order.
  60. # If no AllowKey or DenyKey rules defined, all keys are allowed.
  61. #
  62. # Mandatory: no
  63. AllowKey=system.run[*]
  64. ### Option: DenyKey
  65. # Deny execution of items keys matching pattern.
  66. # Multiple keys matching rules may be defined in combination with AllowKey.
  67. # Key pattern is wildcard expression, which support "*" character to match any number of any characters in certain position. It might be used in both key name and key arguments.
  68. # Parameters are processed one by one according their appearance order.
  69. # If no AllowKey or DenyKey rules defined, all keys are allowed.
  70. # Unless another system.run[*] rule is specified DenyKey=system.run[*] is added by default.
  71. #
  72. # Mandatory: no
  73. # Default:
  74. # DenyKey=system.run[*]
  75. ### Option: EnableRemoteCommands - Deprecated, use AllowKey=system.run[*] or DenyKey=system.run[*] instead
  76. # Internal alias for AllowKey/DenyKey parameters depending on value:
  77. # 0 - DenyKey=system.run[*]
  78. # 1 - AllowKey=system.run[*]
  79. #
  80. # Mandatory: no
  81. ### Option: LogRemoteCommands
  82. # Enable logging of executed shell commands as warnings.
  83. # 0 - disabled
  84. # 1 - enabled
  85. #
  86. # Mandatory: no
  87. # Default:
  88. # LogRemoteCommands=0
  89. ##### Passive checks related
  90. ### Option: Server
  91. # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
  92. # Incoming connections will be accepted only from the hosts listed here.
  93. # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
  94. # and '::/0' will allow any IPv4 or IPv6 address.
  95. # '0.0.0.0/0' can be used to allow any IPv4 address.
  96. # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
  97. #
  98. # Mandatory: yes, if StartAgents is not explicitly set to 0
  99. # Default:
  100. # Server=
  101. Server=***CONTENTS REDACTED***
  102. ### Option: ListenPort
  103. # Agent will listen on this port for connections from the server.
  104. #
  105. # Mandatory: no
  106. # Range: 1024-32767
  107. # Default:
  108. ListenPort=10050
  109. ### Option: ListenIP
  110. # List of comma delimited IP addresses that the agent should listen on.
  111. # First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
  112. #
  113. # Mandatory: no
  114. # Default:
  115. # ListenIP=0.0.0.0
  116. ### Option: StartAgents
  117. # Number of pre-forked instances of zabbix_agentd that process passive checks.
  118. # If set to 0, disables passive checks and the agent will not listen on any TCP port.
  119. #
  120. # Mandatory: no
  121. # Range: 0-100
  122. # Default:
  123. # StartAgents=3
  124. ##### Active checks related
  125. ### Option: ServerActive
  126. # Zabbix server/proxy address or cluster configuration to get active checks from.
  127. # Server/proxy address is IP address or DNS name and optional port separated by colon.
  128. # Cluster configuration is one or more server addresses separated by semicolon.
  129. # Multiple Zabbix servers/clusters and Zabbix proxies can be specified, separated by comma.
  130. # More than one Zabbix proxy should not be specified from each Zabbix server/cluster.
  131. # If Zabbix proxy is specified then Zabbix server/cluster for that proxy should not be specified.
  132. # Multiple comma-delimited addresses can be provided to use several independent Zabbix servers in parallel. Spaces are allowed.
  133. # If port is not specified, default port is used.
  134. # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
  135. # If port is not specified, square brackets for IPv6 addresses are optional.
  136. # If this parameter is not specified, active checks are disabled.
  137. # Example for Zabbix proxy:
  138. # ServerActive=127.0.0.1:10051
  139. # Example for multiple servers:
  140. # ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
  141. # Example for high availability:
  142. # ServerActive=zabbix.cluster.node1;zabbix.cluster.node2:20051;zabbix.cluster.node3
  143. # Example for high availability with two clusters and one server:
  144. # ServerActive=zabbix.cluster.node1;zabbix.cluster.node2:20051,zabbix.cluster2.node1;zabbix.cluster2.node2,zabbix.domain
  145. #
  146. # Mandatory: no
  147. # Default:
  148. # ServerActive=
  149. ServerActive=***CONTENTS REDACTED***
  150. ### Option: Hostname
  151. # List of comma delimited unique, case sensitive hostnames.
  152. # Required for active checks and must match hostnames as configured on the server.
  153. # Value is acquired from HostnameItem if undefined.
  154. #
  155. # Mandatory: no
  156. # Default:
  157. # Hostname=
  158. ### Option: HostnameItem
  159. # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
  160. # Does not support UserParameters or aliases.
  161. #
  162. # Mandatory: no
  163. # Default:
  164. HostnameItem=system.hostname
  165. ### Option: HostMetadata
  166. # Optional parameter that defines host metadata.
  167. # Host metadata is used at host auto-registration process.
  168. # An agent will issue an error and not start if the value is over limit of 255 characters.
  169. # If not defined, value will be acquired from HostMetadataItem.
  170. #
  171. # Mandatory: no
  172. # Range: 0-255 characters
  173. # Default:
  174. # HostMetadata=
  175. ### Option: HostMetadataItem
  176. # Optional parameter that defines an item used for getting host metadata.
  177. # Host metadata is used at host auto-registration process.
  178. # During an auto-registration request an agent will log a warning message if
  179. # the value returned by specified item is over limit of 255 characters.
  180. # This option is only used when HostMetadata is not defined.
  181. #
  182. # Mandatory: no
  183. # Default:
  184. # HostMetadataItem=
  185. ### Option: HostInterface
  186. # Optional parameter that defines host interface.
  187. # Host interface is used at host auto-registration process.
  188. # An agent will issue an error and not start if the value is over limit of 255 characters.
  189. # If not defined, value will be acquired from HostInterfaceItem.
  190. #
  191. # Mandatory: no
  192. # Range: 0-255 characters
  193. # Default:
  194. # HostInterface=
  195. ### Option: HostInterfaceItem
  196. # Optional parameter that defines an item used for getting host interface.
  197. # Host interface is used at host auto-registration process.
  198. # During an auto-registration request an agent will log a warning message if
  199. # the value returned by specified item is over limit of 255 characters.
  200. # This option is only used when HostInterface is not defined.
  201. #
  202. # Mandatory: no
  203. # Default:
  204. # HostInterfaceItem=
  205. ### Option: RefreshActiveChecks
  206. # How often list of active checks is refreshed, in seconds.
  207. #
  208. # Mandatory: no
  209. # Range: 60-3600
  210. # Default:
  211. # RefreshActiveChecks=120
  212. ### Option: BufferSend
  213. # Do not keep data longer than N seconds in buffer.
  214. #
  215. # Mandatory: no
  216. # Range: 1-3600
  217. # Default:
  218. # BufferSend=5
  219. ### Option: BufferSize
  220. # Maximum number of values in a memory buffer. The agent will send
  221. # all collected data to Zabbix Server or Proxy if the buffer is full.
  222. #
  223. # Mandatory: no
  224. # Range: 2-65535
  225. # Default:
  226. # BufferSize=100
  227. ### Option: MaxLinesPerSecond
  228. # Maximum number of new lines the agent will send per second to Zabbix Server
  229. # or Proxy processing 'log' and 'logrt' active checks.
  230. # The provided value will be overridden by the parameter 'maxlines',
  231. # provided in 'log' or 'logrt' item keys.
  232. #
  233. # Mandatory: no
  234. # Range: 1-1000
  235. # Default:
  236. # MaxLinesPerSecond=20
  237. ############ ADVANCED PARAMETERS #################
  238. ### Option: Alias
  239. # Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.
  240. # Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
  241. # Different Alias keys may reference the same item key.
  242. # For example, to retrieve the ID of user 'zabbix':
  243. # Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,\1]
  244. # Now shorthand key zabbix.userid may be used to retrieve data.
  245. # Aliases can be used in HostMetadataItem but not in HostnameItem parameters.
  246. #
  247. # Mandatory: no
  248. # Range:
  249. # Default:
  250. ### Option: Timeout
  251. # Spend no more than Timeout seconds on processing
  252. #
  253. # Mandatory: no
  254. # Range: 1-30
  255. # Default:
  256. # Timeout=3
  257. ### Option: AllowRoot
  258. # Allow the agent to run as 'root'. If disabled and the agent is started by 'root', the agent
  259. # will try to switch to the user specified by the User configuration option instead.
  260. # Has no effect if started under a regular user.
  261. # 0 - do not allow
  262. # 1 - allow
  263. #
  264. # Mandatory: no
  265. # Default:
  266. # AllowRoot=0
  267. ### Option: User
  268. # Drop privileges to a specific, existing user on the system.
  269. # Only has effect if run as 'root' and AllowRoot is disabled.
  270. #
  271. # Mandatory: no
  272. # Default:
  273. # User=zabbix
  274. ### Option: Include
  275. # You may include individual files or all files in a directory in the configuration file.
  276. # Installing Zabbix will create include directory in /etc, unless modified during the compile time.
  277. #
  278. # Mandatory: no
  279. # Default:
  280. # Include=
  281. ##
  282. ## 11-16-2023: commending out "Include" statement: causes "Recursion detected! Skipped processing"
  283. ## Include=/etc/zabbix/*.conf
  284. # Include=/etc/zabbix_agentd.userparams.conf
  285. # Include=/etc/zabbix_agentd.conf.d/
  286. # Include=/etc/zabbix_agentd.conf.d/*.conf
  287. ####### USER-DEFINED MONITORED PARAMETERS #######
  288. ### Option: UnsafeUserParameters
  289. # Allow all characters to be passed in arguments to user-defined parameters.
  290. # The following characters are not allowed:
  291. # \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
  292. # Additionally, newline characters are not allowed.
  293. # 0 - do not allow
  294. # 1 - allow
  295. #
  296. # Mandatory: no
  297. # Range: 0-1
  298. # Default:
  299. # UnsafeUserParameters=0
  300. ### Option: UserParameter
  301. # User-defined parameter to monitor. There can be several user-defined parameters.
  302. # Format: UserParameter=<key>,<shell command>
  303. # See 'zabbix_agentd' directory for examples.
  304. #
  305. # Mandatory: no
  306. # Default:
  307. # UserParameter=
  308. ### Option: UserParameterDir
  309. # Directory to execute UserParameter commands from. Only one entry is allowed.
  310. # When executing UserParameter commands the agent will change the working directory to the one
  311. # specified in the UserParameterDir option.
  312. # This way UserParameter commands can be specified using the relative ./ prefix.
  313. #
  314. # Mandatory: no
  315. # Default:
  316. # UserParameterDir=
  317. ####### LOADABLE MODULES #######
  318. ### Option: LoadModulePath
  319. # Full path to location of agent modules.
  320. # Default depends on compilation options.
  321. # To see the default path run command "zabbix_agentd --help".
  322. #
  323. # Mandatory: no
  324. # Default:
  325. # LoadModulePath=${libdir}/modules
  326. ### Option: LoadModule
  327. # Module to load at agent startup. Modules are used to extend functionality of the agent.
  328. # Formats:
  329. # LoadModule=<module.so>
  330. # LoadModule=<path/module.so>
  331. # LoadModule=</abs_path/module.so>
  332. # Either the module must be located in directory specified by LoadModulePath or the path must precede the module name.
  333. # If the preceding path is absolute (starts with '/') then LoadModulePath is ignored.
  334. # It is allowed to include multiple LoadModule parameters.
  335. #
  336. # Mandatory: no
  337. # Default:
  338. # LoadModule=
  339. ####### TLS-RELATED PARAMETERS #######
  340. ### Option: TLSConnect
  341. # How the agent should connect to server or proxy. Used for active checks.
  342. # Only one value can be specified:
  343. # unencrypted - connect without encryption
  344. # psk - connect using TLS and a pre-shared key
  345. # cert - connect using TLS and a certificate
  346. #
  347. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  348. # Default:
  349. # TLSConnect=unencrypted
  350. TLSConnect=psk
  351. ### Option: TLSAccept
  352. # What incoming connections to accept.
  353. # Multiple values can be specified, separated by comma:
  354. # unencrypted - accept connections without encryption
  355. # psk - accept connections secured with TLS and a pre-shared key
  356. # cert - accept connections secured with TLS and a certificate
  357. #
  358. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  359. # Default:
  360. # TLSAccept=unencrypted
  361. TLSAccept=psk,cert
  362. ### Option: TLSCAFile
  363. # Full pathname of a file containing the top-level CA(s) certificates for
  364. # peer certificate verification.
  365. #
  366. # Mandatory: no
  367. # Default:
  368. # TLSCAFile=
  369. TLSCAFile=/etc/zabbix/certs/ca.cert
  370. ### Option: TLSCRLFile
  371. # Full pathname of a file containing revoked certificates.
  372. #
  373. # Mandatory: no
  374. # Default:
  375. # TLSCRLFile=
  376. ### Option: TLSServerCertIssuer
  377. # Allowed server certificate issuer.
  378. #
  379. # Mandatory: no
  380. # Default:
  381. # TLSServerCertIssuer=
  382. ### Option: TLSServerCertSubject
  383. # Allowed server certificate subject.
  384. #
  385. # Mandatory: no
  386. # Default:
  387. # TLSServerCertSubject=
  388. ### Option: TLSCertFile
  389. # Full pathname of a file containing the agent certificate or certificate chain.
  390. #
  391. # Mandatory: no
  392. # Default:
  393. # TLSCertFile=
  394. TLSCertFile=/etc/zabbix/certs/client.cert
  395. ### Option: TLSKeyFile
  396. # Full pathname of a file containing the agent private key.
  397. #
  398. # Mandatory: no
  399. # Default:
  400. # TLSKeyFile=
  401. TLSKeyFile=/etc/zabbix/certs/client_private.key
  402. ### Option: TLSPSKIdentity
  403. # Unique, case sensitive string used to identify the pre-shared key.
  404. #
  405. # Mandatory: no
  406. # Default:
  407. # TLSPSKIdentity=
  408. TLSPSKIdentity=default
  409. ### Option: TLSPSKFile
  410. # Full pathname of a file containing the pre-shared key.
  411. #
  412. # Mandatory: no
  413. # Default:
  414. # TLSPSKFile=
  415. TLSPSKFile=/etc/zabbix/psk.key
  416. ####### For advanced users - TLS ciphersuite selection criteria #######
  417. ### Option: TLSCipherCert13
  418. # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3.
  419. # Override the default ciphersuite selection criteria for certificate-based encryption.
  420. #
  421. # Mandatory: no
  422. # Default:
  423. # TLSCipherCert13=
  424. ### Option: TLSCipherCert
  425. # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string.
  426. # Override the default ciphersuite selection criteria for certificate-based encryption.
  427. # Example for GnuTLS:
  428. # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509
  429. # Example for OpenSSL:
  430. # EECDH+aRSA+AES128:RSA+aRSA+AES128
  431. #
  432. # Mandatory: no
  433. # Default:
  434. # TLSCipherCert=
  435. ### Option: TLSCipherPSK13
  436. # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3.
  437. # Override the default ciphersuite selection criteria for PSK-based encryption.
  438. # Example:
  439. # TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
  440. #
  441. # Mandatory: no
  442. # Default:
  443. # TLSCipherPSK13=
  444. ### Option: TLSCipherPSK
  445. # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string.
  446. # Override the default ciphersuite selection criteria for PSK-based encryption.
  447. # Example for GnuTLS:
  448. # NONE:+VERS-TLS1.2:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL
  449. # Example for OpenSSL:
  450. # kECDHEPSK+AES128:kPSK+AES128
  451. #
  452. # Mandatory: no
  453. # Default:
  454. # TLSCipherPSK=
  455. ### Option: TLSCipherAll13
  456. # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3.
  457. # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption.
  458. # Example:
  459. # TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
  460. #
  461. # Mandatory: no
  462. # Default:
  463. # TLSCipherAll13=
  464. ### Option: TLSCipherAll
  465. # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string.
  466. # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption.
  467. # Example for GnuTLS:
  468. # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509
  469. # Example for OpenSSL:
  470. # EECDH+aRSA+AES128:RSA+aRSA+AES128:kECDHEPSK+AES128:kPSK+AES128
  471. #
  472. # Mandatory: no
  473. # Default:
  474. # TLSCipherAll=
  475. ####### For advanced users - TCP-related fine-tuning parameters #######
  476. ## Option: ListenBacklog
  477. # The maximum number of pending connections in the queue. This parameter is passed to
  478. # listen() function as argument 'backlog' (see "man listen").
  479. #
  480. # Mandatory: no
  481. # Range: 0 - INT_MAX (depends on system, too large values may be silently truncated to implementation-specified maximum)
  482. # Default: SOMAXCONN (hard-coded constant, depends on system)
  483. # ListenBacklog=