Skip to content

SAS24E/WebsiteMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuxLine Website Monitor

A Python script that monitors your website for outages and sends Discord notifications via Docker.

Features

  • Checks website status every 5 minutes
  • Logs all checks and response times
  • Sends Discord alerts when the website goes down
  • Tracks CPU usage
  • Runs 24/7 in a Docker container

Installation

Prerequisites

  • Docker and Docker Compose installed
  • Discord webhook URL

Quick Start

  1. Clone the repository:
git clone https://github.com/yourusername/WebsiteMonitor.git
cd WebsiteMonitor
  1. Create a .env file with your Discord webhook:
echo "DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/..." > .env
  1. Build and run with Docker Compose:
docker-compose up -d

Commands

View logs:

docker-compose logs -f

Stop the container:

docker-compose down

Restart the container:

docker-compose restart

Configuration

Edit main.py to change:

  • WEBSITE_URL: The website to monitor
  • CHECK_INTERVAL: How often to check (in seconds)

Logs

Logs are written to luxline_monitor.log in the project directory.

Security

Never commit your Discord webhook URL to GitHub!

Always use the .env file (which is in .gitignore) for secrets.

About

Website Monitoring application that checks status and notifies in discord.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors