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
Use zmeventnotification to send alert emails
Re: Use zmeventnotification to send alert emails
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.
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
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