Advertisement
SipriusPT

Untitled

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