Page 1 of 1

Service Monitoring

Posted: Sat Apr 30, 2016 11:18 am
by Zmjm15
Hi guys,

Was just wondering if anyone has managed to setup a monitoring service to alert when zoneminder service fails/stops?

Im just installing Monit and wondering how to implement it if anyone knows?


Many thanks

Re: Service Monitoring

Posted: Sat Apr 30, 2016 1:59 pm
by iconnor
I use the following. Could probably be more robust.

check process zmdc.pl with pidfile /run/zm/zm.pid
if failed unixsocket /run/zm/zmdc.sock then restart
group zm
start program = "/bin/systemctl start zoneminder"
stop program = "/bin/systemctl stop zoneminder"

Re: Service Monitoring

Posted: Sat Apr 30, 2016 3:46 pm
by Zmjm15
No thats good i searched forum and found where youve given this script before and its been working great.

Now i just have to learn how to get email alerts from monit!

Many thanks