zabbix-agent端安装配置

1、下载对应的zabbix-agent.rpm包传至服务器

http://repo.zabbix.com/

查看操作系统(发行版)

cat /etc/redhat-release

查看操作系统位数

getconf LONG_BIT

2、安装

chmod 777 zabbix-agent-4.0.2-1.el5.x86_64.rpm

rpm -ivh zabbix-agent-4.0.2-1.el5.x86_64.rpm

3、修改配置文件

vi /etx/zabbix/zabbix_agentd.conf

Server=zabbix server ip

ServerActive=zabbix server ip

Hostname=本机IP #不要用127.0.0.1

4、关闭防火墙、或者开放10050、10051端口

service iptables status

-A INPUT -m state --state NEW -m udp -p udp --dport 10050 -j ACCEPT  
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10050 -j ACCEPT  
-A INPUT -m state --state NEW -m udp -p udp --dport 10051 -j ACCEPT  
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT  

6、启动

service zabbix-agent start

7、关联主机

配置-》主机-》创建主机

猜你喜欢

转载自blog.csdn.net/weixin_37565541/article/details/91550512