zabbix-agent在麒麟V10上的安装过程

2025-05-27 0 57

1、安装包下载

下载地址:https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/

2、安装

#增加zabbix用户并设置为不可登录状态

?

1
shell > useradd -r -s /sbin/nologin zabbix

#将下载包上传到麒麟V10服务器上后解压

?

1

2

3

4

5

6

7
shell >tarzxf zabbix-3.0.22.tar.gz

shell > cd zabbix-3.0.22

shell > ./configure --prefix=/usr/local/zabbix_agent --enable-agent

shell >make install

3、配置

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17
shell >cp /root/zabbix-3.0.22/misc/init.d/fedora/core/zabbix_agentd /etc/init.d/#复制启动脚本

shell >sed -i 's#BASEDIR=/usr/local#BASEDIR=/usr/local/zabbix_agent#' /etc/init.d/zabbix_agentd #修改Agent安装路径

shell >vim /usr/local/zabbix_agent/etc/zabbix_agentd.conf#调整配置文件

LogFile=/tmp/zabbix_agentd.log

Server=xxx.xxx.xxx.xxx# Zabbix Server IP (被动模式,客户端被动)

ServerActive=127.0.0.1#主动模式,如果使用也填Zabbix Server IP,不使用可以注释掉

Hostname=101.201.142.247#主机名Zabbix Server添加主机时需要使用

Include=/usr/local/zabbix_agent/etc/zabbix_agentd.conf.d/*.conf#加载自定义的监控配置文件

UnsafeUserParameters=1 #允许自定义Key

4、启动

?

1

2

3

4

5

6

7
shell > service zabbix_agentd start

shell > chkconfig --add zabbix_agentd

shell > chkconfig --level35zabbix_agentd on

shell > iptables -A INPUT -s'Zabbix Server IP'-p tcp --dport10050-j ACCEPT #由于是客户端被动模式,所以要开放端口供Zabbix Server连接

后续可用systemctl start/stop/statuszabbix_agentd.service来操作zabbix_agent

到此这篇关于zabbix-agent麒麟V10上的安装过程的文章就介绍到这了,更多相关zabbix-agent安装麒麟V10内容请搜索快网idc以前的文章或继续浏览下面的相关文章希望大家以后多多支持快网idc!

原文链接:https://blog.csdn.net/m0_46573967/article/details/112553835

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

快网idc优惠网 行业资讯 zabbix-agent在麒麟V10上的安装过程 https://www.kuaiidc.com/63938.html

相关文章

发表评论
暂无评论