This is a URL monitoring system written in Go. It reads a list of URLs from a file, checks the status of each URL at regular intervals, and sends an email notification if any of the URLs are down.
- Go (version 1.14 or later)
- A text file named
urls.txt
containing the URLs to be monitored, one per line - SMTP server details and email credentials for sending email notifications
- Clone this repository or download the Go file.
- Install Go if you haven't already. You can download it from the official Go website.
- Create a
urls.txt
file in the same directory as your Go program and add the URLs you want to monitor, one per line.
- Update the
FromEmail
,Password
, andToEmail
constants in the code with your email credentials and the recipient's email address. - Open a terminal, navigate to the directory containing your Go program, and run the command
go run main.go
.
- Reads URLs from a file
- Checks the status of each URL at regular intervals
- Sends an email notification if any of the URLs are down
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.