Giter VIP home page Giter VIP logo

zabbix-lab's Introduction

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

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

Important Note

If you're versions before 5.4 (Like 5.0 LTS), please, remove or comment out the container zabbix-reports, or the docker-compose will not come up.

Contents

  • Zabbix:
  • Database:
    • Postgresql at: postgresql:5432
    • PGAdmin at: http://pgadmin:5050
    • TimescaleDB extension installed
  • 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:
      • Zabbix already configured with TimescaleDB
      • 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"
    • Zabbix 5.4 or later:

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 Other Options
    ZABBIX_VERSION 5.0-latest 5.2-latest or 5.4-latest or trunk (this last one for development versions)
    POSTGRES_VERSION 12 11
    GRAFANA_VERSION 7.5.10 8.0 or 8.1
    GFN_ZBX_PLUGIN_VERSION 4.1.5 4.2.2 (For Grafana 8 and Zabbix 5.4)
  • 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.

Tooling

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.

zabbix-lab's People

Contributors

isaqueprofeta avatar

Watchers

James Cloos 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.