Python for monitoring apache and restarting if down

Are there any existing python module for service monitoring? For example apache service?

Hello ctrld,
You could to use a simply command like this and why not to use crontab to perform this test periodically :

ps -aux |grep apache |grep -Ev 'grep' > /dev/null || service apache2 restart

Otherwise to monitor severals services with python modules you could to use a famous monitoring tool as Shinken. I hope I helped you ! :b: