配置zabbix监控客户端(CentOS7)

  1. 安装yum源
//CentOS7
rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/7/x86_64/zabbix-release-2.2-1.el7.noarch.rpm
//CentOS6
rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
//
[root@qingyidai-zhaowei ~]#  grep -v "#" /etc/zabbix/zabbix_agentd.conf |grep -v ^$
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=172.16.201.110
ServerActive=172.16.201.110:10051
Hostname=zabbix
Include=/etc/zabbix/zabbix_agentd.d/
 
/bin/systemctl restart  zabbix-agent.service
[root@qingyidai-zhaowei ~]# /bin/systemctl enable  zabbix-agent.service
ln -s '/usr/lib/systemd/system/zabbix-agent.service' '/etc/systemd/system/multi-user.target.wants/zabbix-agent.service'
 
 
  1. Xenserver下安装zabbix-agent
yum install zabbix-agent -y
vim /etc/zabbix/zabbix_agentd.conf
[root@zhaowei ~]# grep -v "#" /etc/zabbix/zabbix_agentd.conf |grep -v ^$
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=172.16.201.110
ServerActive=172.16.201.110:10051
Hostname=Zabbix server
Include=/etc/zabbix/zabbix_agentd.d/
//重启服务
#service zabbix-agent restart
Shutting down Zabbix agent:                                [  OK  ]
Starting Zabbix agent:                                          [  OK  ]
[root@zhaowei ~]# chkconfig zabbix-agent on
 
posted @ 2017-02-04 14:13  wyyservice  阅读(366)  评论(0编辑  收藏  举报