## configuration of the Linux client
Zabbix-agent Installation Scripts
"'bash
#!/bin/bash
# Add Zabbix3yum Source
Cat > /etc/yum.repos.d/zabbix.repo <<EOF
[zabbix3.0]
name=zabbix3.0
baseurl=http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/
Gpgcheck=0
Eof
#给被监控主机安装zabbix客户端
Yum Install Zabbix-agent-y
```
Edit/etc/zabbix/zabbix_agentd.conf
"'bash
# which hosts are allowed to monitor this host, change the agent name
# 124.207.65.*** is the address of zabbix-server
server=127.0.0.1,124.207.65. ***
# each monitored host hostname name needs to be different
Hostname=zabbixserver
# allow commands to be executed by action
Enableremotecommands=1
```
Start the server, boot up
"'bash
Systemctl Enable Zabbix-agent.service
Systemctl Start Zabbix-agent.service
```
Authorizing Zabbix users to perform certain privileged instructions when 'visudo'
"'bash
# allows ' Zabbix ' user to restart Nginx without password.
Zabbix all=nopasswd:/usr/local/nginx/sbin/nginx-s Reload
# allows ' Zabbix ' user to check MySQL without password.
Zabbix all=nopasswd:/bin/mysqlslave.sh
```
This article is from "Lao Wang Linux Journey" blog, please be sure to keep this source http://oldking.blog.51cto.com/10402759/1981216
Configuration of the Zabbix Linux client