Zabbix configuration file Type:
Zabbix_server configuration file zabbix_server.conf zabbix_proxy profile zabbix_proxy.conf Zabbix-agentd profile zabbix_agentd.conf
Configuration file for Zabbixserver:
nodeid=0 #分布式节点id号, 0 is a standalone server, the default is commented out, do not force the configuration listenport=10051 #zabbix server port, the default is 10051, can be modified by itself, The range is 1024-32767 The default is sourceip= #连接的源ip地址, default is empty, default is logfile=/tmp/zabbix_server.log # Log file storage location logfilesize=1 #说明: How many meters the log is rotated; If the value of this parameter is 0 o'clock, then the log will continue to grow, and it is recommended to set the rotation. debuglevel=3 #指定调试级别, pidfile=/tmp/zabbix_server.pid #pid文件的存放位置DBHost =localhost #数据库主机名 by default, When set to localhost, connect MySQL via sockdbname=zabbix #指定存放zabbix数据数据库的名字DBUser =zabbix #指定连接数据库的用户名DBPassword = 123456 #用户连接数据库需要的密码DBSocket =/var/lib/mysql/mysql.sock #前文主机设置为localhost, the sock location used by the user to connect to the database, dbport= 3306 #数据库的端口号, when connected with sock, it does not matter, when connected through the network to set the startpollers=5 #说明; when initializing, the number of sub-processes is started, the more the quantity is, the higher the throughput capacity of the server, the greater the consumption of system resources. startipmipollers=0 #说明: Used primarily for IPMI technology to obtain hardware status scenarios. If there is no related monitoring item, it is recommended to set the number of receiving process for data submitted by 0starttrappers=5 #用于设置诸如SNMP strapper scene, if the client Snmp trapper technology is more, It is recommended to increase this parameter value startpingers=1 #用于设置启用icmp协议PING主机方式启动线程数量, if the single agent to manage more than 500 machines, it is recommended to increase this value startdiscoverers=1 # The number of threads used to set the Autodiscover host if the single agent manages more than 5 machines00 units, you can consider increasing this value (only for direct agent scenarios) starthttppollers=1# Description: Used to set the number of Web dial monitoring threads, depending on the situation to increase or decrease this value. javagateway=127.0.0.1 #JavaGateway的ip地址或主机名JavaGatewayPort =10052 #JavaGateway的端口号StartJavaPollers =5 #开启连接javagatey的进程数SNMPTrapperFile =/tmp/zabbix_traps.tmpstartsnmptrapper=0 #如果设置为1,snmp The trapper process will open the listenip=0.0.0.0 #监听来自trapper的ip地址ListenIP =127.0.0.1housekeepingfrequency=1 # Description: How many hours to clean up the proxy-side database history, alert, and alarms to keep the proxy-side database lightweight, it is recommended to keep the default maxhousekeeperdelete=500 # Every time you poll housekeeper This task, rows that exceed this threshold will be cleared. senderfrequency=30 #说明: How many seconds to retry sending the failed alarm information cachesize=8m #说明: How much system shared memory is used to store configuration information, Host,item, Zabbix initialization, Trigger data, depending on the number of monitoring host and monitoring items adjustment, it is recommended to adjust to 32M or greater cacheupdatefrequency=60 #说明: Zabbix update OS cache configuration, if the management page operation is not frequent, You can consider increasing the parameter value startdbsyncers=4 #将采集数据从CACHE同步到数据库线程数量, depending on the database server I/O busy situation, and database write ability adjustment. The higher the value, the stronger the writing ability. The greater the pressure on the database server I/O. historycachesize=8m #说明: Used to set how much of the system shared memory is used to store the collected historical data, the larger the value, the smaller the database read pressure trendcachesize=4m # Description: Used to set how much of the system shared memory is used to store the calculated trend data, this parameter value can affect the database reading pressure to some extent Historytextcachesize=16m #说明: Specifies how much system shared memory is used to store character, text or log history data, if the level two agent memory is sufficient, It is recommended to enlarge this value appropriately, which can solve the system I/O pressure, and the database reading pressure valuecachesize=8m #说明: Draw out the system how much shared memory for the requested storage monitoring item information, if more monitoring items, It is recommended to increase this value nodenoevents=0 #说明: If the node is a child, whether the local event (events table) is allowed to be sent to the master node, 1 is not sent, but does not affect the propagation capacity of nodes below this node, depending on the Zabbix Distributed system Architecture design is turned on or off. In the case of unknown architectures, it is recommended to keep the default nodenohistory=0 #说明: If the nodes are child nodes, whether to allow local historical data to be sent to the master node, 1 is not sent, but does not affect the propagation capacity of nodes below this node, depending on the Zabbix Distributed system architecture design on or off , it is recommended to keep the default timeout=3 #说明: Communication time-out settings with AGNET\SNMP devices and other external devices, in seconds, if the data collection is incomplete or the network is busy, or if the client status changes frequently from the management page, consider increasing this value. Note that if this value is increased, it is necessary to consider the parameters StartPollers whether there is a corresponding increase. trappertimeout=300 #说明: Enables the trapper feature for process wait timeout settings. Adjust the unreachableperiod=45 #说明 as needed: If the agnet end is in an unusable state, after how many seconds, try reconnecting. It is recommended to set it according to specific circumstances. Note that if this value is too small, the right agent Terminal business System is busy, it is possible to cause alarm information false unavailabledelay=60 #说明: When the agent side is in the available state, after how many seconds interval, the state check. If the data can be collected normally, but the Management page agent status is not normal, if the network, port, etc., the agent state is still not normal, you can consider increasing this value unreachabledelay=15 #说明: When the agent side is in the unreachable state, After a delay of a few seconds, to retry, it is recommended to keep the default, during the agent access debugging phase, you can consider reducing this value ALERTSCRIPTSPATH=/USR/LOCAL/ZABBIX/SHELL  #监控报警脚本的存放路径 FpingLocation=/usr/local/sbin/fping #说明: ipv4 fping command path, root only available. Note When you use this command, you should confirm that the command exists sshkeylocation= #说明: used when the server needs to SSH to the agent side and uses key authentication mode. logslowqueries=0 #说明: For server-side database slow query function, in milliseconds, 1 milliseconds = 0.001 seconds, if there is a server-side database to monitor the requirements of slow query, you can adjust this number depending on the situation. tmpdir=/tmpinclude=/usr/local/etc/zabbix_server.general.confinclude=/usr/local/etc/zabbix_server.conf.d/ #子配置文件路径StartProxyPollers =1 #在zabbix proxy Passive mode with this parameter proxyconfigfrequency=3600# ibid Proxydatafrequency=1
zabbixagentd configuration file
pidfile=/tmp/zabbix_agentd.pid #pid文件的存放位置LogFile =/tmp/zabbix_agentd.log #日志文件的位置LogFileSize =1 #当日志文件达到多大时进行轮询操作DebugLevel =3 #日志信息级别SourceIP = #连接的源ip地址, default is empty, you can enableremotecommands=0 # Whether to allow remote instructions on the zabbix server side, 0 to disallow, 1 to allow logremotecommands=0 #是否开启日志记录shell命令作为警告 0 to disallow, and 1 to allow the server =127.0.0.1 #zabbix server IP address or hostname, can be listed at the same time multiple, need to be separated by commas listenport=10050 #zabbix The agent listens on the port listenip=0.0.0.0 #zabbix agent listening IP address startagents=3 #zabbix Agent Open Process serveractive=127.0.0.1 #开启主动检查Hostname =zabbix server# the host name specified in the Zabbix server front-end configuration, The most important configuration refreshactivechecks=120 #主动检查刷新的时间, in seconds buffersend=5 #数据缓冲的时间BufferSize =100 #zabbix The size of the agent data buffer, when this value is reached, all data is sent to the zabbix servermaxlinespersecond=100 #zabbix agent sent to zabbix Server largest data row allowroot=0 #是否允许zabbix agent run timeout=3 #设定处理超时的时间Include with root user =/usr/local/ Etc/zabbix_agentd.userparams.confinclude=/usr/local/etc/zabbix_agentd.conf.d/ #包含子配置文件的路径UnsafeUserParameters =0 #是否允许所有字符参数的传递UserParameter = #指定用户自定义参数
Configuration file for Zabbixproxy
server=192.168.70.133 #指定zabbix server IP address or hostname hostname=zabbix-proxy-1.35 #定义监控代理的主机名, required and Zabbix Server Front-end configuration specifies the same node name Logfile=/tmp/zabbix_proxy.log #指定日志文件的位置PidFile =/tmp/zabbix_proxy.pid #pid文件的位置DBName =zabbix_ Proxy #数据库名DBUser =zabbix #连接数据库的用户DBPassword =123456# Connection database user's password configfrequency=60 #zabbix proxy from Zabbix How often the server obtains the configuration data datasenderfrequency=60 #zabbix proxy sends the monitored data to Zabbix server
Official website configuration file:
https://www.zabbix.com/documentation/2.4/manual/appendix/config/zabbix_proxyhttps://www.zabbix.com/ Documentation/2.4/manual/appendix/config/zabbix_serverhttps://www.zabbix.com/documentation/2.4/manual/appendix /config/zabbix_agentd
Zabbix Tutorial-zabbix configuration file detailed