Git Product home page Git Product logo

zabbix-example-environment's Introduction

Zabbix example environment

This is a project that launch a example environment of the motorization system called Zabbix for testing purposes using Vagrant. It would help you learn how to use Zabbix in your local computer.

The example environment includes:

  • Zabbix server (Debian 10): Zabbix Server 5.2, Apache and PostgreSQL 12 with TimescaleDB.
  • Postgres example server (Debian 10): PostgreSQL 12 and Zabbix Agent 5.2.
  • Apache example server (Debian 10): Apache HTTPD 12 and Zabbix Agent 5.2.

What is Zabbix?

Zabbix is an open-source monitoring software tool for diverse IT components, including networks, servers, virtual machines (VMs) and cloud services. Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption. Much more information is available on the Zabbix web site.

Requisites

How do I run?

  1. Open a terminal. If you are using Windows and Hyper-V, you must use a terminal with admin privileges.

  2. Clone repository:

git clone https://github.com/alvsanand/zabbix-example-environment
cd zabbix-example-environment
  1. Start Zabbix server:
cd server

vagrant up
  1. Get Zabbix server IP:
# Copy value of "HostName"
vagrant ssh-config
  1. Set Zabbix server environment variable:
# UNIX
export ZABBIX_SERVER=PREVIOUS_IP

# Windows
set ZABBIX_SERVER=PREVIOUS_IP
  1. Start Postgres example server:
cd .. && cd postgres-server
vagrant up
  1. Start Apache example server:
cd .. && cd apache-server

vagrant up
  1. Open Zabbis Dashboard from http://IP_ZABBIX_SERVER using default credentials user Admin and password zabbix.

  2. Configure auto-registration in Zabbix:

    • Add auto registration trigger: Configuration -> Action -> Autoregistration actions -> Create actions:
      • Postgres:
        • Conditions:
          • "Host name" contains "postgres".
        • Operations:
          • "Add host"
          • "Link Template host" for templates "Linux by Zabbix agent" and "PostgreSQL by Zabbix agent 2"
      • Apache:
        • Conditions:
          • "Host name" contains "apache".
        • Operations:
          • "Add host"
          • "Link Template host" for templates "Linux by Zabbix agent" and "Apache by Zabbix agent"

In case you want to access to the server:

  1. Go to the correct directory:
cd apache-server
  1. Execute ssh command with default password vagrant:
vagrant ssh
  1. If desired, get root credentials:
sudo su -

zabbix-example-environment's People

Contributors

dayan5711 avatar alvsanand avatar

Watchers

 avatar 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.