I'm trying to make a video surveillance system with my Raspberry Pi (running raspbian) using Zoneminder.
Default action of Zoneminder is only to send an e-mail but I want also to run a script which tells Raspberry how to react in case of alarm.
I found two ways to do that:
Modify
zmfilters.plfile generating a bash command when there is a not archived event having an alarm imageModify
zm_monitor.cppfile making it write a bash when current state go to alarm. In the first solution i don't know how to tell in perl language to system to make a bash and in the second one i'm not capable of compileZoneminderonce the file is modified. The second solution is more efficient but I'm new in linux and I cannot understand how to compile it.
I followed this guide for Ubuntu.