first commit

This commit is contained in:
2025-03-24 21:33:34 +00:00
commit 4a183d6f90
34 changed files with 885 additions and 0 deletions
Executable
+11
View File
@@ -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