Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Alert triggers shell command #118

Open
randombugs opened this issue May 29, 2021 · 4 comments
Open

feat: Alert triggers shell command #118

randombugs opened this issue May 29, 2021 · 4 comments
Labels
feature New feature or request

Comments

@randombugs
Copy link

New Issue as discussed in #117 .

Having the option to execute commands would also allow for 'custom alerts' like sending alerts through other Services then implemented. An Example is Signal Messenger which needs signal-cli for sending messages.

But the possibilities are endless... :)

TwinProduction Reply #117 (comment)

As for the ability to execute custom commands, that's a little tricky, because Gatus' Docker image uses the scratch image, which means that adding support for any custom commands would require also modifying the Docker image.

I'm not saying it's off the table, but for now, unless somebody has an actual use for it, I don't think it's worth considering.

@TwiN
Copy link
Owner

TwiN commented Oct 9, 2022

#47 will likely need to be completed before we can do this, since the Docker image built uses scratch and has no shell of its own.

@TwiN TwiN added the feature New feature or request label Oct 9, 2022
@TwiN TwiN changed the title Alert triggers shell command feat: Alert triggers shell command Oct 9, 2022
@Sim0nW0lf
Copy link

Any news here?

My usecase would be to just try to restart the program which would be really good! In most cases that will resolve the issue in my setups...

@TwiN
Copy link
Owner

TwiN commented Jan 25, 2023

My usecase would be to just try to restart the program which would be really good!

@Sim0nW0lf You can technically already do by deploying an app with an API that allows you to restart your application(s) and calling it via the custom alerting provider.

@ser
Copy link

ser commented Mar 10, 2023

I would second request for a shell alert trigger, I potentially could setup API triggering mqtt, but it's easier to call binary doing that in one line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants