zoukankan      html  css  js  c++  java
  • CentOS 7 安装 Zabbix Agent 5.0

    1. 关闭防火墙及 selinux

    # systemctl disable firewalld
    # systemctl stop firewalld
    # firewall-cmd --state
    not running
    # reboot
    # vi /etc/selinux/config

    2. 安装 Zabbix Agent

    1)ADDING ZABBIX REPOSITORY

    # rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

    2)修改zabbix的repo文件中的源地址

    vim /etc/yum.repos.d/zabbix.repo
    [zabbix]
    name=Zabbix Official Repository - $basearch
    baseurl=http://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
    
    [zabbix-non-supported]
    name=Zabbix Official Repository non-supported - $basearch
    baseurl=http://mirrors.aliyun.com/zabbix/non-supported/rhel/7/$basearch/
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
    gpgcheck=1

    3)安装 zabbix-agent

    # yum -y install zabbix-agent

    4)修改 agent 配置文件

    # vim /etc/zabbix/zabbix_agentd.conf
    Server=192.168.190.180
    ServerActive=192.168.190.180
    Hostname=192.168.190.136

    # 192.168.190.180: zabbix-server 的 IP 地址,192.168.190.136 : zabbix-agent 的 IP 地址

    5)启动 zabbix-agent

    # systemctl enable zabbix-agent.service 
    # systemctl start zabbix-agent.service
    
    # ps -ef | grep zabbix_agentd

    3. Zabbix Web 配置主机

    1)先创建一个主机群组


    2)创建主机

     

    3)添加模板

    4)查看主机

     

  • 相关阅读:
    在CentOS7 安装 Redis数据库
    Gulp-构建工具 相关内容整理
    Mac中设置Sublime快速在终端中使用命令打开项目
    CentOS 7.6出现SSH登录失败的解决方法
    使用 Vagrant + VirtualBox 快速构建 CentOS 下的 Docker 环境
    平凡的世界
    EBR内容解析
    MBR内容解析
    使用vbs给PPT(包括公式)去背景
    Ubuntu 14.04 LTS 初装成
  • 原文地址:https://www.cnblogs.com/bruce-he/p/14393847.html
Copyright © 2011-2022 走看看