Skip to content

onstash/process-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor app

A minimal IOLoop PeriodicCallback based application for monitoring database connection status. Runs a Tornado appliction on port 9999 and periodically checks for the global database object's status every 500ms.

On success/failure, initiates a specific notifier action as specified in one of the helper methods.

From a python shell,

from app import run_api
run_api()

From the terminal, using a virtual environment for the app.

PY_VERSION=3.6 ./scripts/setup
PY_VERSION=3.6 ./scripts/run
Trigger methods
# Update this method to trigger a custom notification/processing flow
# on a monitored process' downtime.
def notify_monitor_error(monitor_error):
    """."""
    pass
# Update this method to trigger a custom notification/processing flow
# when the monitored process is back up
def notify_monitor_success():
    """."""
    pass
# Update this method to trigger a custom check for any specific process.
def run_periodic():
    """."""
    pass

About

Periodic callback based process monitoring app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.4%
  • Shell 26.5%
  • JavaScript 13.6%
  • CSS 5.5%
  • HTML 3.0%