Skip to content

Commit

Permalink
Merge pull request #1211 from SteveGilvarry/multiserver-docs
Browse files Browse the repository at this point in the history
Adding multiserver documentation
  • Loading branch information
Andrew Bauer committed Jan 1, 2016
2 parents 8e25b80 + a2ebb09 commit d5ec348
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion distros/fedora/zoneminder.f23.spec
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ BuildRequires: gcc gcc-c++ vlc-devel libcurl-devel libv4l-devel
BuildRequires: httpd polkit-devel
%{!?_without_ffmpeg:BuildRequires: ffmpeg}

Requires: httpd php php-gd php-mysql cambozola polkit net-tools psmisc
Requires: httpd php php-gd php-mysql cambozola polkit net-tools psmisc mod_ssl
Requires: libjpeg-turbo vlc-core libcurl
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(DBD::mysql) perl(Archive::Tar) perl(Archive::Zip)
Expand Down
Binary file added docs/installationguide/images/zm-multiserver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/installationguide/images/zm-multiserver.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile type="dropbox" userAgent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0" version="5.2.7.3" editor="www.draw.io"><diagram>7Vtbb+K+Ev80SHseTgWES3lsaXfP6rT7r9Tq3F5WJjHE2yRGjillP/3OOOPgxKGwbejpSiBxycQe2/P7ZWZ8oRNM0+cvii3jWxnxpNPvRs+d4KrT75/3e/CJgk0hGPcmhWChRFSIqAQK7sVPTsIuSVci4nmloJYy0WJZFYYyy3ioKzKmlFxXi81lUm11yRa2xa3gPmSJL/23iHRshzXayv/BxSK2LfdGNL4ZCx8XSq4yaq/TD+bmVdxOmdVlBhpcgw2VlKAGf6XPU56gHa2NCmt83nG37KTiGX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qGoo03SVYTl0IPiUwkNqAdpWKTjmwZNjO7fsESUFshL+AtNN8Q8mS/wTjK35YwVPDTaqAHPs+DoGTwZdloXlUc8/OV+WxpfQA0MaxeZzERrNqLreMRhLw1grpyxppI16SzgaE0IfIBC6XqL1GJHwOWpoM0JABtXg8vH1Uia6K4cte9JCsBhXY8Vw6B+DGp3TpLOSCbziHBRcbv+BVUxRt39pC65/AQ==</diagram></mxfile>
1 change: 1 addition & 0 deletions docs/installationguide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Contents:
debian
fedora
centos
multiserver
46 changes: 46 additions & 0 deletions docs/installationguide/multiserver.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Multi-Server Install
====================

It is possible to run multiple ZoneMinder servers and manage them from a single interface. To achieve this each zoneminder server is connected to a single shared database server and shares file storage for event data.

.. image:: images/zm-multiserver.png

New installs
------------

1. Follow the normal instructions for your distro for installing ZoneMinder onto all the ZoneMinder servers in the normal fashion. Only a single database will be needed either as standalone, or on one of the ZoneMinder Servers.

2. On each ZoneMinder server, edit zm.conf. Find the ZM_DB_HOST variable and set it to the name or ip address of your Database Server.

3. Copy the file /usr/share/zoneminder/db/zm_create.sql from one of the ZoneMinder Servers to the machine targeted as the Database Server.

4. Install mysql/mariadb server onto the Database Server.

5. It is advised to run "mysql_secure_installation" to help secure the server.

6. Using the password for the root account set during the previous step, create the ZoneMinder database and configure a database account for ZoneMinder to use:

::

mysql -u root -p < zm_create.sql
mysql -u root -p
mysql> grant all on zm.* to 'zmuser'@'%' identified by 'zmpass';
mysql> exit;
mysqladmin -u root -p reload

The database account credentials, zmuser/zmpass, are arbitrary. Set them to anything that suits your environment.
Note that these commands are just an example and might not be secure enough for your environment.

7. If you have chosen to change the ZoneMinder database account credentials to something other than zmuser/zmpass, you must now update zm.conf on each ZoneMinder Server. Change ZM_DB_USER and ZM_DB_PASS to the values you created in the previous step.

Additionally, you must also edit /usr/share/zoneminder/www/api/app/Config/database.php in a similar manner on each ZoneMinder Server. Scroll down and change login and password to the values you created in the previous step.

8. All ZoneMinders Servers must share a common events folder. This can be done in any manner supported by the underlying operating system. From the Storage Server, share/export a folder to be used for ZoneMinder events.

9. From each ZoneMinder Server, mount the shared events folder on the Storage Server to the events folder on the local ZoneMinder Server.

NOTE: The location of this folder varies by distro. This folder is often found under "/var/lib/zoneminder/events" for RedHat based distros and "/var/cache/zoneminder/events" for Debain based distros. This folder is NOT a Symbolic Link!

10. Open your browser and point it to the web console on any of the ZoneMinder Servers (they will all be the same). Open Options, click the Servers tab,and populate this screen with all of your ZoneMinder Servers.

11. When creating a new Monitor, remember to select the server the camera will be assigned to from the Server drop down box.

0 comments on commit d5ec348

Please sign in to comment.