Giter Club home page Giter Club logo

zabbix_install's Introduction

zabbix 5.0 自動化安裝腳本

server

  • 啟動腳本參數設定 (config_setting)
    • docker container
    • 更新系統套件
    • 是否安裝資料庫
      • MySQL
      • MariaDB
    • 資料庫名稱設定
    • 資料庫使用者帳號設定
    • 資料庫密碼設定
    • Zabbix-server 的 nginx server name
  • 自動安裝前顯示所有設定供確認(config_show)
  • docker container 處理 (docker)
    • 套件索引更新
    • 安裝 sudo
    • 取消 /etc/dpkg/dpkg.cfg.d/excludes 中的 Drop all documentation
  • 系統套件升級 (upgrade)
  • 資料庫安裝 (database_install)
    • MySQL
    • MariaDB
  • 判斷資料庫服務是否有啟動 (mysql_status_check)
  • 安裝 zabbix(zabbix_install)
    • 新增官方套件庫(ubuntu deb)
    • 安裝 zabbix-server-mysql, zabbix-frontend-php, zabbix-nginx-conf, nginx
  • 建立 zabbix 所需資料庫(database_insert)
    • 當資料庫服務(mysql)未啟動時嘗試啟動
    • 建立資料庫(database)
    • 建立使用者及設定其密碼
    • 設定使用者擁有上述資料庫(database)所有權限
    • 匯入 zabbix 所需資料表(tables)
  • zabbix 設定(zabbix_setting)
    • 修改 zabbix_server.conf 設定檔
      • 資料庫(database)名稱
      • 資料庫使用者名稱
      • 資料庫使用者密碼
    • 修改 nginx.confportserver_name
    • 修改 php-fpm.confdate.timezoneAsia/Taipei
  • 啟動服務
    • docker start service by service
    • start service by systemctl

agent

  • 啟動腳本參數設定 (config_setting)
    • 是否為 docker container
    • 是否更新系統套件
    • Zabbix Server IP 設定
    • Zabbix Client Hostname 設定(Server 端添加監控機器必須)
    • PSK唯一名稱設定(Server 端添加監控機器必須)
  • 自動安裝前顯示所有設定供確認(config_show)
  • docker container 處理 (docker)
    • 套件索引更新
    • 安裝 sudo
  • 系統套件升級 (upgrade)
  • 安裝 zabbix(zabbix_client_install)
    • 新增官方套件庫(ubuntu deb)
    • 安裝 zabbix-agent
  • zabbix 設定(zabbix_client_setting)
    • PSK 加密金鑰創建
    • 修改 zabbix_agent.conf 設定檔
      • Server
      • ServerActive
      • Hostname
      • TLSConnect
      • TLSAccept
      • TLSPSKIdentity
      • TLSPSKFile
  • 防火牆設定 (ufw_setting)
    • 限制 Server IP 訪問 TCP/10050
  • 啟動服務
    • docker start by service
    • start service by systemctl and enable auto start

zabbix_install's People

Contributors

thanatosdi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.