Advertisement
SipriusPT

Untitled

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