Skip to content

Simple docker monitoring lab with Zabbix, PostgreSQL, PGAdmin, Zapix, Grafana and Mailhog

Notifications You must be signed in to change notification settings

julianobarbosa/zabbix-lab

 
 

Repository files navigation

Simple docker lab for Zabbix with PostgreSQL, Grafana and Zapix (API Testing)

Versão em pt_BR: Olhe o arquivo README_pt.md

Contents

  • Zabbix:
  • Database:
  • Support Tools:
  • Provisioning / Pre-configurations:
    • Grafana is already provisioned with:
      • Installed plugin and datasources for Zabbix
      • Configured Zabbix datasource for Zabbix
      • Configured PostgreSQL datasource for database of Zabbix
      • Notification Channel using e-mail and MailHog
    • Zabbix is already provisioned with:
      • Updated "Zabbix server" host to zabbix-agent using DNS
      • Updated EMail Media Type to use MailHog
      • Configured Media E-Mail for "Admin" user using MailHog
      • Enabled action "Report problems to Zabbix administrators"

How to use:

  • Install Prerequisites

    • Versão em pt_BR: Olhe o arquivo REQUIREMENTS_pt.md
  • Copy the project and zapix dependency to your station:

    $ git clone --recurse-submodules https://github.com/isaqueprofeta/zabbix-lab.git
  • In the scenario of forgetting the "--recurse-submodules" parameter, activate the zappix using the lines bellow:

    $ git submodule init
    $ git submodule update
  • If necessary edit the version options:

    $ vim .env
    Environment Default
    ZABBIX_VERSION 5.0-latest
    POSTGRES_VERSION 11
  • Want to try development versions?

    Environment Default
    ZABBIX_VERSION trunk
    POSTGRES_VERSION 11
  • Start the docker hoster for easy access using local DNS:

    $ docker run -d \
        --restart=always
        -v /var/run/docker.sock:/tmp/docker.sock \
        -v /etc/hosts:/tmp/hosts \
        dvdarias/docker-hoster
  • Start the project with docker-compose

    $ docker-compose up -d
  • Note that docker will not use 'localhost' so, do not use that 'localhost' hostname to configure PGAdmin to PostgreSQL and Mailhog. To do this configuration, look at hostname option for each container, inside docker-compose.yml file.

About Zabbix

Zabbix

Zabbix is ​​an open source distributed monitoring solution for large environments - The base repository for this project that contains all Dockerfiles of Zabbix for [Docker](https: //www.docker.com/) is zabbix-docker with automatic builds published to the Docker Hub Registry.

About Zapix

Online tool for testing and development using queries in Zabbix Web API - Original project at: Github Zapix by monitoringartist.

About Grafana

Grafana

Grafana is a Data Analysis and Reporting Tool - Container already configured with zabbix plugin installed

About Mailhog

MailHog

Developer Email Testing Tool - MailHog.

About

Simple docker monitoring lab with Zabbix, PostgreSQL, PGAdmin, Zapix, Grafana and Mailhog

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%