Sindbad~EG File Manager
check process redis-server-o2 matching 'redis-server'
start program = "/usr/bin/systemctl start o2redis" with timeout 120 seconds
stop program = "/usr/bin/systemctl stop o2redis" with timeout 60 seconds
if totalmem > 3072 Mb then alert
if cpu > 60% for 4 cycles then alert
if cpu > 98% for 5 cycles then restart
if failed unixsocket /var/run/redis/o2redis.sock then restart
if 5 restarts within 20 cycles then timeout
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists