Client yum install zabbix

   1. Like the server, install the zabbix source

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6 .repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6 .repo
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

    2. Install the zabbix server (because it contains a pound sign, you can only take a screenshot)

After installation, it can be written to boot and start automatically

Server

chmod +x /etc/rc.d/rc.local
cat >>/etc/rc.d/rc.local<<EOF
systemctl start mariadb.service
systemctl start httpd
systemctl start zabbix-server
EOF

client

chmod +x /etc/rc.d/rc.local
cat >>/etc/rc.d/rc.local<<EOF
systemctl start  zabbix-agent.service
EOF

 

test connectivity

Server-side installation of zabbix-get

yum install zabbix-get -y

After the installation is complete, execute

zabbix_get -s 192.168.137.104 -p 10050 -k "system.cpu.load[all,avg1]"

You can see the following results

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324405546&siteId=291194637