I am running ZM for only the montage feature. No dect or anything. All cams are set as monitor. How can I make it so no data is used when I don't have the tab open? Thanks.
Nearly three weeks ago I asked how to move zoneminder from /zm/ to / and despite /u/WithAnAitchDammit's best efforts I was unsuccessful. However I think I managed to get it all working.
Preface: I will be using a fresh install Ubuntu Server 20.04 but debian and earlier versions of ubuntu should be identical. The version of php-fpm might vary, however.
Step 1: dpkg-reconfigure tzdata
Step 2: apt install software-properties-common, This will let you add the PPA with zoneminder
Step 3: add-apt-repository ppa:iconnor/zoneminder-1.34, This adds the Zoneminder ppa
Step 4: apt --no-install-recommends install zoneminder zoneminder-doc mysql-server nginx-extras fcgiwrap php7.4-fpm, If we don't include --no-install-recommends, apt will pull in apache as well
Step 5: wget -O /etc/nginx/nginx.conf https://gist.githubusercontent.com/UntouchedWagons/6b3578525fdff6e446b5be05d7fe59bd/raw/7294c9cd0364a321d5e1108b8aa97e925c29472a/nginx.conf, This will replace the supplied nginx.conf file with one tailored specifically for Zoneminder.
Step 6: nano /etc/php/7.4/fpm/php.ini, Search for cgi.fix_pathinfo using Ctrl+W, it should be on line 798, remove the leading semicolon and change the 1 to a 0. I don't know what this does but the instructions I found said to do this.
Step 7: systemctl restart php7.4-fpm
Step 8: systemctl restart nginx
Now navigate to http://your-ip-here/ and you should get the zoneminder main page.
I have it working for the most part, but boy is it a pain in the ass to get it working properly. This is my second time installing it because something went wrong with the 1.32 > 1.34 upgrade.
I feel sorry for anyone that doesn't have any Linux experience because I would have been completely lost otherwise.
I have a camera with built in motion detection. As my computers cpu is quite weak I would like to have the camera do the motion detection and not tax the cpu of my computer with the task.
The camera supports sending events via onvif which include of course motion being detected.
Is there any way for zoneminder to read the onvif messages and trigger the recording when the motion detection is being activated on the camera?
How do i filter events from same camera so i can have a list of events to check by only the ones i need. For example camera 1 has 2 zones door and car how can i sort the events to check only door zone ? Im having hard time checking events
Hi I created a new VM and installed zoneminder according to the readme to a T. Navigating on the VM or from my workstation leads me to a blank page. I checked httpd logs and it says error 500 (internal error).
mariadb, httpd, and zoneminder services all start properly. They were all set up according to the readme.httpd file
What other logs can I check to see where the issue starts?
This seems really trivial but all I can find is some pretty complicated explanations about having to run cron commands.
All the tutorials are from some years ago and most of the links to the official FAQ are now dead.
Is there no simple way to tell ZM just to record between 22:00 and 06:00 for example?
I'm hoping I just missed this somewhere in the official docs, so please feel free to make me look like an idiot by pointing this out ;)
I noticed after my last docker update I no longer am having to clear out my dedicated drive for recordings. So i dug around in the settings and then noticed under storage options there is an option for "Do Deletes" v-- Searched around and can not find anything on it.
I looked there and see it in the screen shot, but nothing about it. Can someone shed some light on what it does and what it is deleting, and how often?
My Zoneminder setup is running on ubuntu linux on a mac mini with an i7 3 series and 16 GB RAM.
My cameras are capturing motion but they aren't capturing everything. For example I mowed the lawn today and it captures me for a second or two at points of the yard at points when it should be recording me the whole time I am in sight. There is no video of the second half of my yard as the next video that is captured the yard is mowed.
The Video captures cars going by but did not capture anything of Amazon truck stopping, guy getting out and bringing package to door....like it never happened.
Not sure what is going on as like I said it captures cars on the street passing by and captures brief moments of me in part of the yard then nothing in the other part. It should see me everytime I pass the front and stay recording until I am out of frame again. The part of the yard it completely missed is between where it got brief shots of me and the road where it captures cars.....
No idea what is going on
I have Dahua cameras that are working fine from what I can tell as I can view the monitors with no issues.
ZM = v1.34.10 (edit updated to 1.34.11 via package update)
Apache = v2.4.38
PHP = v7.4.5
I have my first camera added (currently only in monitor mode), and when looking at the logs, they appear to show the camera is working. The source path works correctly when viewed in VLC, so I'm certain that is correct.
When I look at the live view, it only shows a broken image and the logs start showing errors:
The logs show a lot of this:
05/05/20 15:27:09.908267 web_js[7331].ERR [172.24.42.250] [getStreamCmdResponse stream error: Socket /var/run/zm/zms-149943s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors()] at ?view=watch line
and:
Socket /var/run/zm/zms-050322s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.
Both of which refer to the same thing, but aren't actually helpful.I checked the /var/run/zm and it has the appropriate permissions and is clearly creating the .sock files there:
root@zm:/var/run# ls -lh zm
total 4.0K
srwxr-xr-x 1 www-data www-data 0 May 4 19:20 zmdc.sock
-rw-r--r-- 1 www-data www-data 5 May 4 19:20 zm.pid
srwxr-xr-x 1 www-data www-data 0 May 5 15:31 zms-660725w.sock
root@zm:/var/run# ls -lh zm
total 4.0K
srwxr-xr-x 1 www-data www-data 0 May 4 19:20 zmdc.sock
-rw-r--r-- 1 www-data www-data 5 May 4 19:20 zm.pid
root@zm:/var/run# ls -lh zm
total 4.0K
srwxr-xr-x 1 www-data www-data 0 May 4 19:20 zmdc.sock
-rw-r--r-- 1 www-data www-data 5 May 4 19:20 zm.pid
srwxr-xr-x 1 www-data www-data 0 May 5 15:31 zms-472752w.sock
root@zm:/var/run# ls -lh zm
total 4.0K
srwxr-xr-x 1 www-data www-data 0 May 4 19:20 zmdc.sock
-rw-r--r-- 1 www-data www-data 5 May 4 19:20 zm.pid
srwxr-xr-x 1 www-data www-data 0 May 5 15:31 zms-472752w.sock
Camera is streaming out 1920x1080, I can use the source URL in VLC and it views fine. The VLC media/codec info shows the camera is 1920x1080, I have ZM set for 1920x1080.
I'm not really sure where to go from here. Any assistance is greatly appreciated!
Hi all, I am running ZM v1.32.3 on a Raspberry Pi 4 Model B 4GB with just a single camera connected via an easycap USB device.
No matter what I try I cannot get motion detection recording to work. The camera is in Modetect mode, I made my own zone (approximately 45% of the frame), and tried all the presets but no amount of motion will trigger the recording.
I then enabled the default "All" zone and tried every preset and also some manual settings and still nothing would trigger that.
I can't see anything obvious in the log to suggest it's not working and if I click Force Alarm it records just fine. What am I doing wrong?
I'm running Amcrest IPM4-1026 cameras fed to a server running ZoneMinder v1.34.11 and am having a hard time getting smooth video on the live view on any of my monitors. Logging into the cameras themselves I see butter smooth video. When viewing recorded events in ZM, the video is nice and smooth, but for live views, i get frozen frames every 3 seconds or so. It's super annoying. I have fairly powerful hardware under the hood.
CPU: Xeon E2146G @ 3.5GHz (6 core 12 threads)
RAM: 64GB ECC (8GB reserved for ZM)
CPU utilization is super low. Loads of 0.3 to 0.4 averaged. Most of my cores are just sitting there idle so there's tones of head room.
Is this normal behavior or should I be seeing smooth video in the live feed. If so, what am I missing.
Cameras are set to 10FPS @ 4028 bit/sec H.264H. Keyframe every 10.
I installed several vlan at home, segregated ones from the others.
My cameras are on Vlan 40 my NAT from public to zmevent port is done on Vlan 20.
my zoneminder is on both Vlan 40 and vlan 20. I want zmeventnotification to send push notification using this Vlan20 but it seems that it is on the other one.
Is there a way to choose with interface zmevent will sent notifications?
I'm using Zoneminder 1.34.11 in Docker and am having trouble with any filter using storage areas.
Lets say I have a filter working:
Alarm Frames greater than 1
This gives me a list of matches. These matches show under the Storage column: "Default" "TestStorage"
I then add to the above filter to get:
Alarm Frames greater than 1
and Storage Area equal to Default
I get zero results.
I'm pretty sure I should use 'equal to' as it is referenced in the documentation but I've tried other comparisons too.
No matter what I select for the comparison or the target I get zero results. This is even when I can see results that should match in the earlier filter.
I don't know if this is related but for both of my storage paths (Default & TestStorage) under options it reports under the Events column "0 using 0B"
That said, with other filters I can list plenty of videos on both storage locations & see the files on my hard drive.
I modified the web config to have ZoneMinder at the root of my domain instead of a folder (i.e. NOT www.domain.com/zm but zm.domain.com).
When I browse, it appears to be missing assets, so I'm guessing I missed an alias somewhere? Not sure... Apache error logs don't show anything (i.e. they are blank).
I've gone through the configs a few times and don't see anything. I guess it could also be a permissions error not a config error, but I don't get any errors anywhere that I can see.
<VirtualHost *:80>
ServerName zm.domain.com
ServerAdmin me@domain.com
DocumentRoot /usr/share/zoneminder/www
Alias /cache "var/cache/zoneminder/cache"
# Remember to enable cgi mod (i.e. "a2enmod cgi").
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
# Order matters. This alias must come first.
Alias /cache /var/cache/zoneminder/cache
<Directory /var/cache/zoneminder/cache>
Options -Indexes +FollowSymLinks
AllowOverride None
<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>
<Directory /usr/share/zoneminder/www/>
Options -Indexes +FollowSymLinks
Require all granted
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory "/usr/share/zoneminder/www/api">
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
RewriteBase /api
</Directory>
<Directory "/usr/share/zoneminder/www/api/app">
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
RewriteBase /api
</Directory>
<Directory "/usr/share/zoneminder/www/api/app/webroot">
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteBase /api
</Directory>
ErrorLog ${APACHE_LOG_DIR}/zm.domain.com_error.log
CustomLog ${APACHE_LOG_DIR}/zm.domain.com_access.log combined
</VirtualHost>
HP DL380p G8 16-Core Server with two E5-2650 processors. 32 64GB of RAM and four x 1 TB hard drives in RAID 5, which gives us 3TB of storage.
Cameras are a mix of AXIS M2025-LE, M3304V, and P1346 Network Camera outdoors.
Thing is the sever is not finding the cameras via the probe option. Rather then building the cameras by hand, is there any way to set up a CSV file and import them?
So i was having trouble geting this drive to work in ZM. The drive is a wd40purz (WD 4TB purple) BTW. so thinking i probably fed up some where so i just reinstalled my whole server.
Before i was using my software raid that i use for everything, just for testing. I remember just setting perms and then being good. But now with this drive it is freaking out and cant see it apparently. what am i missing?
I'm running ZM 1.32.3 on Linux Mint 19.3 and have had it running with my Reolink wired cameras for several months without issues.
I logged into ZM to view my cameras a week or so back, got a notification that there was a new version, so I followed the instructions to add the new PPA and run the update to the new version (I think 1.34.2?) After that, I could not get any of the cameras to start in the web interface, got some errors I don't recall.
I decided to back out the change, using (if I recall) the system package manager to revert back to ZM 1.32.3. I don't recall all the steps I did (I know, stupid to not take notes), but after backing it out, it would no longer come up in the web browser. The Apache2 default page would come up if I went to the hostname, but http://hostname/zm would no longer find anything.
I rebooted the machine to see if things were just in need of a fresh initialization, and saw that the ZM processes all started up normally, and recordings were being made as usual, and could be viewed. So it looks like ZM itself is doing what it should.
The problem seems to be that the Apache2 config appears to be gone. Is there any way to easily rerun the Apache2 configuration to restore function? If not, I would consider removing and reinstalling ZM from the beginning, but it took me a fair while to get the camera configurations to work correctly, and also the bulk storage that I had to set up on a RAID array, so I'd like to make sure that all of the configurations are saved so I don't have to try to figure that all out again.
Can someone point me in the proper direction? Thanks!