Monitoring FreePBX with Zabbix - Omid-Mohajerani/VoIP-Monitoring GitHub Wiki

1 - Installing Zabbix Agent

In order to monitor general FreePBX system performance such as CPU, Load, Disk usage, etc we will use zabbix-agent. Here you will find how to install Zabbix-agent on CENTOS 7 which is the default FreePBX Distro as of today 28th July 2023.

Zabbix Agent on CENTOS 7

2 - Creating AMI User

Zabbix uses Asterisk Manager Interface or AMI to read the information from the asterisk. In order to create an AMI user in FreePBX

Select Settings - Asterisk Manager Users

Create a new user, Choose a secure password, and replace 127.0.0.1 with your Zabbix Server IP Address in the Permit field.

3 - Adding FreePBX host in Zabbix

Create a new host in Zabbix

Set hostname

use the same name as what you set in Step 2 for in zabbix-agent config file Select Templates

Select Zabbix Agent template

Select Telephony template

Add agent

set your FreePBX IP address

Select Macros

Set AMI secret

This is the secret we set in FreePBX when we created the AMI user

Set AMI Host

Set to the IP Address of your FreePBX host remove asterisk from the default. It should be like URL :http://194.225.129.23:8088/rawman and replace 194.225.129.23 with your FreePBX IP