Python script to monitor services, dispatch SMS on fail, and attempt restart.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0f5488c Apr 27, 2017
Permalink
Failed to load latest commit information.
README.md Added screenshot Apr 27, 2017
config.ini Initial commit Apr 27, 2017
devOops.py Initial commit Apr 27, 2017
example.jpg Initial commit Apr 27, 2017
license.txt Initial commit Apr 27, 2017
services.json Initial commit Apr 27, 2017

README.md

DevOops

DevOops will monitor Linux services for you and dispatch an SMS if they stop (and optionally attempt a restart). You'll need a ZenSend API key to use the SMS feature.

Config File

Put your ZenSend SMS API key in here, and any phone numbers you want SMSs to be sent to. The Originator parameter will be the SMS sender name. Phone numbers need a country code, and multiple ones can be used with comma separation, eg:

[Numbers]
smsMe: 4455551111,445555222

Services File

The services.json file determines what processes/services will be monitored. The "proc" parameter will be checked for in the running process list. The restart paramter is optional; if present, the command will be executed to attempt restart of the services.

Example SMS:

alt text