I wrote a short script that reads a list of URLs from a file, then checks for the status code, if the code is not 200 thus URL being unreachable, the warning mail is being sent.