The working mode of data acquisition can be divided into passive mode (server-to-client data acquisition)
Active mode (client actively escalation data to server)
server configuration:
dbhost=192.168.32.55
dbname= Zabbix
Dbuser=zabbixuser
Dbpassword=zabbixpass
dbsocket=/data01/mysql/mysql.sock
starttrappers=20
maxhousekeeperdelete=5000
cachesize=1024m
Startdbsyncers=8
trendcachesize=128m
historytextcachesize=512m
alertscriptspath=/etc/zabbix/ Alertscripts
logslowqueries=1000
logfile=/tmp/zabbix_server.log
valuecachesize=128m
javagateway=127.0.0.1
javagatewayport=10052
startjavapollers=5
Client configuration:
server= 115.236.160.82 #被动模式, Zabbix server IP address
serveractive=115.236.160.82
hostname=zj-backoffice
Unsafeuserparameters=1
include=/etc/zabbix/zabbix_agentd.conf.d/
Server: Passive mode, which machine is allowed to connect to Aget
Serveractive: Active mode, to which server to transfer data