Two example scripts for sending custom alerts to a GCP Pub/Sub Topic.
This code is intended to be an example. You will likely need to change or update values to match your setup.
- zbx_pubsub.py - a python script to publish alert to Pub/Sub
- zbx__pubsub.sh - a shell script to publish alert to Pub/Sub
Zabbix alertscripts provides good details of deploying the customer scripts and configuring a new Zabbix media type.