zabbix 5.0 agent安装

网友投稿 695 2022-09-02

zabbix 5.0 agent安装

1.-

2.本文使用yum方式安装Zabbix Agent,在安装前首先添加对应的yum repository,以下列出了CentOS/RHEL版本的添加地址

CentOS/RHEL 7:# rpm -Uvh 6:# rpm -Uvh 5:# rpm -Uvh home]# rpm -ivh zabbix-agent-3.2.9-1.el7.x86_64.rpm warning: zabbix-agent-3.2.9-1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEYPreparing... ################################# [100%]Updating / installing... 1:zabbix-agent-3.2.9-1.el7 ################################# [100%][root@agent home]#

4.修改配置文件

[root@agent zabbix]# cat /etc/zabbix/zabbix_agentd.conf | egrep "Server|Hostname" | grep -v "#"Server=192.168.56.110ServerActive=192.168.56.110Hostname=agent

5.重启agent

[root@agent zabbix]# service zabbix-agent restartRedirecting to /bin/systemctl restart zabbix-agent.service

6.添加开机启动

[root@agent zabbix]# systemctl enable zabbix-agentCreated symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.service.``````shell[root@agent zabbix]# systemctl enable zabbix-agentCreated symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.service.

zabbix

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Solidity语言详解
下一篇:Linux shell ping脚本
相关文章

 发表评论

暂时没有评论,来抢沙发吧~