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
Service Monitoring
Re: Service Monitoring
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"
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
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
Now i just have to learn how to get email alerts from monit!
Many thanks