From 0824fd96215cf686e0548b4eac3ea4a97c31060d Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 26 Jan 2024 14:22:09 +0100 Subject: [PATCH] update --- roles/zabbix-srv/files/gotify.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/zabbix-srv/files/gotify.sh 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