This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guest_Test | |
)Z(ep2X1*!HzH(9Dui8e30@C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |