Unable to send error email in zmfilter.pl

Current Development version likely to have breaking changes
Post Reply
frankz66
Posts: 46
Joined: Tue Dec 21, 2021 2:17 pm

Unable to send error email in zmfilter.pl

Post by frankz66 »

Hello everyone, I installed the Zoneminder distro on a ubuntu 20.04 server via the ppa:iconnor/zoneminder-master repository

At the moment I can't make filter email sending work, which I regularly copied from a zoneminder distro in LXC.

I did several tests and the error that signals me is:

Sudo zmfilter.pl --filter_id=3

Use of uninitialized value in subtraction (-) at /usr/bin/zmfilter.pl line 187.

I attach an image for the filter I created.
zm.png
zm.png (321.3 KiB) Viewed 22341 times
v1.37.6
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Unable to send error email in zmfilter.pl

Post by Magic919 »

Your zmfilter command is for filter #3 and the screen grab for #4.

There is a section for 1.37 Dev version - viewforum.php?f=44
-
frankz66
Posts: 46
Joined: Tue Dec 21, 2021 2:17 pm

Re: Unable to send error email in zmfilter.pl

Post by frankz66 »

Thank you for your reply, I pre-installed version 1.36 and everything works regularly, except that the server link and its event are not presented to me in the alerts. Can you help me?

Here it is:

ZM alarm detected - 9.33 secs, 237/17 frames, t44/m3/a2 score.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Unable to send error email in zmfilter.pl

Post by Magic919 »

-
frankz66
Posts: 46
Joined: Tue Dec 21, 2021 2:17 pm

Re: Unable to send error email in zmfilter.pl

Post by frankz66 »

Yes, that's right, I get the emails but without the link to the event. In the previous and other version you need to arrive correctly. So now I find the notifications but without the possibility to click on the event to see it live.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Unable to send error email in zmfilter.pl

Post by Magic919 »

Add the appropriate token from that documentation to do what you want.
-
frankz66
Posts: 46
Joined: Tue Dec 21, 2021 2:17 pm

Re: Unable to send error email in zmfilter.pl

Post by frankz66 »

Sorry, what do you mean tokens? Or can you give me an example of a string?
dougmccrary
Posts: 1373
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Unable to send error email in zmfilter.pl

Post by dougmccrary »

The tokens listed in the link given a couple posts up.
frankz66
Posts: 46
Joined: Tue Dec 21, 2021 2:17 pm

Re: Unable to send error email in zmfilter.pl

Post by frankz66 »

Hello and thank you. I solved it anyway, I added the %EPS% variable in the email filters, and the video link arrives
dougmccrary
Posts: 1373
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Unable to send error email in zmfilter.pl

Post by dougmccrary »

:)
Post Reply