Setting up and running Zabbix along with Nginx and PostgreSQL using Docker-compose
Hi everyone, I am going to share some of my experience about setting up Zabbix in Docker-compose. So before starting let talk about Zabbix.
Zabbix
Zabbix is an open source monitoring software that let you monitor your servers for resources like ram usage, memory usage, swap memory usage, disk I/O and more. You can also set up some notification so you receive alerts as soon as resources reach critical limits like ram are used up to max limit and you need to expand else it will crash. You can also monitor network device, JMX applications and much more.
Out of the box jabber, SMS and mail media is configured. You can add others by custom scripts. I will add this part later. Now going back to Zabbix setup.
List of Docker Images we require
- Postgres
- Zabbix-server-pgsql
- Zabbix-web-nginx-pgsql
- Zabbix-agent
- Adminer (optional)
- Grafana (optional)
Docker-compose configuration(YML)
Steps for running
- Put the configuration in a file and save with name docker-compose.yml. To keep separate create a folder with the name you want and put the compose file in that folder. This folder you can use for running docker-compose.
2. Open Terminal and cd to the folder you created and then run the command
docker-compose up -d
or if you prefer logs to be shown, then
docker-compose up
3. Now access Zabbix UI at port 8090(replace this port with your port if you have changed in above compose file). Open this URL in the browser
4. Now login by entering the username & password for default Admin user with credentials.
username : Admin
password: zabbix
5. Now you are all set and will reach the dashboard with various tiles for information.
6. So now you can do monitoring with Zabbix.
I hope this one I shared with you will be worthy, I will share later topics in a new post later. Feel free to comment your opinion about my post.