first commit
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $(ps ax | grep 'eventService.py' | grep -v grep | wc -l) -eq 0 ]] ; then
|
||||
python3 sendAuthMail.py "Service -eventService daemon NOT running - event-alerting disabled"
|
||||
fi
|
||||
|
||||
cat processesToCheck.txt | while read -r LINE; do
|
||||
if [[ $(ps ax | grep "${LINE}" | grep -v grep | wc -l) -eq 0 ]] ; then
|
||||
./addEvent.sh "ERROR,${LINE},3,10,Service ${LINE} NOT running anymore"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user