Advertisement
Guest User

Untitled

a guest
Oct 24th, 2019
1,682
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 10.32 KB | None | 0 0
  1. # This is a configuration file for Zabbix agent service (Windows)
  2. # To get more information about Zabbix, visit http://www.zabbix.com
  3.  
  4. ############ GENERAL PARAMETERS #################
  5.  
  6. ### Option: LogType
  7. #   Specifies where log messages are written to:
  8. #       system  - Windows event log
  9. #       file    - file specified with LogFile parameter
  10. #       console - standard output
  11. #
  12. # Mandatory: no
  13. # Default:
  14. # LogType=file
  15.  
  16. ### Option: LogFile
  17. #   Log file name for LogType 'file' parameter.
  18. #
  19. # Mandatory: no
  20. # Default:
  21. # LogFile=
  22.  
  23. LogFile=c:\zabbix\zabbix_agentd.log
  24.  
  25. ### Option: LogFileSize
  26. #   Maximum size of log file in MB.
  27. #   0 - disable automatic log rotation.
  28. #
  29. # Mandatory: no
  30. # Range: 0-1024
  31. # Default:
  32. # LogFileSize=1
  33.  
  34. ### Option: DebugLevel
  35. #   Specifies debug level:
  36. #   0 - basic information about starting and stopping of Zabbix processes
  37. #   1 - critical information
  38. #   2 - error information
  39. #   3 - warnings
  40. #   4 - for debugging (produces lots of information)
  41. #   5 - extended debugging (produces even more information)
  42. #
  43. # Mandatory: no
  44. # Range: 0-5
  45. # Default:
  46. # DebugLevel=3
  47.  
  48. ### Option: SourceIP
  49. #   Source IP address for outgoing connections.
  50. #
  51. # Mandatory: no
  52. # Default:
  53. # SourceIP=
  54.  
  55. ### Option: EnableRemoteCommands
  56. #   Whether remote commands from Zabbix server are allowed.
  57. #   0 - not allowed
  58. #   1 - allowed
  59. #
  60. # Mandatory: no
  61. # Default:
  62. EnableRemoteCommands=0
  63.  
  64. ### Option: LogRemoteCommands
  65. #   Enable logging of executed shell commands as warnings.
  66. #   0 - disabled
  67. #   1 - enabled
  68. #
  69. # Mandatory: no
  70. # Default:
  71. # LogRemoteCommands=0
  72.  
  73. ##### Passive checks related
  74.  
  75. ### Option: Server
  76. #   List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
  77. #   Incoming connections will be accepted only from the hosts listed here.
  78. #   If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally and '::/0' will allow any IPv4 or IPv6 address.
  79. #   '0.0.0.0/0' can be used to allow any IPv4 address.
  80. #   Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain
  81. #
  82. # Mandatory: yes, if StartAgents is not explicitly set to 0
  83. # Default:
  84. # Server=
  85.  
  86. Server=
  87.  
  88. ### Option: ListenPort
  89. #   Agent will listen on this port for connections from the server.
  90. #
  91. # Mandatory: no
  92. # Range: 1024-32767
  93. # Default:
  94. # ListenPort=10050
  95.  
  96. ### Option: ListenIP
  97. #       List of comma delimited IP addresses that the agent should listen on.
  98. #       First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
  99. #
  100. # Mandatory: no
  101. # Default:
  102. # ListenIP=0.0.0.0
  103.  
  104. ### Option: StartAgents
  105. #   Number of pre-forked instances of zabbix_agentd that process passive checks.
  106. #   If set to 0, disables passive checks and the agent will not listen on any TCP port.
  107. #
  108. # Mandatory: no
  109. # Range: 0-100
  110. # Default:
  111. StartAgents=0
  112.  
  113. ##### Active checks related
  114.  
  115. ### Option: ServerActive
  116. #   List of comma delimited IP:port (or DNS name:port) pairs of Zabbix servers and Zabbix proxies for active checks.
  117. #   If port is not specified, default port is used.
  118. #   IPv6 addresses must be enclosed in square brackets if port for that host is specified.
  119. #   If port is not specified, square brackets for IPv6 addresses are optional.
  120. #   If this parameter is not specified, active checks are disabled.
  121. #   Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
  122. #
  123. # Mandatory: no
  124. # Default:
  125. # ServerActive=
  126.  
  127. ServerActive=myZabbixHostIP
  128.  
  129. ### Option: Hostname
  130. #   Unique, case sensitive hostname.
  131. #   Required for active checks and must match hostname as configured on the server.
  132. #   Value is acquired from HostnameItem if undefined.
  133. #
  134. # Mandatory: no
  135. # Default:
  136. # Hostname=
  137.  
  138. Hostname=CHANGEME
  139.  
  140. ### Option: HostnameItem
  141. #   Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
  142. #   Does not support UserParameters or aliases.
  143. #
  144. # Mandatory: no
  145. # Default:
  146. # HostnameItem=system.hostname
  147.  
  148. ### Option: HostMetadata
  149. #   Optional parameter that defines host metadata.
  150. #   Host metadata is used at host auto-registration process.
  151. #   An agent will issue an error and not start if the value is over limit of 255 characters.
  152. #   If not defined, value will be acquired from HostMetadataItem.
  153. #
  154. # Mandatory: no
  155. # Range: 0-255 characters
  156. # Default:
  157. # HostMetadata=
  158.  
  159. ### Option: HostMetadataItem
  160. #   Optional parameter that defines an item used for getting host metadata.
  161. #   Host metadata is used at host auto-registration process.
  162. #   During an auto-registration request an agent will log a warning message if
  163. #   the value returned by specified item is over limit of 255 characters.
  164. #   This option is only used when HostMetadata is not defined.
  165. #
  166. # Mandatory: no
  167. # Default:
  168. # HostMetadataItem=
  169.  
  170. ### Option: RefreshActiveChecks
  171. #   How often list of active checks is refreshed, in seconds.
  172. #
  173. # Mandatory: no
  174. # Range: 60-3600
  175. # Default:
  176. # RefreshActiveChecks=120
  177.  
  178. ### Option: BufferSend
  179. #   Do not keep data longer than N seconds in buffer.
  180. #
  181. # Mandatory: no
  182. # Range: 1-3600
  183. # Default:
  184. # BufferSend=5
  185.  
  186. ### Option: BufferSize
  187. #   Maximum number of values in a memory buffer. The agent will send
  188. #   all collected data to Zabbix server or Proxy if the buffer is full.
  189. #
  190. # Mandatory: no
  191. # Range: 2-65535
  192. # Default:
  193. # BufferSize=100
  194.  
  195. ### Option: MaxLinesPerSecond
  196. #   Maximum number of new lines the agent will send per second to Zabbix Server
  197. #   or Proxy processing 'log', 'logrt' and 'eventlog' active checks.
  198. #   The provided value will be overridden by the parameter 'maxlines',
  199. #   provided in 'log', 'logrt' or 'eventlog' item keys.
  200. #
  201. # Mandatory: no
  202. # Range: 1-1000
  203. # Default:
  204. # MaxLinesPerSecond=20
  205.  
  206. ############ ADVANCED PARAMETERS #################
  207.  
  208. ### Option: Alias
  209. #   Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.
  210. #   Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
  211. #   Different Alias keys may reference the same item key.
  212. #   For example, to retrieve paging file usage in percents from the server:
  213. #   Alias=pg_usage:perf_counter[\Paging File(_Total)\% Usage]
  214. #   Now shorthand key pg_usage may be used to retrieve data.
  215. #   Aliases can be used in HostMetadataItem but not in HostnameItem or PerfCounter parameters.
  216. #
  217. # Mandatory: no
  218. # Range:
  219. # Default:
  220.  
  221. ### Option: Timeout
  222. #   Spend no more than Timeout seconds on processing.
  223. #
  224. # Mandatory: no
  225. # Range: 1-30
  226. # Default:
  227. # Timeout=3
  228.  
  229. ### Option: PerfCounter
  230. #   Syntax: <parameter_name>,"<perf_counter_path>",<period>
  231. #   Defines new parameter <parameter_name> which is an average value for system performance counter <perf_counter_path> for the specified time period <period> (in seconds).
  232. #   For example, if you wish to receive average number of processor interrupts per second for last minute, you can define new parameter "interrupts" as following:
  233. #   PerfCounter = interrupts,"\Processor(0)\Interrupts/sec",60
  234. #   Please note double quotes around performance counter path.
  235. #   Samples for calculating average value will be taken every second.
  236. #   You may run "typeperf -qx" to get list of all performance counters available in Windows.
  237. #
  238. # Mandatory: no
  239. # Range:
  240. # Default:
  241.  
  242. ### Option: Include
  243. #   You may include individual files in the configuration file.
  244. #
  245. # Mandatory: no
  246. # Default:
  247. # Include=
  248.  
  249. Include=c:\zabbix\conf\zabbix_agentd.userparams.conf
  250. # Include=c:\zabbix\zabbix_agentd.conf.d\
  251. # Include=c:\zabbix\zabbix_agentd.conf.d\*.conf
  252.  
  253. ####### USER-DEFINED MONITORED PARAMETERS #######
  254.  
  255. ### Option: UnsafeUserParameters
  256. #   Allow all characters to be passed in arguments to user-defined parameters.
  257. #   The following characters are not allowed:
  258. #   \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
  259. #   Additionally, newline characters are not allowed.
  260. #   0 - do not allow
  261. #   1 - allow
  262. #
  263. # Mandatory: no
  264. # Range: 0-1
  265. # Default:
  266. # UnsafeUserParameters=0
  267.  
  268. ### Option: UserParameter
  269. #   User-defined parameter to monitor. There can be several user-defined parameters.
  270. #   Format: UserParameter=<key>,<shell command>
  271. #
  272. # Mandatory: no
  273. # Default:
  274. # UserParameter=
  275.  
  276. UserParameter=installdate,wmic OS get installDate
  277. UserParameter=partition,wmic volume get caption,driveletter,label,name
  278.  
  279.  
  280. ####### TLS-RELATED PARAMETERS #######
  281.  
  282. ### Option: TLSConnect
  283. #   How the agent should connect to server or proxy. Used for active checks.
  284. #   Only one value can be specified:
  285. #       unencrypted - connect without encryption
  286. #       psk         - connect using TLS and a pre-shared key
  287. #       cert        - connect using TLS and a certificate
  288. #
  289. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  290. # Default:
  291.  
  292. # For Auto Adding first unencrypted. After Running once, changeing to psk
  293. TLSConnect=unencrypted
  294. # TLSConnect=psk
  295.  
  296. ### Option: TLSAccept
  297. #   What incoming connections to accept.
  298. #   Multiple values can be specified, separated by comma:
  299. #       unencrypted - accept connections without encryption
  300. #       psk         - accept connections secured with TLS and a pre-shared key
  301. #       cert        - accept connections secured with TLS and a certificate
  302. #
  303. # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
  304. # Default:
  305. TLSAccept=psk
  306.  
  307. ### Option: TLSCAFile
  308. #   Full pathname of a file containing the top-level CA(s) certificates for
  309. #   peer certificate verification.
  310. #
  311. # Mandatory: no
  312. # Default:
  313. # TLSCAFile=
  314.  
  315. ### Option: TLSCRLFile
  316. #   Full pathname of a file containing revoked certificates.
  317. #
  318. # Mandatory: no
  319. # Default:
  320. # TLSCRLFile=
  321.  
  322. ### Option: TLSServerCertIssuer
  323. #      Allowed server certificate issuer.
  324. #
  325. # Mandatory: no
  326. # Default:
  327. # TLSServerCertIssuer=
  328.  
  329. ### Option: TLSServerCertSubject
  330. #      Allowed server certificate subject.
  331. #
  332. # Mandatory: no
  333. # Default:
  334. # TLSServerCertSubject=
  335.  
  336. ### Option: TLSCertFile
  337. #   Full pathname of a file containing the agent certificate or certificate chain.
  338. #
  339. # Mandatory: no
  340. # Default:
  341. # TLSCertFile=
  342.  
  343. ### Option: TLSKeyFile
  344. #   Full pathname of a file containing the agent private key.
  345. #
  346. # Mandatory: no
  347. # Default:
  348. # TLSKeyFile=
  349.  
  350. ### Option: TLSPSKIdentity
  351. #   Unique, case sensitive string used to identify the pre-shared key.
  352. #
  353. # Mandatory: no
  354. # Default:
  355. TLSPSKIdentity=CHANGEME
  356.  
  357. ### Option: TLSPSKFile
  358. #   Full pathname of a file containing the pre-shared key.
  359. #
  360. # Mandatory: no
  361. # Default:
  362. TLSPSKFile=C:\zabbix\conf\tls.psk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement