https://www.builtbybuilder.com/blog/server-downtime-detection-apache2
check out this article: