Skip to content

Instantly share code, notes, and snippets.

@dr-mark
dr-mark / monitor-websites.pl
Last active December 25, 2015 21:39
Perl script to monitor website availability
#!/usr/bin/perl
# http://www.linuxhomenetworking.com/forums/showthread.php/18755-Simple-Website-Monitoring-Script-in-Perl
# http://stackoverflow.com/a/2470812
use strict;
use warnings;
use LWP::UserAgent;
use LWP::Protocol::https;
use Getopt::Std;