Perl Site-Health Watchdog with SMTP Alerts
Build a script that periodically checks a list of URLs for availability and response time, logging results and sending an email alert via SMTP when a site goes down. Learners practice HTTP requests with LWP::UserAgent, scheduling via cron, and sending email from Perl.
- Estimate
- ~6.5h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
LWP::UserAgent · Net::SMTP
Project roadmap
- 01
Implement URL checking
~1.5hUse LWP::UserAgent to request each configured URL and record status code and response time.
- 02
Track state and detect changes
~1.5hMaintain a state file recording each site's last known status to detect up/down transitions.
- 03
Send email alerts
~1.5hUse Net::SMTP or Email::Sender to send an alert when a site transitions to down.
- 04
Add a config file
~1hLoad the list of monitored URLs and alert thresholds from a YAML/config file.
- 05
Schedule and log
~1hSet up a cron entry to run the checker periodically and write results to a log file.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack