FEATURE: ADD additional health checks
this is basically all that needs to be added to the current checks to then "publicize" the up/down status of everything externally
`import requests URL = "https://hc-ping.com/your-uuid-here"
def do_work(): # Do your number crunching, backup dumping, newsletter sending work here. # Return a truthy value on success. # Return a falsy value or throw an exception on failure. return True
success = False try: success = do_work() finally: # On success, requests https://hc-ping.com/your-uuid-here # On failure, requests https://hc-ping.com/your-uuid-here/fail requests.get(URL if success else URL + "/fail")`
or in shorthand - after running check, if up (do our current check) + curl this URL, if it's down, (do our current check) + curl a different url All of this leads to the Organizr groups status page that a few people use and they can pull the api info from Healthchecks.io instead of uptimerobot ... and we get real life external free up/down service oh and btw ... if we set the timer to 1 min, it can even be more granular than what UR / SC are offering for free (5 min)
this is all from 1activegeek
Notes:
1 - This would be to publicize/"export" Monitorr service status (NOT import external services like UptimeRobot into Monitorr). 2 - This can be used for API 3 - This can POSSIBLY replace the idea of having a python daemon as this would suffice the need for alerting (HUGE) - however still need a cron/task scheduler to run the service check so it can send service status to hc-ping (easy).
MTF
Combined with: https://github.com/Monitorr/Monitorr/issues/131