GithubHelp home page GithubHelp logo

jonathas / zabbix-docker Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 54 KB

Zabbix Monitoring on Docker. Server and Agent.

License: MIT License

zabbix zabbix-agent docker docker-compose zabbix-docker zabbix-frontend monitoring monitoring-server

zabbix-docker's Introduction

Zabbix Monitoring Server

These files are for running the Zabbix server and the Zabbix agent on Docker.

Zabbix Server

1 - Change the password inside the docker-compose.yml file, as the one that is there is a random one.

2 - Start the server as root or with sudo, as the agent needs to be privileged:

$ sudo docker-compose up -d

For the first time you login, the credentials are:

Username: Admin

Password: zabbix

Zabbix Agent

In the servers you want to monitor, you need to install a Zabbix agent which communicates with the Zabbix server. This agent needs to run in privileged mode, so it is able to get deeper system statistics.

1 - Send the content inside the zabbix-agent directory to the server you want to monitor

2 - Change ZBX_SERVER_HOST inside the docker-compose.yml file so it points to your Zabbix server.

3 - Start the agent:

$ sudo docker-compose up -d

4 - Change the path inside the zabbix-agent/host/etc/systemd/system/docker-zabbix-agent.service to the one where your docker-compose.yml file is in the server.

5 - Copy this docker-zabbix-agent.service you just changed to the directory /etc/systemd/system

6 - Reload the daemons and enable the one you just created, so it runs automatically in case the system is rebooted:

$ sudo systemctl daemon-reload
$ sudo systemctl enable docker-zabbix-agent

In the Zabbix web interface, go to Configuration => Hosts, then fill the name of your host in "Host name" field, add it to the "Linux servers" group, put your server's IP address in the "Agent interfaces" section and be sure to have the "Enabled" checkbox checked.

Zabbix add host

After this you can go to Monitoring => Screens and configure your server monitoring dashboard there.

zabbix-docker's People

Contributors

jonathas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ridhohafidz

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.