hrt-bus-api icon indicating copy to clipboard operation
hrt-bus-api copied to clipboard

Alert maintainers when fleet management feed goes down.

Open wbprice opened this issue 10 years ago • 5 comments

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]

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/19558156-alert-maintainers-when-fleet-management-feed-goes-down?utm_campaign=plugin&utm_content=tracker%2F88329&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F88329&utm_medium=issues&utm_source=github).

wbprice avatar Jun 01 '15 22:06 wbprice

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

  1. Should load (ftp://216.54.15.3/Anrd/hrtrtf.txt)
  2. If data is (stale) hasn't reported changes within 5 minutes notify maintainers
  3. If data is absent (just the headers) notify maintainers
  4. 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]

qwo avatar May 09 '16 15:05 qwo

After notification of failure, how long should we wait before we check again / send another notification if its still down?

washt avatar May 09 '16 16:05 washt

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

qwo avatar May 09 '16 18:05 qwo

@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 :)

qwo avatar Mar 02 '17 00:03 qwo

Hey sorry I completely forgot to reply to this last week, here it is: https://github.com/washt/hrtStatus

washt avatar Mar 08 '17 23:03 washt