Skip to content

Instantly share code, notes, and snippets.

Matteo Balocco totanus

Block or report user

Report or block totanus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.