Difference between revisions of "FAQ"

From ZoneMinder Wiki
Jump to navigationJump to search
 
(161 intermediate revisions by 52 users not shown)
Line 1: Line 1:


== ZoneMinder Frequently Asked Questions ==
==User Generated ZoneMinder Frequently Asked Questions ==


This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible.
These are user generated FAQs for ZoneMinder.
The official ZoneMinder FAQ can be found at http://zoneminder.readthedocs.org/en/latest/faq.html


Feel free to contribute any FAQs that you think are missing.
Please treat this page as a supplement to the official FAQ. If you have tips that are not covered in the official FAQ
please add them here. If we find some tips really interesting, we may move them to the official FAQ.


==How can I stop ZoneMinder filling up my disk?==
You can add your FAQ by following the format below


Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However by default it is not enabled for event deletion.
=== Sample FAQ Heading ===
Sample FAQ answer.


The filter is called PurgeWhenFull and to find it, choose one of the event counts from the console page, for instance events in the last hour, for one of your monitors. This will bring up an event listing and a filter window. In the filter window there is a dropdown select box labelled 'Use Filter', that lets your select a saved filter. Select 'PurgeWhenFull' and it will load that filter. Make any modifications you might want, such as the percentage full you want it to kick in, or how many events to delete at a time (it will repeat the filter as many times as needed to clear the space, but will only delete this many events each time to get there). Then click on 'Save' which will bring up a new window. Make sure the 'Automatically delete' box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.
----


After you've done that, you changes will automatically be loaded into zmfilter within a few minutes. Check the zmfilter.log file to make sure it is running as sometimes missing perl modules mean that it nevers runs but people don't always realise.
=== Montage Layout Names duplicity ===
 
Problem with Montage Layout naming - using same name <b><i>causes creating new one instead of updating existing one...</i></b><br>
Ubuntu 20.04.3 LTS Focal Fossa - easy setup - thank You ZoneMinder !<br>
- but then You need to access the database "zm" - and I searched and found easy solution and modified a little...<br>
- in this case - I use webui of phpmyadmin to manage the content of database - it is easy for beginners,<br>
and You cannot harm the database so easy like with bad syntax on command line...<br>
 
<b>1./ log-in to terminal as su</b><br>
  sudo su
(provide password for Your superuser)<br>
 
<b>2./ install phpmyadmin</b><br>
  apt-get install phpmyadmin
- I have used for both apache2 and lighttpd<br>
- I have created custom password (for example: PASSword123)<br>
 
<b>3./ modify access to databases for default user "phpmyadmin"</b><br>
- enter mysql:<br>
  mysql -u root -pzm
- pzm is for -p and zm because "-p zm" with space don't work...<br>
- I have used command for all databases for easy use...<br>
  GRANT ALL ON *.* TO 'phpmyadmin'@'localhost'
- this causes that user "phpmyadmin" has all databases on host visible and editable<br>
- normaly it would look like this - only for "zm" database<br>
  GRANT ALL ON zm.* TO 'phpmyadmin'@'localhost'
 
<b>4./ delete or modify unwanted layouts</b><br>
- connect from browser:
  http://localhost/phpmyadmin
- username "phpmyadmin"
- password "PASSword123"
- open database "zm" and look for table "MontageLayouts"<br>
- do what You want (study how layout is defined...) :-)<br>
- or simply delete unwanted or broken layout - after this refresh page with layout and<br>
in the dropdown menu of layouts is the deleted one (or more) not more available...<br>
 
<b><i>Don't forget - MYSQL and PHPMYADMIN are two DIFFERENT things...<br>
- also take care about usernames and passwords</i></b>
 
----

Latest revision as of 04:01, 4 October 2021

User Generated ZoneMinder Frequently Asked Questions

These are user generated FAQs for ZoneMinder. The official ZoneMinder FAQ can be found at http://zoneminder.readthedocs.org/en/latest/faq.html

Please treat this page as a supplement to the official FAQ. If you have tips that are not covered in the official FAQ please add them here. If we find some tips really interesting, we may move them to the official FAQ.

You can add your FAQ by following the format below

Sample FAQ Heading

Sample FAQ answer.


Montage Layout Names duplicity

Problem with Montage Layout naming - using same name causes creating new one instead of updating existing one...
Ubuntu 20.04.3 LTS Focal Fossa - easy setup - thank You ZoneMinder !
- but then You need to access the database "zm" - and I searched and found easy solution and modified a little...
- in this case - I use webui of phpmyadmin to manage the content of database - it is easy for beginners,
and You cannot harm the database so easy like with bad syntax on command line...

1./ log-in to terminal as su

 sudo su

(provide password for Your superuser)

2./ install phpmyadmin

 apt-get install phpmyadmin

- I have used for both apache2 and lighttpd
- I have created custom password (for example: PASSword123)

3./ modify access to databases for default user "phpmyadmin"
- enter mysql:

 mysql -u root -pzm

- pzm is for -p and zm because "-p zm" with space don't work...
- I have used command for all databases for easy use...

 GRANT ALL ON *.* TO 'phpmyadmin'@'localhost'

- this causes that user "phpmyadmin" has all databases on host visible and editable
- normaly it would look like this - only for "zm" database

 GRANT ALL ON zm.* TO 'phpmyadmin'@'localhost'

4./ delete or modify unwanted layouts
- connect from browser:

 http://localhost/phpmyadmin

- username "phpmyadmin" - password "PASSword123" - open database "zm" and look for table "MontageLayouts"
- do what You want (study how layout is defined...) :-)
- or simply delete unwanted or broken layout - after this refresh page with layout and
in the dropdown menu of layouts is the deleted one (or more) not more available...

Don't forget - MYSQL and PHPMYADMIN are two DIFFERENT things...
- also take care about usernames and passwords