monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mmonit sending messages via pushover using "curl 7.56.1"


From: Guillaume François
Subject: Re: mmonit sending messages via pushover using "curl 7.56.1"
Date: Fri, 3 Nov 2017 13:57:43 +0100

Hello,

I updated the wiki.
FYI, the password is the Homepage of the wiki.

Best Regards.


2017-11-03 13:49 GMT+01:00 Marcus Mülbüsch <address@hidden>:
Hello,

    after I upgraded curl to version 7.56.1 I noticed, that my pushover messages were cut off at the first comma. Whether that is intentional or a bug I do not know (and I do not care), but I wanted to let you know that using "--form-string" instead of "--form" or "-F" solved the problem.

   So instead of:

 curl -s \
   -F "token=your_mmonit_or_monit_app_token" \
   -F "user=your_pushover_net_user_token" \
   -F "message=[$MONIT_HOST] $MONIT_SERVICE - $MONIT_DESCRIPTION" \
   https://api.pushover.net/1/messages.json

you simply use:

 curl -s \
   -F "token=your_mmonit_or_monit_app_token" \
   -F "user=your_pushover_net_user_token" \
   --form_string "message=[$MONIT_HOST] $MONIT_SERVICE - $MONIT_DESCRIPTION" \
   https://api.pushover.net/1/messages.json

and everything will be back as normal, allowing you to send messages that contain a comma.

   Could someone with access to the wiki please update the example-sript at:

https://mmonit.com/wiki/MMonit/PushoverNotification

   Thanks,

Marcus


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general



--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?*
------END GEEK CODE BLOCK------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]