Zabbix

Send events to Squadcast from Zabbix

Follow the steps below to configure a service so as to extract its related alert data from Zabbix.

Squadcast will then process this information to create incidents for this service as per your preferences.

Using Zabbix as an Alert Source

  1. On the Sidebar, click on Services.

You can either choose to use existing service or create a new service

  1. Now, click on the corresponding Alert Sources button.
  1. Select Zabbix from Alert Source drop down and copy the Webhook URL shown.

Go to the your Zabbix’s AlertScriptsPath directory. This is usually /etc/zabbix/alert.d or /usr/local/share/zabbix/alertscripts but it can be changed.
Check your zabbix_server.conf file to see how this option is configured.

  1. Once inside the directory run the following command:
sudo wget https://raw.githubusercontent.com/squadcastHub/squadcast-zabbix-script/master/sq-zabbix.py

Once the file is downloaded please make sure that the file has execute permissions for your Zabbix user. If not then please provide the same using the following command:

chmod +x sq-zabbix.py

🚧

Note:

The Squadcast script for Zabbix requires Python 3 to be installed on the machine running Zabbix.

Go to "Administration" tab and then click on "Media types". Click on "Create Media type" and create a new media type with the following configuration.

Name: Squadcast 
AlertType: Script
Script Name: sq-zabbix.py
Script Parameters:
    {ALERT.SENDTO}
    {ALERT.SUBJECT}
    {ALERT.MESSAGE}
  1. Before clicking "Add" make sure that the media type is enabled.
  1. Now you can add this media type to any user you want.

For example, click on "Users" tab under the "Administration" tab and select the user you want to add this media type to.

Under "Media" tab click on "Add" and enter the following details:

Type: Squadcast Alert
Send To: The Webhook URL you obtained above
  1. Finally click on "Add" to save the media for the user and make sure you click on "Update" button on the "Media" page to save the details.
  1. Now go to the "Configuration" tab and click on "Actions" tab. Click on "Create Action" to create a new action.

Enter the name as "Squadcast Notifications".

  1. Click on "Operations" tab and configure it as per your requirements.

Copy-paste the following in the ‘Default Message’ field:

name:{TRIGGER.NAME}
id:{TRIGGER.ID}
status:{TRIGGER.STATUS}
hostname:{HOSTNAME}
ip:{IPADDRESS}
value:{TRIGGER.VALUE}
event_id:{EVENT.ID}
severity:{TRIGGER.SEVERITY}
url:{TRIGGER.URL}
  1. Similarly configure the "Recovery operations".

Copy-paste the following in the ‘Default Message’ field:

name:{TRIGGER.NAME}
id:{TRIGGER.ID}
status:{TRIGGER.STATUS}
hostname:{HOSTNAME}
ip:{IPADDRESS}
value:{TRIGGER.VALUE}
event_id:{EVENT.ID}
severity:{TRIGGER.SEVERITY}
url:{TRIGGER.URL}
  1. Finally click on "Add" to save "Squadcast Notifications".

That's it! Your Zabbix integration is now good to go.

📘

NOTE

The user whose media is configured to send alerts to Squadcast must belong to a user-group having read permission on the Host Group which needs to be monitored by Squadcast inorder to send the alerts.

How-to: Zabbix Integration

Ready to try Squadcast?
Start Now For Free! Schedule a Demo

Updated about a month ago

Zabbix


Send events to Squadcast from Zabbix

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.