Zabbix x WhatsApp: Integration Guide#
In this article, we will consider the integration of the Zabbix monitoring system with the WhatsApp messenger using the GREEN-API gateway. The manual contains scripts for Zabbix LTS 5, 6 and 7.
Contents#
- Video guide
- Step 1. Installing WhatsApp and configuring a GREEN-API instance
- Step 2. Integrating Zabbix and WhatsApp
- Step 3. Testing sending messages to WhatsApp
- Conclusion
Video guide#
Step 1. Installing WhatsApp and configuring a GREEN-API instance#
- Install the WhatsApp mobile application
- Registration in the console
- Create and authorize an instance
- Get access parameters to instance
Step 2. Integrating Zabbix and WhatsApp#
How to configure Zabbix to send notifications to WhatsApp:
In this example we use Zabbix LTS 5.
- Go to the Zabbix web interface, go to the
Administration–Media typestab. - In the upper right corner, click
Create media typeand create a notification method namedWhatsApp. -
Add parameters to it, as shown in the screenshot below:
-
Specify the
apiURL,apiTokenInstanceandIdInstancevalues from GREEN-API console. -
Specify the ID of a personal or group WhatsApp chat in the
chatIdfield.Notifications will be sent to the specified chat.
- The personal chat ID corresponds to the recipient's phone number and is entered in international format + the postfix
c@us-phoneNumber@c.us. For example:79876543210@c.us. - The group chat ID is a string like
XXXXXXXXXX-XXXXXXXXXX@g.usorXXXXXXXXXXXXXXXXX@g.us. For more information on how to find outgroupId, read our article.
- The personal chat ID corresponds to the recipient's phone number and is entered in international format + the postfix
-
In the
Scriptfield, paste the script corresponding to your Zabbix version:

-
-
Go to the
Message templatestab and add message templates.Message template is a prepared message text with dynamic variables for flexible message customization to the current situation.
Templates can be edited at any time.Template examples:

-
On the
Optionstab, you can configure notification processing. In the current scenario, the standard settings are sufficient.
The parameters will be identical for all message types.
Read more about notifications in the Zabbix documentation.
Step 3. Testing sending messages to WhatsApp#
- Open the
Media typestab, it should contain theWhatsAppmethod we added earlier. -
Click
Teston the right side of the screen on the line with the selected method.
-
Specify the values of the
MessageandSubjectfields - the main message and its description.
For example,Message=Trigger message,Subject=Trigger fired.
-
After clicking the
Testbutton, theResponsewill display the OK value if sent successfully. -
Check the delivery of the notification to the WhatsApp chat.

The message has been successfully delivered from Zabbix to WhatsApp.
This method allows you to configure any notifications from Zabbix to WhatsApp using GREEN-API.
We recommend using the free "Developer" plan to configure and test the integration.
Conclusion#
This article describes how to integrate Zabbix with WhatsApp using the GREEN-API service. This method is suitable for a wide range of system administrators, DevOps, users, and technical support specialists.
After installing the integration, you can quickly receive notifications from Zabbix directly in your work or personal WhatsApp chat, and promptly respond to any issues that arise.