Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 992 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 992 Bytes

Health Check

This is simple app to health check local server via Cron job or API.

To setup:

Setup Python
Setup Python Env

git clone https://github.com/AWS-First-Cloud-Journey/health-check-agent.git
cd health-check-agent
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

To Start

Update Configuration:

Edit file .env for mysql connection, default CHECK_FREQUENCY is 1 or 1 minute

Start Cron Job Check and Trigger Action Then Stop the App

To Add your own shell script action just update file actions.sh Manual and Action

python run_manual.py

Start Web API

API will run with Flask API

flask run

Start Cron Job

Schedule

python run_schedule.py