hostname.REDACTED.TLD-zabbix_agent2.conf 17 KB

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