How to get zmtrigger.pl work?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
ktt
Posts: 10
Joined: Sun Oct 28, 2012 10:14 am

How to get zmtrigger.pl work?

Post 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?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: How to get zmtrigger.pl work?

Post by Magic919 »

Can you telnet to 6802?

Have you run tests against port 6802 (not 8602 as in your examples).
-
ktt
Posts: 10
Joined: Sun Oct 28, 2012 10:14 am

Re: How to get zmtrigger.pl work?

Post 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.
Post Reply