Page 1 of 1

"force alarm" not working

Posted: Fri May 14, 2021 10:08 pm
by nixnooi
What has to be configured for force alarm to work?

I tried it on a camera that was in monitor only, but ok maybe that is not allowed.

I tried logged in as admin on a modetect camera and nothing happens.

This is a fresh install and I don't remember doing anything in previous versions to make it work.

and I don't have any long passwords - as mentioned in 1.33

here

Re: "force alarm" not working

Posted: Sat May 15, 2021 12:14 am
by rockedge
set the monitor / camera Function to "Nodect" or "Modect". This will allow forced alarms or activation by zmtrigger.pl

Re: "force alarm" not working

Posted: Sat May 15, 2021 1:30 am
by nixnooi
my previous version v1.30.4 is still running.

using a camera set in Modetect - force alarm works fine in v1.30.4 , but nothing happens in 1.34. I don't see anything in the log that looks related.

I have copied over each camera's setting by hand.

Based on your post I checked that /usr/bin/zmtrigger.pl is on the 1.34 installation :) it is

Re: "force alarm" not working

Posted: Sat May 15, 2021 7:10 pm
by nixnooi
Thanks to in 1.33 . Once I figured out I had to change the setting and restart/reboot, that did in fact fix my force alarm problem. My setting is now plain. Not sure what this means for security, but I do need force alarm to work.

I am a little confused as the setting on my old version ( v1.30.4 ) is hashed and force alarm works fine there.

Code: Select all

   -rw-r--r--. 1 root root 21605 Apr 19 18:39 /usr/share/zoneminder/www/includes/Monitor.php

    
    188     if ( ZM_OPT_USE_AUTH ) {
    189       if ( ZM_AUTH_RELAY == 'hashed' ) {
    190         $args['auth'] = generateAuthHash(ZM_AUTH_HASH_IPS);
    191       } elseif ( ZM_AUTH_RELAY == 'plain' ) {
    192         $args['user'] = $_SESSION['username'];
    193         $args['pass'] = $_SESSION['password'];
    194       } elseif ( ZM_AUTH_RELAY == 'none' ) {
    195         $args['user'] = $_SESSION['username'];
    196       }