zmeventnotification start hook strange issue with one camera
Posted: Thu Aug 20, 2020 5:30 pm
ZM 1.34.19
ES 5.15
Hi All,
Installed Events Server recently and am really impressed. I just have one small issue with the start hook when used on one particular camera.
When ZM generates an alarm, the start hook runs and seems to detect an object match, however zmeventnotification.log states exit code 1 (nothing detected).
Here is an example of what I mean...
As you can see on the last line yolo finds a match so should be returning exit code 0 with a string of what it has detected?
Looking at the last line in this log shows it didn't return anything.
I am very confused, this works fine with other cameras, and if I run '/var/lib/zmeventnotification/bin/zm_event_start.sh' 19654 2 "Front-Door" "Motion FrontGarden" "/mnt/md0/events/2/2020-08-20/19654" manually then it does exit code 0 with a JSON string as you would expect.
Any suggestions would be great!
ES 5.15
Hi All,
Installed Events Server recently and am really impressed. I just have one small issue with the start hook when used on one particular camera.
Code: Select all
[monitor-2]
models=yolo,face
detection_mode=all
Here is an example of what I mean...
Code: Select all
root@cctv:/var/lib/zmeventnotification/bin# cat /var/log/zm/zmesdetect_m2.log | grep 19654 | more
08/20/20 16:52:25 zmesdetect_m2[13092] DBG1 utils.py:166 [Trying to download https://XX/index.php?view=image&eid=19654&fid=alarm&username=admin&password=*****]
08/20/20 16:52:25 zmesdetect_m2[13092] DBG1 utils.py:185 [Trying to download https://XX/index.php?view=image&eid=19654&fid=snapshot&username=admin&password=*****]
08/20/20 16:52:27 zmesdetect_m2[13092] DBG1 zm_detect.py:373 [Using model: face with /var/lib/zmeventnotification/images/19654-alarm.jpg]
08/20/20 16:52:27 zmesdetect_m2[13092] DBG1 zm_detect.py:631 [No match found in /var/lib/zmeventnotification/images/19654-alarm.jpg using model:face]
08/20/20 16:52:27 zmesdetect_m2[13092] DBG1 zm_detect.py:373 [Using model: face with /var/lib/zmeventnotification/images/19654-snapshot.jpg]
08/20/20 16:52:28 zmesdetect_m2[13092] DBG1 zm_detect.py:631 [No match found in /var/lib/zmeventnotification/images/19654-snapshot.jpg using model:face]
08/20/20 16:52:28 zmesdetect_m2[13092] DBG1 zm_detect.py:373 [Using model: yolo with /var/lib/zmeventnotification/images/19654-alarm.jpg]
08/20/20 16:52:29 zmesdetect_m2[13092] DBG2 zm_detect.py:622 [match found in /var/lib/zmeventnotification/images/19654-alarm.jpg, breaking file loop...]
Code: Select all
root@cctv:/var/lib/zmeventnotification/bin# cat /var/log/zm/zmeventnotification.log | grep 19654
20/08/20 16:52:24.975241 zmeventnotification[11655].INF [main:892] [PARENT: New event 19654 reported for Monitor:2 (Name:Front-Door) Motion FrontGarden[last processed eid:]]
20/08/20 16:52:25.059922 zmeventnotification[13088].DBG [main:883] [PARENT: Forked process:13088 to handle alarm eid:19654]
20/08/20 16:52:25.102006 zmeventnotification[13088].DBG [ZoneMinder::Object:115] [Loading ZoneMinder::Event from Events WHERE Id = 19654]
20/08/20 16:52:25.102826 zmeventnotification[13088].DBG [main:883] [|----> FORK:Front-Door (2), eid:19654 Invoking hook on event start:'/var/lib/zmeventnotification/bin/zm_event_start.sh' 19654 2 "Front-Door" "Motion FrontGarden" "/mnt/md0/events/2/2020-08-20/19654"]
20/08/20 16:52:29.693864 zmeventnotification[13088].DBG [main:883] [|----> FORK:Front-Door (2), eid:19654 hook start returned with text: json:[] exit:1]
I am very confused, this works fine with other cameras, and if I run '/var/lib/zmeventnotification/bin/zm_event_start.sh' 19654 2 "Front-Door" "Motion FrontGarden" "/mnt/md0/events/2/2020-08-20/19654" manually then it does exit code 0 with a JSON string as you would expect.
Any suggestions would be great!