zabbix配置(六)之zabbix客户端安装

zabbix客户端安装:
Ubuntu安装:
下载软件包:
[root@localhost ~]# wget http://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-1+xenial_all.deb 
[root@localhost ~]# dpkg -i zabbix-release_4.0-1+xenial_all.deb
[root@localhost ~]# apt update
[root@localhost ~]# sudo apt-get install zabbix-agent
开机启动:
update-rc.d zabbix-agent defaults 90
centos安装:
[root@localhost ~]# useradd zabbix -s /sbin/nologin -M
[root@localhost ~]# yum -y install mysql-devel libevent* net-snmp-devel libxml2 libxml2-devel curl curl-devel gcc
[root@localhost ~]# tar -xf zabbix-4.0.1.tar.gz
[root@localhost ~]# cd zabbix-4.0.1
[root@localhost zabbix-4.0.1]# ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --with-libxml2
[root@localhost zabbix-4.0.1]# make&&make install

[root@localhost ~]# sed -i "94c Server=192.168.0.117" /usr/local/zabbix/etc/zabbix_agentd.conf
[root@localhost ~]# sed -i "135c ServerActive=192.168.0.117" /usr/local/zabbix/etc/zabbix_agentd.conf
[root@localhost ~]# sed -i "290c UserParameter=login-user,who|wc -l" /usr/local/zabbix/etc/zabbix_agentd.conf

你可能感兴趣的:(zabbix,云深海阔专栏)