nodect to modect links mysteriously stopped working

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
sabretoothedhamster
Posts: 23
Joined: Fri Mar 22, 2019 1:21 pm

nodect to modect links mysteriously stopped working

Post by sabretoothedhamster »

Hello everyone!

I would be very grateful for any ideas on how to find and fix broken modect to nodect links.

I have recently switched from pure modect processing to modect(on lowres streams) + nodect(on hi res streams). It allowed me to add one more camera, to lower overall system load (both cpu and shmem), and to get more smooth hires video capture (previously there were many dropped frames, especially when several monitors fire alarm at the same time).

However this early morning my "store" (nodect) monitors lost connectivity to thier "detect" (modect) counterparties. I.e. modect monitors correctly process incoming video, generate and store alarms for lowres video streams while nodect monitors "do not see" these alarms from their respective links.
The most odd thing is that of five cameras four broke and one still works as expected (i.e. it's modect monitor generate alarms, and nodect monitor stores hires video). According to zma_m*.log and zmc_m*.log files all the monitors work ok. They all capturing and analyzing all the time, yet all nodect monitors but one stopped switching into prealarm/alarm state from some point of time.

Being manually triggered one of the stuck nodect monitors saved alarmed event ok. After 'systemctl restart zoneminder' links restored their functionality, but shortly afterwards broke again (and again all except one that one worked before restart).

I have absolutely no idea where to see and what to check :(
gruiarew
Posts: 30
Joined: Tue May 05, 2020 7:10 am

Re: nodect to modect links mysteriously stopped working

Post by gruiarew »

Make sure you have same settings in buffer tab. Pre/post frame count, alarming frames etc. For me this did the trick.
sabretoothedhamster
Posts: 23
Joined: Fri Mar 22, 2019 1:21 pm

Re: nodect to modect links mysteriously stopped working

Post by sabretoothedhamster »

gruiarew wrote: Fri Jun 05, 2020 7:20 pm Make sure you have same settings in buffer tab. Pre/post frame count, alarming frames etc. For me this did the trick.
Thanks for the the cool idea since I did not have any! That trouble somehow linked to these buffer numbers. I have certainly changed them before links broke to fix "Buffer overrun at index N" errors. However putting the same numbers to both modect and nodect monitors haven't solved the issue completely. Now four out of five cameras are ok but one link have not restored. The most unpleasant thing is that there are no errors or warnings nowhere! Alarm state just does not come over the link silently, without any traces :(
gruiarew
Posts: 30
Joined: Tue May 05, 2020 7:10 am

Re: nodect to modect links mysteriously stopped working

Post by gruiarew »

I know it sounds stupid but if is not working at all just delete them and recreate it from scratch.

Also make sure on the transport tab they are matching the correct way in pulling the stream. I had one in unicast one in multicast and wasn't working. Corrected it and is ok.

What I'm getting is different sizes of the same event (hi-res being shorter) or even missing. So even when is working is not always the same...
sabretoothedhamster
Posts: 23
Joined: Fri Mar 22, 2019 1:21 pm

Re: nodect to modect links mysteriously stopped working

Post by sabretoothedhamster »

Some intermediate summary... My setup still does not work properly and I can not find the reason :(

After change of buffer sizes (to make them equal for modect and nodect monitors) situation became better: monitors started to work but link quickly disappear. After I have disabled filesystem logging it became even better. Now links stop working only one-two times per day per camera and resume their job either after restart from ZM web interface, or full system reboot.

I have checked up every possible log but still can not find what could be a reason.

Any other ideas?
Post Reply