Skip to content

Integration Astra with Zabbix

Zabbix is an open-source platform for monitoring network services, servers, and applications. It can be integrated with Astra to monitor Streams and DVB Adapters.

Zabbix can be installed both on a dedicated server and on an Astra server

  1. Go to https://www.zabbix.com/download
  2. Select Zabbix version
  3. Select your OS
  4. Follow the installation instructions

You can find detailed information on Zabbix Manuals

Install Zabbix Agent on the server with Astra.

  1. Go to https://www.zabbix.com/download_agents
  2. Select your OS
  3. Follow the installation instructions

You can find detailed information on Zabbix Agent Manuals

First of all Zabbix Agent should be configured to allow incoming connections from the Zabbix Server. Open the Agent configuration file located in /etc/zabbix/zabbix_agentd.conf with your favorite editor.

  1. Find the Server= option and set the IP address or hostname of the server with Zabbix Server;
  2. Find the UnsafeUserParameters= option or append new and set value to 1.

Save file.

Zabbix Agent receives all information from Astra with scripts writed on Python. Make sure that on your server installed Python3:

Terminal window
sudo apt install python3 python3-pip

for RPM-based system use yum instead of apt. Next install necessary library for Python:

Terminal window
pip3 install requests

Download scripts for Zabbix Agent:

Terminal window
curl https://cdn.cesbo.com/astra/zabbix/agent.tar.gz | tar -zxC /opt

Scripts will be saved to the /opt/zabbix_agent directory. Download service configuration file for Zabbix Agent:

Terminal window
curl -o /etc/zabbix/zabbix_agentd.d/astra.conf https://cdn.cesbo.com/astra/zabbix/astra.conf

And finally restart Zabbix Agent:

Terminal window
systemctl restart zabbix-agent

Download the Template to your computer and import this file to Zabbix:

In Zabbix web interface open ConfigurationTemplates, then click the Import button in the upper right corner. Click Browse and select the template file, then click Import button. After successful import, you will see a green message Imported successfully

In Zabbix web interface open ConfigurationTemplates, then select Astra API monitoring and open the Macros tab. Fill next values:

  • First line, set administrator password to Astra web interface
  • Second line, set administrator username to Astra web interface
  • The last line, the port of the Astra web interface. If you have multiple processes, specify all ports separated by commas. For example: 8000,8001,8002

Click Update button to apply changes

Zabbix Template Configuration

In Zabbix web interface open ConfigurationHosts and click Create host in the top right corner. Fill following fields:

  • Host name: any name of the server where Astra is installed, for example: Astra
  • Templates: select Astra API monitoring and optionally Linux by Zabbix agent to monitor general system state
  • Groups: select Cesbo_templates or create a new group
  • Interfaces: click Add, select Agent, and specify the IP address or hostname of the server where Astra and Zabbix Agent are running. Port should be 10050 by default

Zabbix Host Configuration

Save changes.

After about 10 minutes, graphs will appear showing channel and adapter status. To view them:

  1. In Zabbix web interface, open MonitoringHosts
  2. Find your Astra host in the list
  3. Click Graphs in the host row to see available monitoring graphs
  4. Select a graph to view detailed statistics

Alternatively, you can view data in MonitoringLatest data to see current values and short-term history for all monitored items.

Channels in Zabbix

DVB in Zabbix