service-health is a bash script that do systemd services monitoring and send messages to Slack if service is down.
# Clone git repository
git clone https://github.com/YouWeApS/service-health.git
# Install service-health
sudo bash ./service-health/install.sh SLACK_CHANNEL_NAME SLACK_WEBHOOK_TOKEN
Under user that you want the cron job to be executed run:
service-health-scheduler.sh SERVICE_NAME
That will add cron job to check health status of the specified service each 5 mins.
service-health uses slacktee to send messages to Slack. slacktee already included in the main installation process.