diff --git a/roles/zabbix-srv/files/gotify.sh b/roles/zabbix-srv/files/gotify.sh new file mode 100644 index 0000000..1d8cb50 --- /dev/null +++ b/roles/zabbix-srv/files/gotify.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +ALERTSENDTO=$1 +ALERTSUBJECT=$2 +ALERTMESSAGE=$3 + +curl -X POST "http://s-backup.gsb.adm/message?token=$ALERTSENDTO" -F "title=$ALERTSUBJECT" -F "message=$ALERTMESSAGE" -F "priority=5" > /dev/null 2>&1