目次

概要

CentOS8上でZabbix 6.0のソースコードをコンパイルする手順。
Zabbix Serverを動作させることが目的ではなく、Zabbixのライブラリのバイナリを使うことを目的とした手順となる。

環境

OSCentOS Stream release 8
Zabbixzabbix-6.0.0beta1

コンパイル手順

パッケージ導入

コンパイルを行うために必要なパッケージを導入する。

dnf install make
dnf install gcc
dnf install mariadb-devel
dnf install net-snmp-devel
dnf install libevent-devel
dnf install pcre
dnf install pcre-devel

ソースコードの入手

Zabbixのプレリリース版のソースコードをダウンロードする。

  • 配布元
    https://www.zabbix.com/jp/download_sources#pre-release

コンパイル

  • 1. ソースコードのダウンロード
    wget https://cdn.zabbix.com/zabbix/sources/development/6.0/zabbix-6.0.0beta1.tar.gz
    tar xfvz zabbix-6.0.0beta1.tar.gz
    cd zabbix-6.0.0beta1
  • 2. configure
    ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp 

    正常に完了すると以下の様に表示される。
    Configuration:
    
     Detected OS:           linux-gnu
     Install path:          /usr/local
     Compilation arch:      linux
    
     Compiler:              cc
     Compiler flags:         -g -O2  
    
     Library-specific flags:
       database:              -I/usr/include/mysql -I/usr/include/mysql/mysql   
       Net-SNMP:               -I. -I/usr/include
    
     Enable server:         yes
     Server details:
       With database:         MySQL
       WEB Monitoring:        no
       SNMP:                  yes
       IPMI:                  no
       SSH:                   no
       TLS:                   no
       ODBC:                  no
       Linker flags:           -L/usr/lib64   -L/usr/lib64/              -rdynamic     
       Libraries:              -lmariadb       -lnetsnmp    -lz -lpthread -levent    -lm -ldl  -lresolv   -lpcre 
       Configuration file:    /usr/local/etc/zabbix_server.conf
       External scripts:      /usr/local/share/zabbix/externalscripts
       Alert scripts:         /usr/local/share/zabbix/alertscripts
       Modules:               /usr/local/lib/modules
    
     Enable proxy:          no
    
     Enable agent:          yes
     Agent details:
       TLS:                   no
       Modbus:                no
       Linker flags:                -rdynamic     
       Libraries:              -lz -lpthread    -lm -ldl  -lresolv   -lpcre 
       Configuration file:    /usr/local/etc/zabbix_agentd.conf
       Modules:               /usr/local/lib/modules
    
     Enable agent 2:        no
    
     Enable web service:    no
    
     Enable Java gateway:   no
    
     LDAP support:          no
     IPv6 support:          yes
    
    ***********************************************************
    *            Now run 'make install'                       *
    *                                                         *
    *            Thank you for using Zabbix!                  *
    *              <http://www.zabbix.com>                    *
    ***********************************************************

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS