zoukankan      html  css  js  c++  java
  • zabbix 安装记录

    groupadd zabbix
    useradd -g zabbix zabbix

    wget https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.3.tar.gz
    tar -xzvf zabbix-5.0.3.tar.gz
    cd zabbix-5.0.3/

    ./configure --enable-server --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
    yum install -y net-snmp net-snmp-utils net-snmp-devel

    zabbix在编译时报:

    configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config

    解决办法是安装net-snmp-devel

    yum install -y net-snmp-devel


    make -j8
    make install
    cd /root/zabbix-5.0.3/database/mysql/

    mysql -h127.0.0.1 -uzabbix -p zabbix < schema.sql
    mysql -h127.0.0.1 -uzabbix -p zabbix < images.sql
    mysql -h127.0.0.1 -uzabbix -p zabbix < data.sql
    zabbix_server
    killall zabbix_server
    zabbix_server
    telnet 127.0.0.1 10051
    复制管理端到WEB目录
    cp -R /root/zabbix-5.0.3/ui/ /www/wwwroot/zabbix.com/

    配置文件:/usr/local/etc/zabbix_server.conf
    service zabbix-agent restart

    管理网默认的用户名是 Admin,密码是zabbix

    yum 安装zabbix agent

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

    yum install zabbix-agent

    修改配置:/etc/zabbix/zabbix_agentd.conf

    4.编辑Zabbix Agent 配置文件

    vim /etc/zabbix/zabbix_agentd.conf

    Server=[zabbix server ip]

    ServerActive=[zabbix server ip]
    Hostname=[ Hostname of client system ]

    5.重启Zabbix Agent

    service zabbix-agent restart

    6.添加开机启动

    chkconfig zabbix-agent on

  • 相关阅读:
    [程序员修炼之道]读书笔记
    protobufnet 简介
    提高IIS响应能力
    彻底解决性能问题,就因为一个配置
    2009年12月小记(Split,netstat,SortedList)
    如何在vmwarer中的linux安装lrzsz文件共享工具
    Liunx常用命令
    正则表达式 浅析
    java的final关键字
    JAVA正则表达式 Pattern和Matcher
  • 原文地址:https://www.cnblogs.com/xiami2046/p/13580391.html
Copyright © 2011-2022 走看看