zabbix - zabbix server configurations and mounting configuration zabbix agent

 

1, disposed end zabbix Server during installation zabbix source has been configured, the specific parameters to be configured as follows:

= 10051 ListenPort Server service listening port, default is 10051
= DBHost localhost IP address database
= DBName zabbix database name
= DBUser zabbix database user name
= DBPassword zabbix database password
DBPort = 3306 database port, the default is 3306
ListenIP=127.0.0.1,192.168.10.10  zabbix server ip地址
Vim / etc / ZABBIX / zabbix_server.conf 
the ListenPort = 10051 DBHost
= localhost ip address database DBName = ZABBIX DBUser = ZABBIX DBPassword = ZABBIX
dbport = 3306

ListenIP
= 127.0 . 0.1 , 192.168 . 10.10 ZABBIX Server ip address

Just beginning to concern is that, back then supplement.

 There is: zabbix run the script storage path, this configuration also /etc/zabbix/zabbix_server.conf configuration file, the default address is:

AlertScriptsPath=${datadir}/zabbix/alertscripts

 

 

 zabbix_agent client configuration, the server when the source has been installed, the bulk of the deployment does not recommend clients to use the source code installation is recommended rpm package installation, you can use the rpm zabbix official

Path: repo.zabbix.com/zabbix/3.0/

Modify Agent configuration file

 

zabbix agent configuration is very simple, only need to modify zabbix agent profile Server, ServerActive and Hostname three can be.

Wherein Server, ServerActive zabbix server is the IP address of the server, the Hostname is the IP address of the monitoring terminal, as follows:

# sed -i "s/Server\=127.0.0.1/Server\=127.0.0.1,192.168.30.130/g" /etc/zabbix/zabbix_agentd.conf 
 
# sed -i "s/ServerActive\=127.0.0.1/ServerActive\=192.168.30.130:10051/g" /etc/zabbix/zabbix_agentd.conf 
 
# sed -i "s#tmp/zabbix_agentd.log#var/log/zabbix/zabbix_agentd.log#g" /etc/zabbix/zabbix_agentd.conf
  
# sed -i "#UnsafeUserParameters=0#aUnsafeUserParameters=1\n" /etc/zabbix/zabbix_agentd.conf

Agent copy startup script

# mkdir /var/log/zabbix 
# chown zabbix.zabbix /var/log/zabbix 
# cp misc/init.d/fedora/core/zabbix_agentd /etc/init.d/ 
# chmod 755/etc/init.d/zabbix_agentd 
# sed -i "s#BASEDIR=/usr/local#BASEDIR=/usr/#g"  /etc/init.d/zabbix_agentd

 

Set Agent boot

# chkconfig zabbix_agentd on 
# servicezabbix_agentdstart

Use the following command in the Server-side tests whether it can connect to the Agent side:

[root@localhost ~]# /usr/local/zabbix/bin/zabbix_get -s 192.168.217.139 -p 10050 -k "system.uptime"
17340

 

Guess you like

Origin www.cnblogs.com/laonicc/p/7306201.html