Additional setup for monitoring WAF in a cluster

To ensure monitoring of services managed by Corosync\Pacemaker, you must use an external script.

Since this functionality is implemented on data parsing xml-format CRM, the system must have python3.8 and the library python-lxml. You can install the library using the command:

apt update
apt install python-lxml

After installation, you need to download the script to the /usr/local/bin directory:

wget -P /usr/local/bin https://raw.githubusercontent.com/digiapulssi/zabbix-monitoring-scripts/master/etc/zabbix/scripts/pacemaker.py
chmod +x /usr/local/bin/pacemaker.py

Then add an additional UserParameter to the zabbix-agent configuration file:

UserParameter=pacemaker.status[*],/usr/local/bin/pacemaker.py $1 $2 $3 $4 $5 $6 $7 $8