mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-26 07:25:51 +03:00
[GH-ISSUE #618] Webhook integration works but does not send alerts automatically #453
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#453
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @retifrav on GitHub (Mar 11, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/618
I have a Webhook integration (Telegram):
and I've managed to set it up correctly - when I click on
Testbutton, the request is sent and I receive it in Telegram:So it works.
But it doesn't send alerts when the checks go down or up, although this integration is selected in Notification Methods of those checks and is set to
ON:So I guess there might be a bug somewhere in the triggering mechanism, because of which the notification doesn't even attempt to send. There are no errors in the UI, the integration status is "Ready to deliver" and the Last Notification shows the one I sent manually with
Testbutton.Can I perhaps enable some logging to catch that?
My environment:
@cuu508 commented on GitHub (Mar 11, 2022):
Is the
sendalertsmanagement command running?@retifrav commented on GitHub (Mar 11, 2022):
Oooh, that might be it. Pardon my ignorance, I'm still getting familiar with running Django applications with uWSGI, so I might have missed something.
Here's my
.inifile for uWSGI:Is setting
module = hc.wsgi:applicationenough to run "everything", or do I need one more service to run./manage.py sendalerts?@cuu508 commented on GitHub (Mar 11, 2022):
Running "hc.wsgi:application" does not start the
sendalertsprocess, it needs to be started separately.You can do that with uwsgi, using the
attach-daemondirective. Example: https://github.com/healthchecks/healthchecks/blob/master/docker/uwsgi.iniOr you can run sendalerts as a systemd service. It's more work to setup, but has more flexibility, for example you can restart the web process independently from the
sendalertsprocess.@retifrav commented on GitHub (Mar 11, 2022):
Right, I've just run in "manually" from shell and immediately received my pending notification. I'll figure out the rest, how to run it as a service, thank you!