Zoneminder stops by using zmeventnotification

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
User avatar
biologisch
Posts: 95
Joined: Fri Aug 24, 2007 10:37 am

Zoneminder stops by using zmeventnotification

Post by biologisch »

Hi @all!
I dont want to record my garden when I am at home to save diskspace.
So I am using this script here -> https://git.e.tern.al/s2/isphonehere/sr ... onehere.sh
The script checks whether my mobile phone and so I are at home otherwise it switch the zoneminder state from "AT-HOME" state to "ALARM-STATE".
But often zoneminder stops after switching and this occurs only when the zmeventserver is active.
I figured out that the zmeventnotification.pl is running and can stopped only by killing the task (kill -9 xxx).
That command doesnt works:

Code: Select all

sudo -u www-data /usr/bin/zmdc.pl stop zmeventnotification.pl 
Unable to connect to server using socket at /run/zm/zmdc.sock

Is there a bug in the script or is it possible to modify it? I already tried to stop zoneminder after the "script login" and to start before "logout" but that doesnt helps.
Could anyone help me to fix this problem?

Some more log:
Date/Time
Component Server PID Level Message File Line
2021-07-06 15:18:26 zmeventnotification 238397 ERR Memory map file '/dev/shm/zm.mmap.3' does not exist in zmMemAttach. zmc might not be running. zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238397 ERR |----> FORK:Monitor-3 (3), eid:85599 SHM failed, re-validating it zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238398 ERR Memory map file '/dev/shm/zm.mmap.1' does not exist in zmMemAttach. zmc might not be running. zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238397 ERR Memory map file '/dev/shm/zm.mmap.3' does not exist in zmMemAttach. zmc might not be running. zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238398 ERR |----> FORK:Monitor-1 (1), eid:85598 SHM failed, re-validating it zmeventnotification.pl
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
User avatar
biologisch
Posts: 95
Joined: Fri Aug 24, 2007 10:37 am

Re: Zoneminder stops by using zmeventnotification

Post by biologisch »

Today I updated to zmeventnotification 6.1.26 but the error as previously described
is persistent.
The error also occurs when I switch manually between different states (At-Home / ALARMACTIVE) and only when the "Enable 3rd party Event Notification Server" is activated. Anyone else with this issue? :cry:
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
Post Reply