Git Product home page Git Product logo

docker-zabbix-server's Introduction

Zabbix Server & Web UI

Contains:

  • Zabbix Server
  • Zabbinx Front-end
  • Nginx
  • PHP

Processes are managed by supervisor, including cronjobs

Exports

  • Nginx on 80
  • Zabbix Server on 10051
  • /etc/zabbix/alert.d/ for Zabbix alertscripts

Variables

  • ZABBIX_DB_NAME=zabbix: Database name to work on

  • ZABBIX_DB_USER=zabbix: MySQL user

  • ZABBIX_DB_PASS=zabbix: MySQL password

  • ZABBIX_DB_HOST=localhost: MySQL host to connect to

  • ZABBIX_DB_PORT=3306: MySQL port

  • ZABBIX_INSTALLATION_NAME=: Zabbix installation name

Linking:

  • ZABBIX_DB_LINK=: Database link name. Example: a value of "DB_PORT_3306" will fill in ZABBIX_DB_HOST/PORT variables

Constants in Dockerfile

  • ZABBIX_PHP_TIMEZONE=UTC: Timezone to use with PHP

Example

Launch database container:

$ docker start zabbix-db || docker run --name="zabbix-db" -d -e MYSQL_ROOT_PASSWORD='root' -e MYSQL_DATABASE='zabbix' -e MYSQL_USER='zabbix' -e MYSQL_PASSWORD='zabbix' -e MYSQL_SET_KEYBUF=64M -p localhost::3306 -v /var/lib/mysql:/var/lib/mysql kolypto/mysql

Install the required tables:

$ docker run --rm --link zabbix-db:db -e ZABBIX_DB_LINK=DB_PORT_3306 kolypto/zabbix-server /root/run.sh setup-db

Launch Zabbix container:

$ docker start zabbix || docker run --name="zabbix" --link zabbix-db:db -e ZABBIX_DB_LINK=DB_PORT_3306 -p 80:80 -p 10051:10051 kolypto/zabbix-server

By default, you sign in as Admin:zabbix.

Enjoy! :)

Configuration Cheat-Sheet

Things to do at the beginning:

  • Administration > Users, Users: disable guest access (group), setup user accounts & themes
  • Administration > Media types: set up notification methods. For custom alertscripts, see Custom alertscripts
  • Administration > Users, Users, "Media" tab: set up notification destinations

TODO

  • Create a way to set up and update alertscripts: /etc/zabbix/alert.d/. Git? Download? Update?

docker-zabbix-server's People

Contributors

kolypto avatar

Watchers

 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.