rhel5.5安装zabbix客户端

测试一下zabbix客户端能否在rhel5上面运行,服务器依然是rhel7。

由于os版本实在太低,zabbix客户端只能安装2.2的了。

 

1.下载安装LTS long time support,从网站下载传到客户端上,手动安装:

https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm

[root@qht115 zabbix_resource]# rpm -ivh zabbix-release-2.2-1.el5.noarch.rpm
warning: zabbix-release-2.2-1.el5.noarch.rpm: Header V4 DSA signature: NOKEY, key ID 79ea5ed4
Preparing...                ########################################### [100%]
   1:zabbix-release         ########################################### [100%]


[root@qht115 yum.repos.d]# ls
CentOS-Base.repo       zabbix.repo

2.直接安装客户端会提示错误,需要安装一个服务器端,安装提示做吧

[root@qht115 zabbix_resource]# rpm -ivh zabbix-agent-2.2.0-2.el5.x86_64.rpm
warning: zabbix-agent-2.2.0-2.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID 79ea5ed4
error: Failed dependencies:
        zabbix = 2.2.0-2.el5 is needed by zabbix-agent-2.2.0-2.el5.x86_64
[root@qht115 zabbix_resource]# rpm -ivh zabbix-2.2.0-2.el5.x86_64.rpm
warning: zabbix-2.2.0-2.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID 79ea5ed4
Preparing...                ########################################### [100%]
   1:zabbix                 ########################################### [100%]
[root@qht115 zabbix_resource]# rpm -ivh zabbix-agent-2.2.0-2.el5.x86_64.rpm
warning: zabbix-agent-2.2.0-2.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID 79ea5ed4
Preparing...                ########################################### [100%]
   1:zabbix-agent           ########################################### [100%]

3.修改zabbix配置文件zabbix_agentd.conf:

将zabbix_agentd.conf的第85行改成服务器的IP

[root@qht115 ~]# vi /etc/zabbix/zabbix_agentd.conf

     81 # Mandatory: no
     82 # Default:
     83 # Server=
     84
     85 Server=172.17.61.131
     86
     87 ### Option: ListenPort

4.启动zabbix客户端软件

[root@qht115 ~]# service zabbix-agent start
Starting Zabbix agent:                                     [  OK  ]

 确认10050端口已开启:

[root@qht115 ~]# netstat -nal | grep 10050
tcp        0      0 0.0.0.0:10050               0.0.0.0:*                   LISTEN

 

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: Age of Ai 设计师:meimeiellie 返回首页