zabbix-agent

zabbix-agent

安装zabbix 软件源
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
安装zabbix-agent
yum install zabbix-sender zabbix-agent zabbix
配置zabbix-agent
如果zabbix-agent在zabbix-server上,zabbix_agentd.conf 默认即可
若zabbix-agent不在zabbix-server上,则修改zabbix_agentd.conf
修改server的指向和hostname
sed -i “s/Server=127.0.0.1/Server=192.168.8.186/” /etc/zabbix/zabbix_agentd.conf
[[email protected]~23:27:58]#sed -i “s/ServerActive=127.0.0.1/ServerActive=192.168.8.186/” /etc/zabbix/zabbix_agentd.conf
sed -i “s/Hostname=Zabbix server/Hostname=192.168.8.183/” /etc/zabbix/zabbix_agentd.conf

启动并设置开机自启
service zabbix-agent restart
chkconfig zabbix-agent on

zabbix界面添加agent主机

Host——create Host
zabbix-agentzabbix-agent添加模板
zabbix-agent