Pushover: Alle Werte werden mit Variablen übergeben

This commit is contained in:
Patrick 2018-01-17 09:53:32 +01:00
parent cd435f9afe
commit 2dbd63c357
1 changed files with 17 additions and 8 deletions

View File

@ -30,13 +30,22 @@
# Need help using our API or found an error in the documentation? Drop us a line.
#
####################################################################################################################
PUSHOVERTOKEN="asphg1hm9qecnzyrc8i7k5oy1efhuk"
PUSHOVERUSER="u44drxvefhqrehxid8f131d9v5nit4"
PUSHOVERTITLE="Icinga Home"
PUSHOVERMESSAGE="Dies ist eine Meldung
$(date)"
PUSHDEVICE=""
PUSHPRIORITY="1"
CURLPROXY=""
curl -s \
--form-string "token=asphg1hm9qecnzyrc8i7k5oy1efhuk" \
--form-string "user=u44drxvefhqrehxid8f131d9v5nit4" \
--form-string "message=this is a
message with a line break" \
--form-string "priority=1" \
--form-string "title=Dies ist ein Test" \
curl \
--silent \
`#--insecure --proxy "$CURLPROXY" ` \
--form-string "token=$PUSHOVERTOKEN" \
--form-string "user=$PUSHOVERUSER" \
--form-string "message=$PUSHOVERMESSAGE" \
--form-string "title=$PUSHOVERTITLE" \
--form-string "priority=$PUSHPRIORITY" \
https://api.pushover.net/1/messages.json