Skip to content

service-health is a bash script that do systemd services monitoring and send messages to Slack if service is down.

Notifications You must be signed in to change notification settings

YouWeApS/service-health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

service-health

service-health is a bash script that do systemd services monitoring and send messages to Slack if service is down.

Installation

# 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

Usage

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.

Dependecies

service-health uses slacktee to send messages to Slack. slacktee already included in the main installation process.

About

service-health is a bash script that do systemd services monitoring and send messages to Slack if service is down.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages