#!/usr/bin/perl ############################################################## # BumbleBeeWare.com 2006 # server monitoring with perl # program to access each server/website and give status response ############################################################## # setup array of servers/websites to check @sitestocheck = ('mywebsite.com','mywebsite2.com'); # the relative url of the website response script in each site $responseprogram = "/cgi-bin/mystatus2.cgi"; # refresh time in seconds 5 minutes is 300 seconds $refreshtime = 300; # path to the log file with the response data $statusfile = "/pathto/statuslog.txt"; ############################################################### # End Configuration ############################################################### # main program use LWP::UserAgent; # print page print "Content-type: text/html\n\n"; print "