[SOLVED] continuous alarm state when nothing is happening

Forum for questions and support relating to the 1.25.x releases only.
Locked
jnoake
Posts: 7
Joined: Fri Nov 09, 2012 2:01 am

[SOLVED] continuous alarm state when nothing is happening

Post by jnoake »

Just upgraded OS from Fedora 17 to 19.
Some issues with Apache access to folders - resolved
changed :
kernel.shmall = 262144
kernel.shmmax = 268435456
in sysctl.conf

output of ipcs -lm:
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 262144
max total shared memory (kbytes) = 1048576
min seg size (bytes) = 1

using an IP DCS-930L.

It all worked well prior to upgrade, now I can see live view, set zones, playback recordings all seems to be ok, except constant alarm state.
(Zones have been reset)
Reference Image Blend %ge set at 5% - if this is set at 10% it does not detect anything at all.

Log:

Code: Select all

2013-08-27 11:38:26.640901	zma_m1	30465	INF	Monitor-1: 2000 - Processing at 14.93 fps	zm_monitor.cpp	1055
2013-08-27 11:38:26.415574	zmc_m1	30456	INF	Monitor-1: 2000 - Capturing at 14.93 fps	zm_monitor.cpp	2598
2013-08-27 11:37:19.737113	zma_m1	30465	INF	Monitor-1: 1000 - Processing at 14.29 fps	zm_monitor.cpp	1055
2013-08-27 11:37:19.360253	zmc_m1	30456	INF	Monitor-1: 1000 - Capturing at 14.29 fps	zm_monitor.cpp	2598
2013-08-27 11:36:56.197682	zms	30531	ERR	Frame send time 1518 msec too slow, throttling maxfps to 2.22	zm_monitor.cpp	3392
2013-08-27 11:36:52.895119	zms	30531	ERR	Frame send time 1734 msec too slow, throttling maxfps to 3.33	zm_monitor.cpp	3392
2013-08-27 11:36:13.997487	zma_m1	30465	INF	Monitor-1: 021 - Opening new event 55, alarm start	zm_monitor.cpp	1346
2013-08-27 11:36:13.996217	zma_m1	30465	INF	Monitor-1: 021 - Gone into alarm state	zm_monitor.cpp	1326
2013-08-27 11:36:10.953799	zma_m1	30465	INF	Monitor-1: 006 - Gone into prealarm state	zm_monitor.cpp	1367
2013-08-27 11:36:10.949380	zmfilter	30474	INF	Scanning for events	zmfilter.pl	
2013-08-27 11:36:10.688290	zmaudit	30482	INF	Deleting 1 old images	zmaudit.pl	
2013-08-27 11:36:10.667810	zmwatch	30489	INF	Watchdog pausing for 30 seconds	zmwatch.pl	
2013-08-27 11:36:10.592930	zmwatch	30489	INF	Watchdog starting	zmwatch.pl	
2013-08-27 11:36:10.553200	zmdc	30499	INF	'zmupdate.pl -c' started at 13/08/27 12:36:10	zmdc.pl	
2013-08-27 11:36:10.551770	zmdc	30430	INF	'zmupdate.pl -c' starting at 13/08/27 12:36:10, pid = 30499	zmdc.pl	
2013-08-27 11:36:10.381330	zmdc	30489	INF	'zmwatch.pl' started at 13/08/27 12:36:10	zmdc.pl	
2013-08-27 11:36:10.376920	zmdc	30430	INF	'zmwatch.pl' starting at 13/08/27 12:36:10, pid = 30489	zmdc.pl	
2013-08-27 11:36:10.228620	zmdc	30482	INF	'zmaudit.pl -c' started at 13/08/27 12:36:10	zmdc.pl	
2013-08-27 11:36:10.228620	zmdc	30430	INF	'zmaudit.pl -c' starting at 13/08/27 12:36:10, pid = 30482	zmdc.pl	
2013-08-27 11:36:10.095400	zmdc	30430	INF	'zmfilter.pl' starting at 13/08/27 12:36:10, pid = 30474	zmdc.pl	
2013-08-27 11:36:10.094280	zmdc	30474	INF	'zmfilter.pl' started at 13/08/27 12:36:10	zmdc.pl	
2013-08-27 11:36:09.948584	zma_m1	30465	INF	In mode 3/1, warming up	zma.cpp	101
2013-08-27 11:36:09.916440	zmdc	30430	INF	'zma -m 1' starting at 13/08/27 12:36:09, pid = 30465	zmdc.pl	
2013-08-27 11:36:09.914250	zmdc	30465	INF	'zma -m 1' started at 13/08/27 12:36:09	zmdc.pl	
2013-08-27 11:36:09.841191	zmc_m1	30456	INF	Starting Capture	zmc.cpp	191
2013-08-27 11:36:09.784420	zmdc	30430	INF	'zmc -m 1' starting at 13/08/27 12:36:09, pid = 30456	zmdc.pl	
2013-08-27 11:36:09.781680	zmdc	30456	INF	'zmc -m 1' started at 13/08/27 12:36:09	zmdc.pl	
2013-08-27 11:36:06.618330	zmdc	30430	INF	Server starting at 13/08/27 12:36:06
Last edited by jnoake on Sat Aug 31, 2013 8:52 pm, edited 1 time in total.
jnoake
Posts: 7
Joined: Fri Nov 09, 2012 2:01 am

Re: continuous alarm state when nothing is happening

Post by jnoake »

Seems that there was something missing from the database.
I uninstalled zoneminder, dropped the zm database dropped database user zmuser.

Reinstalled zoneminder, imported the SQL script and changed the zoneminder.conf thusly:

Code: Select all

Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
    Options -Indexes +MultiViews +FollowSymLinks
    AllowOverride All
    <IfModule mod_authz_core.c>
       # Apache 2.4
       Require all granted
    </IfModule>
#    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order deny,allow
        Allow from all
#    </IfModule>
    # The code unfortunately uses short tags in many places
    php_value short_open_tag 1
</Directory>

ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
    AllowOverride All
    Options ExecCGI
    <IfModule mod_authz_core.c>
       # Apache 2.4
       Require all granted
    </IfModule>
#    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order deny,allow
        Allow from all
#    </IfModule>
</Directory>
It does not seem logical but the old directives seem to be still required - at least on my system (Apache/2.4.6 (Fedora)), perhaps ispconfig3 has something to do with it.

and then added my camera and re-established config options.
I also found that the 'fast' detection modes do not show outlined what triggered the alarm in the 'stills' view - alarms based on 'blobs' do.

Anywhoo, its all working now, although the default capture was too sensitive for outdoor use.
Locked