From 2dbd63c357f73732a5cb03d2e422d3890c2a5009 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 17 Jan 2018 09:53:32 +0100 Subject: [PATCH] =?UTF-8?q?Pushover:=20Alle=20Werte=20werden=20mit=20Varia?= =?UTF-8?q?blen=20=C3=BCbergeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notification/pushover.sh | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/notification/pushover.sh b/notification/pushover.sh index ef07257..f66cffe 100755 --- a/notification/pushover.sh +++ b/notification/pushover.sh @@ -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 +