Skip to content

Instantly share code, notes, and snippets.

Avatar

Matteo Balocco totanus

View GitHub Profile
@totanus
totanus / website-monitor.sh
Last active Nov 9, 2018
This script checks if a website is up/down.
View website-monitor.sh
#!/bin/bash
################################################################################
# This script checks if a website is up/down.
# If the website is DOWN the script:
# 1. will send an email to the admin
# 2. will try to restart Apache
#
# It can be added to crontab and it needs a public key authentication with SSH access.
You can’t perform that action at this time.