首页 > Windows开发 > 详细

zabbix_agentd.win.conf全文和配置

时间:2016-02-13 15:49:41      阅读:495      评论:0      收藏:0      [点我收藏+]
  1. # This is config file for zabbix_agentd

  2. # To get more information about ZABBIX, go http://www.zabbix.com


  3. ############ GENERAL PARAMETERS #################


  4. # List of comma delimited IP addresses (or hostnames) of ZABBIX servers. 

  5. # No spaces allowed. First entry is used for sending active checks.

  6. # Note that hostnames must resolve hostname->IP address and

  7. # IP address->hostname.


  8. Server=192.168.2.207


  9. # Server port for sending active checks


  10. #ServerPort=10051


  11. # Unique hostname. Required for active checks.


  12. Hostname=win2203


  13. # Listen port. Default is 10050


  14. #ListenPort=10050


  15. # IP address to bind agent

  16. # If missing, bind to all available IPs


  17. #ListenIP=127.0.0.1


  18. # Number of pre-forked instances of zabbix_agentd.

  19. # Default value is 5

  20. # This parameter must be between 1 and 16


  21. StartAgents=5


  22. # How often refresh list of active checks. 2 minutes by default.


  23. #RefreshActiveChecks=120


  24. # Disable active checks. The agent will work in passive mode listening server.


  25. #DisableActive=1


  26. # Enable remote commands for ZABBIX agent. By default remote commands disabled.


  27. #EnableRemoteCommands=1


  28. # Specifies debug level

  29. # 0 - debug is not created

  30. # 1 - critical information

  31. # 2 - error information

  32. # 3 - warnings (default)

  33. # 4 - for debugging (produces lots of information)


  34. DebugLevel=3


  35. # Name of PID file


  36. #PidFile=/var/tmp/zabbix_agentd.pid


  37. # Name of log file.

  38. # If not set, syslog will be used


  39. LogFile=C:/zabbix/zabbix_agentd.log


  40. # Maximum size of log file in MB. Set to 0 to disable automatic log rotation.

  41. #LogFileSize=1


  42. # Spend no more than Timeout seconds on processing

  43. # Must be between 1 and 30


  44. Timeout=3


  45. ####### USER-DEFINED MONITORED PARAMETERS #######

  46. # Format: UserParameter=<key>,<shell command>

  47. # Note that shell command must not return empty string or EOL only

  48. #UserParameter=system.test,who|wc -l

  49. ### Set of parameter for monitoring MySQL server (v3.23.42 and later)

  50. ### Change -u<username> and add -p<password> if required

  51. #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l

  52. #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"

  53. #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"

  54. #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"

  55. #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"

  56. #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"

  57. #UserParameter=mysql.version,mysql -V


zabbix_agentd.win.conf全文,红线部分需要修改,Server为zabbix服务器端ip,hostname为本机名,logfile为日志文件地址,需要注意的是安装前要先找好路径建立.log文件。

本文出自 “学习笔记” 博客,请务必保留此出处http://sttdwxj.blog.51cto.com/10536221/1741769

zabbix_agentd.win.conf全文和配置

原文:http://sttdwxj.blog.51cto.com/10536221/1741769

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!