/zabbix/zabbix_agentd.conf

http://github.com/brinkman83/bashrc · Config · 90 lines · 60 code · 30 blank · 0 comment · 0 complexity · 7ebdfa19d8b45aeba85e8d87bd8d21c8 MD5 · raw file

  1. # This is config file for zabbix_agentd
  2. # in case the agent is started standalone from init.d (not via inetd).
  3. #
  4. # To get more information about ZABBIX, go http://www.zabbix.com
  5. ############ GENERAL PARAMETERS #################
  6. # List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
  7. # No spaces allowed. First entry is used for sending active checks.
  8. # Note that hostnames must resolve hostname->IP address and
  9. # IP address->hostname.
  10. Server=192.168.1.2
  11. # Server port for sending active checks
  12. #ServerPort=10051
  13. # Unique hostname. Required for active checks.
  14. Hostname=localhost
  15. # Listen port. Default is 10050
  16. #ListenPort=10050
  17. # IP address to bind agent
  18. # If missing, bind to all available IPs
  19. #ListenIP=127.0.0.1
  20. # Number of pre-forked instances of zabbix_agentd.
  21. # Default value is 5
  22. # This parameter must be between 1 and 16
  23. StartAgents=5
  24. # How often refresh list of active checks. 2 minutes by default.
  25. #RefreshActiveChecks=120
  26. # Disable active checks. The agent will work in passive mode listening server.
  27. #DisableActive=1
  28. # Enable remote commands for ZABBIX agent. By default remote commands disabled.
  29. #EnableRemoteCommands=1
  30. # Specifies debug level
  31. # 0 - debug is not created
  32. # 1 - critical information
  33. # 2 - error information
  34. # 3 - warnings
  35. # 4 - information (default)
  36. # 5 - for debugging (produces lots of information)
  37. DebugLevel=3
  38. # Name of PID file
  39. PidFile=/var/run/zabbix-agent/zabbix_agentd.pid
  40. # Name of log file.
  41. # If not set, syslog will be used
  42. LogFile=/var/log/zabbix-agent/zabbix_agentd.log
  43. # Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
  44. #LogFileSize=1
  45. # Spend no more than Timeout seconds on processing
  46. # Must be between 1 and 30
  47. Timeout=3
  48. ####### USER-DEFINED MONITORED PARAMETERS #######
  49. # Format: UserParameter=<key>,<shell command>
  50. # Note that shell command must not return empty string or EOL only
  51. #UserParameter=system.test,who|wc -l
  52. ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
  53. ### Change -u<username> and add -p<password> if required
  54. #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
  55. #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
  56. #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
  57. #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
  58. #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
  59. #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
  60. #UserParameter=mysql.version,mysql -V