Get the App
SLTechnology News&Howtos  ›  Network Security  › 

CentOS 6.5installation and deployment of zabbix (Agent client)

Shulou Source: shulou.com Published: 2022-06-01 07:32:03 11月26日 Update

Installation of linux server client

Since we have already installed zabbix_agentd on the zabbix_server machine, there is no need to install it again. So how are other linux machines that need to be monitored installed? when installing the client, the software package is the same as the server, except that the configuration parameters of configure are different. Of course, the source code installation, what GCC,make commands have to be installed, so the client does not recommend source code installation, because for a large number of machines (thousands, very common in Internet companies), it is recommended to install the rpm package, the following shows the use of source code installation

Download the zabbix installation package

# wget "http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz?r=http%3A%2F%2Fwww.zabbix.com%2Fdownload.php&ts=1395066528&use_mirror=jaist"# groupadd zabbix- g # useradd-g zabbix- u 201-m zabbix # tarxf zabbix-2.0.8.tar.gz # cd zabbix-2.0.8 #. / configure-- prefix=/usr-- sysconfdir=/etc/zabbix-- enable-agent # make# make install

Copy the Agent 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

Add zabbix to the system service file

# vim / etc/services zabbix-agent 10050/tcp # ZabbixAgent zabbix-agent 10050/udp # ZabbixAgent zabbix-trapper 10051/tcp # ZabbixTrapper zabbix-trapper 10051/udp # ZabbixTrapper

Modify Agent configuration file

# sed-I "s/Server\ = 127.0.0.1/Server\ = 127.0.0.1192.168.30.130 g" / etc/zabbix/zabbix_agentd.conf # sed-I "s/ServerActive\ = 127.0.0.1/ServerActive\ = 192.168.30.130127.0.0.1/Server 10051 s#tmp/zabbix_agentd.log#var/log/zabbix/zabbix_agentd.log#g 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

Set Agent to boot

# chkconfig zabbix_agentd on # servicezabbix_agentdstart

Use the following command on the server side to test whether you can connect to the Agent side:

# / usr/bin/zabbix_get-s 192.168.30.131-p 10050-k "system.uptime" (192.169.30.131 is IP) 77177

CentOS 6.5install and deploy zabbix (Server side): http://zlyang.blog.51cto.com/1196234/1685629

Zabbix displays Chinese or the picture is garbled-solution: http://zlyang.blog.51cto.com/1196234/1685863

Tags: Client machine source code service command file server end configuration client different garbled Internet company again parameter just picture common suggestion Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Redmi Shulou Technology vpn Xiaomi