https://github.com/hazeliscoding/cli-uptimer
Small script to check uptime status of websites
https://github.com/hazeliscoding/cli-uptimer
cli golang
Last synced: 5 months ago
JSON representation
Small script to check uptime status of websites
- Host: GitHub
- URL: https://github.com/hazeliscoding/cli-uptimer
- Owner: hazeliscoding
- License: mit
- Created: 2024-12-19T21:38:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-19T22:13:46.000Z (about 1 year ago)
- Last Synced: 2025-09-13T06:10:50.972Z (6 months ago)
- Topics: cli, golang
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLI Uptimer ⏱️
CLI-Uptimer is a simple Go CLI tool that periodically checks the availability of specified websites and prints their status. Perfect for keeping an eye on your favorite sites! 🕵️♀️
## Features 🌟
- **Automated checks**: Continuously checks websites at configurable intervals.
- **Status reporting**: Prints out if sites are up or down with their respective HTTP status codes.
- **Easy setup**: Simply edit the code to adjust sites, acceptable status codes, and frequencies.
## Getting Started 🚀
1. **Clone the repository**:
```bash
git clone https://github.com/yourusername/cli-uptimer.git
cd cli-uptimer
```
2. **Build the binary**:
```bash
make build
```
3. **Run the tool**:
```bash
make run
```
4. **Check output**:
You will see output like:
```
https://google.com is up with status code of 200
https://go.dev is up with status code of 200
http://localhost.cs is down with status code of 0
```
## Customization ✨
- Update the `sites` slice in `main.go` to add/remove websites, change acceptable status codes, and tweak frequencies.
- Rebuild and run again to see the changes reflected.
## License 📜
This project is licensed under the MIT License. See [LICENSE](LICENSE) for details.