ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

linux下配置免安装版zabbix-agent配置详解

2021-04-11 07:01:11  阅读:260  来源: 互联网

标签:agent server 安装版 zabbix conf test root


Linux 下zabbix-agent免安装版配置

  1. 检查服务器端zabbix-server的版本
    [root@zabbix ~]# zabbix_server -V
    linux下配置免安装版zabbix-agent配置详解

  2. 下载对应版本的zabbix-agent版本
    检查客户端系统的内核版本:
    [root@test-server src]# uname -a
    linux下配置免安装版zabbix-agent配置详解

登录官网,选择对应版本的zabbix-agent版本
https://www.zabbix.com/download_agents?version=5.0+LTS&release=5.0.0&os=Linux&os_version=3.0&hardware=i386&encryption=No+encryption&packaging=Archive

linux下配置免安装版zabbix-agent配置详解

linux下配置免安装版zabbix-agent配置详解

[root@test-server src]# wget https://cdn.zabbix.com/zabbix/binaries/stable/5.0/5.0.10/zabbix_agent-5.0.10-linux-3.0-i386-static.tar.gz

linux下配置免安装版zabbix-agent配置详解

解压缩后,看到有三个文件夹:
[root@test-server src]# tar -xvf zabbix_agent-5.0.10-linux-3.0-i386-static.tar.gz -C zabbix_agent/

linux下配置免安装版zabbix-agent配置详解

[root@test-server src]# mv zabbix_agent /usr/local/
[root@test-server src]# cd /usr/local/zabbix_agent/conf/

linux下配置免安装版zabbix-agent配置详解

[root@test-server conf]# vi zabbix_agentd.conf
[root@test-server conf]# egrep -v "#|^$" zabbix_agentd.conf

linux下配置免安装版zabbix-agent配置详解

  1. 建立zabbix用户
    [root@test-server conf]# useradd zabbix -s /bin/false

linux下配置免安装版zabbix-agent配置详解

  1. 建立systemctl 启动文件
    [root@test-server system]# vi /usr/lib/systemd/system/zabbix-agent.service

linux下配置免安装版zabbix-agent配置详解

[root@test-server system]# systemctl daemon-reload
[root@test-server conf]# systemctl start zabbix-agent.service

linux下配置免安装版zabbix-agent配置详解

检查启动的服务:
[root@test-server ~]# netstat -nutpl |grep zabbix
linux下配置免安装版zabbix-agent配置详解

设置为开机自启动:
[root@test-server ~]# systemctl enable zabbix-agent

linux下配置免安装版zabbix-agent配置详解

  1. 配置防火墙
    配置防火墙放通10050端口:
    [root@test-server ~]# firewall-cmd --zone=public --add-port=10050/tcp --permanent

    [root@test-server ~]# firewall-cmd --reload

    [root@test-server ~]# firewall-cmd --list-ports

linux下配置免安装版zabbix-agent配置详解

  1. 配置监控主机:
    登录zabbix 的web界面,点击 配置 – 主机 – 新建主机:

linux下配置免安装版zabbix-agent配置详解

linux下配置免安装版zabbix-agent配置详解

连接模板:
linux下配置免安装版zabbix-agent配置详解

配置好后,稍等会儿刷新就能看到已连接成功:
linux下配置免安装版zabbix-agent配置详解

Zabbix5.0企业级分布式监控系统:精讲与企业应用

linux下配置免安装版zabbix-agent配置详解

标签:agent,server,安装版,zabbix,conf,test,root
来源: https://blog.51cto.com/u_2221384/2698630

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有