PerlintermediatecliAI generated

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

  1. 01

    Implement URL checking

    ~1.5h

    Use LWP::UserAgent to request each configured URL and record status code and response time.

  2. 02

    Track state and detect changes

    ~1.5h

    Maintain a state file recording each site's last known status to detect up/down transitions.

  3. 03

    Send email alerts

    ~1.5h

    Use Net::SMTP or Email::Sender to send an alert when a site transitions to down.

  4. 04

    Add a config file

    ~1h

    Load the list of monitored URLs and alert thresholds from a YAML/config file.

  5. 05

    Schedule and log

    ~1h

    Set 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.

~6.5h · 5 steps

Tech stack

LWP::UserAgentNet::SMTP