Simple script to monitor web host availability
[X] Send alerts via Email
[X] Push alerts to a Slack channel
[X] Monitor multiple hosts
$ cd /opt
$ git clone https://github.com/iomoath/WebHostHealthMonitor.git
$ cd WebHostHealthMonitor
$ pip install -r requirements.txt
-
Add URLs would you like to monitor in hosts.json
-
Adjust your settings in config.py
-
Create a cron to run every one minute
$ crontab -e
Append the following:
* * * * * /usr/bin/python3 /opt/WebHostHealthMonitor/main.py -c &> /dev/null