![]() ![]() It also eliminates false negatives if the website you pick doesn't respond to ICMP. ![]() One reason for fetching page headers instead of using ping is if you can't run the script from a host in your DMZ, and your firewall blocks ICMP. Re: Internet Connection Uptime Logger (ICMP or HTTP) Print OUT (localtime).($state ? ": up\n" : ": down\n") ![]() Open OUT,">",$log or die "can't open $log: $!" Print OUT (localtime).($old_state ? ": up\n" : ": down\n") #this way of setting AUTOFLUSH on the log I got #version >$log") or die "can't open $log: $!" Print "testing $site every $interval seconds.\n" Print "Creating Internet Uptime Log at $log " Interval - interval in seconds between checks Name_of_logfile - text file to use as log file ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |