zoukankan      html  css  js  c++  java
  • zabbix3.0、4.0 agent安装配置

    uname -a

    rpm -qa |grep zabbix

    ps -ef |grep zabbix

    yum -y install vim
    setenforce 0

    firewall-cmd --zone=public --add-port=10151/tcp --permanent
    firewall-cmd --zone=public --add-port=10150/tcp --permanent

    #rpm -e --nodeps zabbix-release-3.0-1.el7.noarch

    rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/6/x86_64/zabbix-release-4.0-1.el6.noarch.rpm

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

    yum install zabbix-agent -y

    sed -i 's/Server=127.0.0.1/Server=10.0.0.211/' /etc/zabbix/zabbix_agentd.conf

    sed -i 's/ServerActive=127.0.0.1/ServerActive=10.0.0.211/' /etc/zabbix/zabbix_agentd.conf

    sed -i 's/# ListenPort=10050/ListenPort=10150/' /etc/zabbix/zabbix_agentd.conf

    grep -E "(Port)" /etc/zabbix/zabbix_agentd.conf

    grep -E "(Server)" /etc/zabbix/zabbix_agentd.conf

    service zabbix-agent start

    chkconfig --level 2345 zabbix-agent on

    #systemctl enable zabbix-agent
    #systemctl start zabbix-agent


    zabbix3.0 agent安装配置
    wget http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-agent-3.0.0-2.el6.x86_64.rpm

    yum -y install zabbix-agent-3.0.0-2.el6.x86_64.rpm

    sed -i 's/Server=127.0.0.1/Server=10.0.1.182/' /etc/zabbix/zabbix_agentd.conf
    sed -i 's/ServerActive=127.0.0.1/ServerActive=10.0.1.250:10051/' /etc/zabbix/zabbix_agentd.conf

    grep "10.0.1.250" /etc/zabbix/zabbix_agentd.conf
    grep "10.0.1.250:10051" /etc/zabbix/zabbix_agentd.conf

    service zabbix-agent restart

    chkconfig --level 2345 zabbix-agent on

    netstat -anpt |grep 10050

    service iptables status

    ######################下面是10050端口占用了操作
    sed -i 's/# ListenPort=10050/ListenPort=10052/' /etc/zabbix/zabbix_agentd.conf
    grep "10052" /etc/zabbix/zabbix_agentd.conf
    service zabbix-agent restart
    netstat -anpt |grep 10052

    魅力男神
  • 相关阅读:
    android studio学习---怎么创建一个新的module并且再次运行起来(在当前的project里面)
    你真的了解WebSocket吗?
    vue学习(十二)vue全家桶 Vue-router&Vuex
    GoJs的使用
    vue学习(十一)vue-cli3开发单文件组件
    vue学习(十)mixin 偷懒
    vue学习(九)对象变更检测注意事项
    vue学习(八)nextTick[异步更新队列]的使用和应用
    django的url 传不传参
    vue学习(七)refs的使用
  • 原文地址:https://www.cnblogs.com/capable/p/10776301.html
Copyright © 2011-2022 走看看