본문 바로가기
Zabbix

AWS Zabbix 설치

by SAMSUNG CLOUD-OKY 2021. 1. 3.
반응형

 

 

## AWS Zabbix 설치 (2020-12-31) (https://drive.google.com/file/d/1olsiNvsr-0KC1eoVETS64oNCW-Y18QsW/view) (https://www.youtube.com/watch?v=JErpE5adw_o&t=550s)

  1) Step 1 – Install Apache, MySQL, and PHP

  ---------------------------------------

    - sudo apt-get update

    - sudo apt-get upgrade

    - sudo apt-get install apache2 libapache2-mod-php      (아파치2 웹서버 설치)

    - sudo apt-get install mysql-server             (MYSQL ROOT 암호 - root / zabbixXXX)

    - sudo apt-get install php php-mbstring php-gd php-xml php-bcmath php-ldap php-mysql

 

  2) Step 2 – Add Zabbix repository

  ---------------------------------------

    - # For Ubuntu 16.04 LTS (Xenial Xerus):

    - wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-3+xenial_all.deb

    - sudo dpkg -i zabbix-release_4.0-3+xenial_all.deb

    - sudo apt update

 

  3) Step 3 – Install Zabbix Server

  ---------------------------------------

    - sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-agent

 

 

  4) Step 4 – Setup MySQL Database

  ---------------------------------------

    - sudo mysql_secure_installation

    - sudo mysql -uroot -p

      : ## enter mysql password   (zabbixXXX)

      : create database zabbix_db character set utf8 collate utf8_bin;     (zabbix_db 생성)

      : grant all privileges on zabbix_db.* to zabbix@localhost identified by 'zabbixXXX';      (zabbix 유저 생성 / zabbixXXX)

      : quit;

 

    - # import DB Schema

      : sudo zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p'zabbixXXX' zabbix_db

 

 

  5) Step 5 – Edit Zabbix Configuration File

  -----------------------------------------

    - #Edit the configuration file located in /etc/zabbix/zabbix_server.conf

 

    - sudo vim /etc/zabbix/zabbix_server.conf

      : DBHost=localhost

      : DBName=zabbix_db

      : DBUser=zabbix

      : DBPassword=zabbixXXX

 

 

  5-1) Step 5 – Edit PHP Configuration for Zabbix

  -------------------------------------------

      - #Now, edit the file located at /etc/zabbix/apache.conf

      - sudo vim /etc/zabbix/apache.conf

      <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

      php_value max_execution_time 300

      php_value memory_limit 128M

      php_value post_max_size 16M

      php_value upload_max_filesize 2M

      php_value max_input_time 300

      php_value always_populate_raw_post_data -1

      php_value date.timezone Asia/Seoul

      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

 

  6) Step 6 – Enable and Restart Zabbix and Apache Services

  -------------------------------------------------------

      #Enable Services

      - sudo systemctl enable zabbix-server

      - sudo systemctl enable zabbix-agent

      - sudo systemctl enable apache2

 

      #Restart Services

      - sudo systemctl restart zabbix-server

      - sudo systemctl restart zabbix-agent

      - sudo systemctl restart apache2

 

 

  7) Step 7 – Configure Zabbix frontend using Webinstaller

  -------------------------------------------------------

      In browser enter your server address

      For this tutorial its = demo.linuxbots.com

 

      Default Credentials

 

      - Username = Admin

      - Password = zabbix

      <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

      Database type        MySQL

      Database server        localhost

      Database port        default

      Database name        zabbix_db

      Database user        zabbix

      Database password        *********

 

      Zabbix server        localhost

      Zabbix server port        10051

      Zabbix server name        Zabbix Server

      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

 

 

 

 

 

반응형

댓글