From 4.2 onward, Zabbix is an optional plugin for App360. Users enable it for VM monitoring. This guide covers end-to-end how Zabbix is integrated with App360.
The guide will be divided into 4 videos.
- Provision a zabbix server with Ansible
- Multi-tenant setup (Optional)
- Register a VM to zabbix
- Setup zabbix action to trigger App360 workflows
First, we will provision a ubuntu 16.04 VM, and install zabbix server on it with Ansible.
Register VM to Zabbix monitoring
In this video we will create a workflow to do:
- Install zabbix agent to a VM
- Register the host to zabbix
Then we will associate the zabbix host added with the VM for viewing resource usage graphs easily.
Setup zabbix action to trigger App360 workflows
Lastly, we will further configure zabbix, to trigger App360 workflow when something happened, e.g. the response time of a web service become slow.
To accomplish this, we will create items below on zabbix:
- Web Scenario
- Trigger
- Action
In video, we set trigger expression as following:
{[host]:web.test.time[[web scenario],[step],resp].avg(3m)} > 3
For example:
{mongo-app1:web.test.time[mongo-app,frontpage,resp].avg(3m)} > 3
It will be triggered when average response time of the URL over last 3 minutes is greater than 3 seconds.