Comments (5)
Thanks for the kind words.
How are you running the sendalerts
command?
I'm running it using supervisor. If the command exits, supervisor restarts it. It should be possible to set it up similarly with systemd, upstart etc. too.
from healthchecks.
Never tried supervisor before... I'll honestly have to look it up and see what it's all about.
Right now I have a script set in rc.local to launched a tmux window, then starts another bash script the opens and names new windows, then in each window runs the python, bash or other script/app that I'd like. That way I can connect into my boxes tmux a
and see everything that's running with a decent bit of history.
Do have any tips/tutorial you can point me to for supervisor?
from healthchecks.
http://supervisord.org/running.html
from healthchecks.
Yup.... did some googling last night, I can't believe I've never seen this before. Getting anything newer than 3.0 running well on Ubuntu 14.04 is still a bit of a challenge, but the default repo version of 3.0 runs pretty well except the "tail -f" option seems to be giving me an error. I will however be putting this together on my DEV server ASAP.... it's AWESOME!
from healthchecks.
In summary I would recommend to run sendalerts command under a daemon which will respawn it when it dies. Supervisor is one option. Another interesting option is uwsgi. If you use uwsgi web server to serve the webapp, you can configure it to also run the sendalerts command. With uwsgi you can also run regular cron-style maintenance tasks, and do a lot of other things.
We can guard and work around specific runtime errors like "mysql has gone away" but in general with the different integrations there can be many kinds of exceptions and I don't think it would be good idea to just catch and ignore all of them.
from healthchecks.
Related Issues (20)
- Better Stack Incident creation / alerting integration? HOT 2
- Allowing scanning of text in a pdf email attachment
- Prune outdated history HOT 2
- Truncate beginning of long request bodies instead of the end HOT 4
- Too Many Requests error when adding 2fa or updating password HOT 2
- Grace Time not completely editable once a job is created HOT 1
- Openapi / Swagger specs for the Pinging and Management APIs? HOT 7
- Healthchecks Update Results in 'badly formed hexadecimal UUID string' Error HOT 9
- Support 12 hour time HOT 2
- Feature: Readiness healthcheck for healthcheck itself HOT 7
- Check goes down after one hour HOT 4
- Some way to treat emails with no matching keywords as "fail" by default
- Auto-refresh for Log page HOT 1
- Nows HOT 1
- Checks API field for last successful ping HOT 4
- Wishlist: Stack Overflow / Stack Exchange chat integration HOT 1
- new price plan - Hobbyist+ HOT 2
- Gotify integration doesn't respect sub path HOT 1
- Feature: Filtering Rule for HTTP requests payload (like on emails) HOT 1
- Unable to send email notification with protonmail bridge HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from healthchecks.