Alert maintainers when fleet management feed goes down.
Companion issue to https://github.com/Code4HR/hrt-bus-finder/issues/145
When the feed is stale (let's say 30+ minutes), it would be helpful if the API could email the maintainers of the project at [email protected]
need to revisit this and automate it so that users aren't the one that are reporting when the feed goes down.
[Request] A service that monitors uptime on a specific endpoint. Can be hosted on any box that we use, needs to fit the below criterion.
[Requirements]
- Can be run on a Linux box
- Code can be of any flavor
- Doesn't require maintenance
actionable tasks
- Should load (ftp://216.54.15.3/Anrd/hrtrtf.txt)
- If data is (stale) hasn't reported changes within 5 minutes notify maintainers
- If data is absent (just the headers) notify maintainers
- If times out, notify maintainers.
This can be accomplished some sort of cron but simple uptime notifications aren't useful.
this task can also fire an email off [email protected] and cc [email protected]
After notification of failure, how long should we wait before we check again / send another notification if its still down?
notifications probably a hour or two, checking could probably be however as responsive we want to make it, the feed refreshes every ~5 minutes so even 5 is cool but we could do minute wise.
I figure we could just stick this easily in a cron
@washt wrote something for this, i don't rememberwhere this is commited, do you have a copy. I want to mark and close this done :)
Hey sorry I completely forgot to reply to this last week, here it is: https://github.com/washt/hrtStatus