Call a special url in case of a failure

Hi together,

got all things up and running. Just restarting critical machines on my both proxmox clusters via api calls 5 Minutes after a fail has been detected.

The Script looks very simple:

#!/bin/bash

ioBroker simple API

curl http://192.168.X.X:8087/set/proxmox.1.qemu_$NOTIFY_HOSTALIAS.start?value=1

exit 0

The script is only running for those hosts which have the label proxmox1.

Many thanks for the hints.

Best regards
Björn