Giter VIP home page Giter VIP logo

ansible-zabbix-server's Introduction

Dockerized Zabbix Server with Ansible Bootstrap

Sets up Zabbix Server with Zabbix Frontend and Zabbix Agent. Out of box features:

  • https for frontend
  • simple local/public switching for frontend
  • passive agent model enabled
  • volumes for persistant storage of database and psk data

Usage

Start by executing the following command inside downloaded project:

cp var/zabbix-server-conf.yml.template var/zabbix-server-conf.yml

var/zabbix-server-conf.yml is the main configuration file:

---
zabbix_db_name:
zabbix_db_user:
zabbix_db_password:
zabbix_public_port_https: False
zabbix_public_port_http: False

You put there your db credentials. It is recommended to start with False for public access, so frontend password can be changed safely.

You can create nginx directory and put there your dhparam.pem, ssl.crt, ssl.key. They must be named accordingly. If you not, playbook generates default ones (dhparam takes some time). Read permissions on ssl.key are added automatically when you re-run playbook, so container zabbix user can read the key.

Run playbook:

ansible-playbook -i hosts zabbix-server.yml

After it finishes, you should be able to access Zabbix Frontend using zabbix-frontend container ip and ports. You log in with Admin:zabbix credentials. Change password. Edit Zabbix Server agent, so it uses DNS name zabbix-agent. After a moment you should be able to monitor your zabbix-server.

Now you can edit var/zabbix-server-conf.yml and enable https publicly (8443 port on host). Re-run playbook after that.

You can adjust configuration in docker-compose.yml and handle the deployment with docker-compose, but it is going to be overwritten by ansible if you happen to re-run the playbook.

Your Zabbix Server monitoring is ready.

ansible-zabbix-server's People

Contributors

atudomain avatar

Watchers

 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.