#This bash script is a quick way to monitor any service in Linux #If the service is stopped it will try to restart is and send a mail to the user that the service is stopped #It will attempt to restart the service if the service is stopped #I use this at work to monitor splunk service, but this can be used for any service monitoring #configure the smtp server, service name and email ID in the script #This job has to be run as a cron. See below #*/3 * * * * /Path/to/file/SplunkServiceMonitor.sh #Due credits to the creator. I referenced this from an online source
-
Notifications
You must be signed in to change notification settings - Fork 6
hvaithia/Service-Monitoring-shell-script
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Shell script to monitor any service in Linux. Run as a cron
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published