• zabbix-proxy


    1.安装依赖
    yum install gcc libxml2-devel net-snmp net-snmp-devel curl curl-devel php php-bcmath php-mbstring mariadb mariadb-devel –y
    2.PHP
    vim /etc/php.ini
    date.timezone = PRC
    3.wget安装包
    rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm
    wget https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-proxy-mysql-4.4.5-2.el7.x86_64.rpm
    wget https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-agent-4.4.5-2.el7.x86_64.rpm
    4.安装包
    yum install zabbix-proxy-mysql-4.4.5-2.el7.x86_64.rpm -y
    yum install mariadb-server.x86_64 -y
    5.配置数据库
    systemctl start/enable mariadb
    mysqladmin -uroot password <password>
    mysql -uroot -p
    mysql> create database zabbix_proxy character set utf8 collate utf8_bin;
    mysql> grant all privileges on zabbix_proxy.* to zabbix_proxy@localhost identified by '<password>';
    mysql> quit;
    zcat /usr/share/doc/zabbix-proxy-mysql-4.4.5/schema.sql.gz | mysql -u zabbix_proxy -p zabbix_proxy
    6.配置conf
    vim /etc/zabbix/zabbix_proxy.conf
    Server=172.28.11.6
    Hostname=O-Zabbix-Proxy01
    DBHost=localhost
    DBName=zabbix_proxy
    DBUser=zabbix_proxy
    DBPassword=<password>
    configFrequency = 60
    systemctl start/enable zabbix-proxy
    7.配置agent
    vim /etc/zabbix/zabbix_agent.conf
    agent被动模式
    
  • 相关阅读:
    poj2187 Beauty Contest 旋转卡壳
    2017/8/6 考试吐槽
    bzoj2618 凸多边形 半平面交
    cogs1600 奶牛冰壶 计算几何
    cogs896 圈奶牛 凸包
    cogs1743 忠诚 zkw
    BZOJ 3224 普通平衡树 平衡树的两种姿势:SBT,splay。01trie
    BZOJ 3196 二逼平衡树
    BZOJ 1901 Dynamic Rankings
    BZOJ 4325[NOIP2015]斗地主
  • 原文地址:https://www.cnblogs.com/kylingx/p/12253782.html
Copyright © 2020-2023  润新知