Page 1 of 1

How to get zmtrigger.pl work?

Posted: Mon Nov 01, 2021 8:32 am
by ktt
My installation is Ubuntu 20.04 + ZM 1.36.10, installed using apt method by upgrading from previous version. Camera streaming works fine, recording works fine. My cameras are set to Mocord mode.

I'm trying to activate alarm on certain camera using external feed. I tried to follow instructions on Wiki page: https://wiki.zoneminder.com/ZMTrigger
ZMtrigger is running, verified. But when I connect to port 6802, I can't get any reactions to monitor or recordings. Example:

Code: Select all

ktuulos@KALLEP50:~$ echo "1|show||||testingOSD" | nc 192.168.1.4 8602
ktuulos@KALLEP50:~$ echo "1|on||||testingOSD" | nc 192.168.1.4 8602
ktuulos@KALLEP50:~$ echo "1|cancel||||testingOSD" | nc 192.168.1.4 8602
ktuulos@KALLEP50:~$ echo "1|on|200|Testing|TestingText|testingOSD" | nc 192.168.1.4 8602
ktuulos@KALLEP50:~$ echo "1|cancel|200|Testing|TestingText|testingOSD" | nc 192.168.1.4 8602
ktuulos@KALLEP50:~$ echo "1|show||||testingOSD" | nc 192.168.1.4 8602
None of these had any result. There was nothing related on /var/log/syslog except complain about missing socket: viewtopic.php?f=43&t=31279

Does anyone have any ideas, how I could get this external triggering working?

Re: How to get zmtrigger.pl work?

Posted: Mon Nov 01, 2021 10:18 am
by Magic919
Can you telnet to 6802?

Have you run tests against port 6802 (not 8602 as in your examples).

Re: How to get zmtrigger.pl work?

Posted: Mon Nov 01, 2021 10:40 am
by ktt
Magic919 wrote: Mon Nov 01, 2021 10:18 am Can you telnet to 6802?

Have you run tests against port 6802 (not 8602 as in your examples).
Thank you very much. I have dyslexia, so I always mess up with numbers. Now, when I connected to the proper port, everything worked fine i.e. I get the alarm activated, as it should.