mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #302] Feature Request: Add integration to run local shell/python scripts #230
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#230
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 @gganeshan on GitHub (Nov 19, 2019).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/302
@cuu508 thank you once again for this amazing tool. I have been playing around with it a lot and am almost ready to deploy the self hosted version to prod.
I love the numerous tools with which we can integrate this app.
In our org though, we use
snmp-trapsfor alerting and I was wondering if you can add an integration to run local shell/python scripts for me to accomplish this.This integration can have the same variables as the Webhook integration.
Please let me know your thoughts.
Alternatively, can you suggest a workaround to be able to run a shell/python script when the status of an alert changes state.
@cuu508 commented on GitHub (Nov 20, 2019):
Thanks for the suggestion, I like this idea – would give the ultimate flexibility to selfhosted instances with trusted users. Will work on implementing it.
@gganeshan commented on GitHub (Nov 20, 2019):
This is great news.
Thanks @cuu508 once again.
@cuu508 commented on GitHub (Nov 20, 2019):
@gganeshan – just added an initial version of the "Shell Commands" integration.
I've done some testing locally, but it would be great if you could give it a shot and see if it works OK for you, and handles your use case(s).
A word of caution: only enable it if you fully trust the users of your Healthchecks instance. The commands will be executed by the
manage.py sendalertsprocess, and will run with the same system permissions as thesendalertsprocess. (Added this note to README too)@gganeshan commented on GitHub (Nov 20, 2019):
sure thing. will try today and revert with comments/feedback.
Good to know.
Our container is configured to run as an unprivileged user and has a
readonlyfilesystem. So we should be pretty much safe but I will still test it rigorously.Thanks once again for the quick turnaround.
@gganeshan commented on GitHub (Nov 20, 2019):
Looks good to me @cuu508 .
Please let me know when you plan on cutting a new release with this feature.
Thanks once again for the quick turnaround.
@cuu508 commented on GitHub (Nov 20, 2019):
In the coming couple days – I'll reopen this issue so I don't forget.
@cuu508 commented on GitHub (Nov 22, 2019):
Released v1.11.0