Skip to content

ezynook/zabbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖥 Zabbix On Docker

🟢 Frontend Configuration = Default

🟢 Database Configuration = Bind Remote Host

  • Username: zabbix | Password: P@ssw0rd

Available Version

  • ✔️ version 4 LTS (ezynook/zabbix:4)
  • ✔️ version 5 LTS (ezynook/zabbix:5)
  • ✔️ version 6.4 (ezynook/zabbix:6)
  • ✔️ version 7 PRE-RELEASE (ezynook/zabbix:7)

📦 Setup

👉 Download Project

$ cd /some/path/zabbix && git clone https://github.com/ezynook/zabbix.git

👉 Change Directory

$ cd zabbix

👉 แก้ไข Environment ตามที่ต้องการ

  • ZBX_VERSION = เวอร์ชั่นที่ต้องการ ณ ตอนนี้มี 4-7
  • WEBPORT = Port ในการเข้าเว็บ Zabbix
  • SNMPPORT = Port ที่ Client ส่ง SNMP
  • ZBXAGENT = Port ที่ Client ส่ง Agent
  • ZBXSERVER = Port Zabbix Server
  • DBPORT = MySQL Port
$ vim .env
ZBX_VERSION=<version>
WEBPORT=80
SNMPPORT=161
ZBXAGENT=10050
ZBXSERVER=10051
DBPORT=3306

👉 Running

$ chmod +x start.sh && docker-compose up -d

👉 หากต้องการแยก Web UI และ Database

$ docker-compose -f docker-compose.multiple.yml up -d \
  && docker exec -it zabbix /bin/bash -c "sed -i 's/# DBHost=localhost/DBHost=zabbixdb/g' /etc/zabbix/zabbix_server.conf" \
  && docker restart zabbix

👉 หรือใช้ Shell Script

$ chmod +x start-multiple.sh && ./start-multiple.sh

🔧 ตั้งค่าหน้า WebUI ขั้นตอนตั้งค่า Database Connection ให้ติ๊ก [ ] Database TLS encryption ออก

🔧 ตั้งค่าหน้า WebUI ช่อง Database Server ใส่เป็น zabbixdb

🌎 Open Browser

http://localhost/zabbix


⚒️ Docker builded by Pasit Yodsoi (pasit.dev)

About

Zabbix Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages