Use zmeventnotification to send alert emails

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
ZMBrian
Posts: 31
Joined: Thu Apr 28, 2016 2:46 pm

Use zmeventnotification to send alert emails

Post by ZMBrian »

I'd like to use zmeventnotification to send out an alert email when it sees an alarm since it's much faster than using the event filters. Even more useful would be if it could react to a specific monitor's alarm.

I've successfully installed zmeventnotification.pl (with Push and SSL turned off) and it reports in /var/log/syslog when a Zoneminder alarm is triggered. Now to do something with that information.

Has someone been able to add a subroutine in zmeventnotification.pl to kick out an alert email as soon as it sees an alarm? And perhaps filter it by looking for a specific monitor?

Brian
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Use zmeventnotification to send alert emails

Post by asker »

This is not really a mobile app question, but sure, you can

https://github.com/pliablepixels/zmeven ... n.pl#L1192 is where an event of interest is created. You can add a hook to your own subroutine right before this line.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Post Reply