Skip to content

AWS-First-Cloud-Journey/health-check-agent

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published