ciao icon indicating copy to clipboard operation
ciao copied to clipboard

Gotify Notification not sending.

Open limitlessbritt opened this issue 4 years ago • 5 comments

When i try to add gotify as a webhook it doesn't send any messages and I don't see any info about in the logs

here are env settings I used: CIAO_WEBHOOK_ENDPOINT_GOTIFY=http://gotify.me/message CIAO_WEBHOOK_PAYLOAD_GOTIFY='{"Content Type":"application/json", "message": "[ciao] name: Status changed (status_after)", "priority": 2, "title": "Service Check", "token": "token" }'

I'm running docker, not docker compose.

limitlessbritt avatar Jul 20 '20 17:07 limitlessbritt

same issue, but with telegram webhook

vaclandic avatar Sep 28 '20 11:09 vaclandic

Works for me by passing the token in the URL:

CIAO_WEBHOOK_ENDPOINT_GOTIFY: "https://gotify.example.org/message?token=XYZ"
CIAO_WEBHOOK_PAYLOAD_GOTIFY: '{"title": "status.example.org - __name__","message": "Before: __status_before__\nNew status: __status_after__", "priority": 1}'

sebw avatar Sep 30 '20 20:09 sebw

@limitlessbritt Does https://github.com/brotandgames/ciao/issues/86#issuecomment-701636196 work for you?

@vaclandic Did you follow the example in https://github.com/brotandgames/ciao/blob/master/webhook_configuration.md#telegram?

@sebw Thanks for posting this Gotify example. You are free to submit a PR with your example configuration.

brotandgames avatar Oct 01 '20 14:10 brotandgames

i am using nomad for docker orchestration and for me work this solution:

CIAO_WEBHOOK_ENDPOINT_TELEGRAM="https://api.telegram.org/bot***/sendMessage"
CIAO_WEBHOOK_PAYLOAD_TELEGRAM="{\"chat_id\": \"****\", \"disable_web_page_preview\": 1, \"text\": \"[__name__] Status changed from (__status_before__) to (__status_after__)\"}"

vaclandic avatar Oct 01 '20 14:10 vaclandic

good day. Anyone has had any luck using gotify with docker compose. I see the note on the post by sebw, but that does not work with compose. Thank you

juan11perez avatar Jan 24 '21 05:01 juan11perez

Closed as stale

brotandgames avatar Nov 20 '22 15:11 brotandgames