<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jusfixit</id>
	<title>ZoneMinder Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jusfixit"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Jusfixit"/>
	<updated>2026-04-19T20:34:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=4151</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=4151"/>
		<updated>2010-11-01T22:51:30Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: /* My load is too high, how can I reduce it? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However &amp;#039;&amp;#039;&amp;#039;by default it is not enabled for event deletion&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The filter is called &amp;#039;&amp;#039;PurgeWhenFull&amp;#039;&amp;#039; 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.&lt;br /&gt;
&lt;br /&gt;
This will bring up an event listing and a filter window.&lt;br /&gt;
&lt;br /&gt;
In the filter window there is a drop down select box labeled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter.&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes.&lt;br /&gt;
&lt;br /&gt;
Check the &amp;lt;tt&amp;gt;zmfilter.log&amp;lt;/tt&amp;gt; file to make sure it is running as sometimes missing perl modules mean that it never runs but people don&amp;#039;t always realize.&lt;br /&gt;
&lt;br /&gt;
There are two methods for ZM to remove files when they are deleted that can be found in Options under the System tab ZM_OPT_FAST_DELETE and ZM_RUN_AUDIT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_OPT_FAST_DELETE:&lt;br /&gt;
&lt;br /&gt;
Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if your are trying to do a lot of events at once. It is recommended that you set this option which means that the browser client only deletes the key entries in the events table, which means the events will no longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_RUN_AUDIT:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the file system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. This is recommended for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_AUDIT_CHECK_INTERVAL:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the files system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean? and my cameras won&amp;#039;t display video at higher resolutions.===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;384x288 capture resolution, that makes: 110 592 pixels&lt;br /&gt;
in 24 bit color that&amp;#039;s x24 = 2 654 208 bits per frame &lt;br /&gt;
by 80 frames ring buffer x80 = 212 336 640 bits per camera &lt;br /&gt;
by 4 cameras x4 = 849 346 560 bits. &lt;br /&gt;
Plus 10% overhead = 934 281 216 bits &lt;br /&gt;
That&amp;#039;s 116 785 152 bytes, and &lt;br /&gt;
= 114 048 kB, respectively 111.38 MB. &lt;br /&gt;
If my shared memory is set to 134 217 728, which is exactly 128MB, &lt;br /&gt;
that means I shouldn&amp;#039;t have any problem.&lt;br /&gt;
(Note that 1 byte = 8 bits and 1kbyte = 1024bytes, 1MB = 1024 kB)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html .  &lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmall&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be sure to restart ZoneMinder after this.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. &lt;br /&gt;
&lt;br /&gt;
To change them permanently you will need to edit &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; and add the following lines (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load these settings in the sysctl.conf file type:&lt;br /&gt;
&amp;lt;pre&amp;gt;sysctl -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your shared memory settings type:&lt;br /&gt;
&amp;lt;pre&amp;gt;ipcs -l&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full colour, increase 134217728 to, for example, 268424446&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
Versions 1.24.x of ZoneMinder also allows you to use an alternate method of shared memory allocation, [http://en.wikipedia.org/wiki/Mmap mapped memory]. This requires less configuration and can be simpler to use. Mapped memory allows you to use a special type of file as the placeholder for your memory and this file is &amp;#039;mapped&amp;#039; into memory space for easy and fast access.&lt;br /&gt;
&lt;br /&gt;
To enable mapped memory in ZoneMinder you need add add the --enable--mmap=yes switch to your configure line. By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options-&amp;gt;paths-&amp;gt;PATH_MAP. It uses a filesystem type called [http://en.wikipedia.org/wiki/Tmpfs tmpfs]. If you type &amp;#039;df&amp;#039; you should see this area and the size of memory it currently allows. It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.&amp;lt;monitor id&amp;gt; in the mapped memory filesystem.&lt;br /&gt;
&lt;br /&gt;
Mapped memory is subject to the same limitations in terms of total memory as using more traditional shared memory but does not require any configuration per allocation or chunk. In future versions of ZoneMinder this will be the default shared memory storage method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;AlternateSharedMemory&amp;quot; style=&amp;quot;width:80%; border:2px solid #8a8588; background:#faf5ff; vertical-align:top; margin-top: 6px; padding: 4px;&amp;quot;&amp;gt;&lt;br /&gt;
Another good article about shared memory settings http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm . &lt;br /&gt;
It made a statement that conflicted with those in the Redhat article but they fixed a [http://www.zoneminder.com/forums/viewtopic.php?t=9692 long standing memory issue on FC6], so give them a try. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The essential difference was that the kernel.shmall setting is NOT in a direct memory setting in KB but in pages of memory. it is Max Pages of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&amp;#039; If you want to allocate a maximum memory setting to 8GB you have to convert it to the number of pages (or segments).&lt;br /&gt;
with a page size of 4096.&lt;br /&gt;
*kernel.shmall=8000x1024x1024/4096&lt;br /&gt;
**kernel.shmall=2048000&lt;br /&gt;
NOT 8388608000 as would be suggested in the RedHat article linked above.&lt;br /&gt;
&lt;br /&gt;
shmmax is the max amount to allocate in one request - &lt;br /&gt;
this is is an actual memory size (as opposed to pages) set to 4GB&lt;br /&gt;
*kernel.shmmax = 4194304000&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&amp;lt;pre&amp;gt;kernel.shmall=2048000&lt;br /&gt;
kernel.shmmax = 4194304000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As above, reload your sysctl.conf with &amp;lt;tt&amp;gt;sysctl -p&amp;lt;/tt&amp;gt; and check that the settings are correct with &amp;lt;tt&amp;gt;ipcs -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t ZoneMinder capture images (either at all or just particularly fast) when I can see my camera just fine in xawtv or similar?===&lt;br /&gt;
&lt;br /&gt;
With capture cards ZoneMinder will pull images as fast as it possibly can unless limited by configuration. ZoneMinder (and any similar application) uses the frame grabber interface to copy frames from video memory into user memory. This takes some time, plus if you have several inputs sharing one capture chip it has to switch between inputs between captures which further slows things down.&lt;br /&gt;
&lt;br /&gt;
On average a card that can capture at 25fps per chip PAL for one input will do maybe 6-10fps for two, 1-4fps for three and 1-2 for four. For a 30fps NTSC chip the figures will be correspondingly higher. However sometimes it is necessary to slow down capture even further as after an input switch it may take a short while for the new image to settle before it can be captured without corruption.&lt;br /&gt;
&lt;br /&gt;
When using xawtv etc to view the stream you are not looking at an image captured using the frame grabber but the card&amp;#039;s video memory mapped onto your screen. This requires no capture or processing unless you do an explicit capture via the J or ctrl-J keys for instance. Some cards or drivers do not support the frame grabber interface at all so may not work with ZoneMinder even though you can view the stream in xawtv. If you can grab a still using the grab functionality of xawtv then in general your card will work with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t I see streamed images when I can see stills in the Zone window etc?===&lt;br /&gt;
&lt;br /&gt;
This issue is normally down to one of two causes&lt;br /&gt;
&lt;br /&gt;
1) You are using Internet Explorer and are trying to view multi-part jpeg streams. IE does not support these streams directly, unlike most other browsers. You will need to install Cambozola or another multi-part jpeg aware pluging to view them. To do this you will need to obtain the applet from the Downloads page and install the cambozola.jar file in the same directly as the ZoneMinder php files. Then find the ZoneMinder Options-&amp;gt;Images page and enable ZM_OPT_CAMBOZOLA and enter the web path to the .jar file in ZM_PATH_CAMBOZOLA. This will ordinarily just be cambozola.jar. Provided ZM_CAN_STREAM is set to auto and ZM_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod your cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&lt;br /&gt;
2) The other common cause for being unable to view streams is that you have installed the ZoneMinder cgi binaries (zms and nph-zms) in a different directory than your web server is expecting. Make sure that the --with-cgidir option you use to the ZoneMinder configure script is the same as the CGI directory configure for your web server. If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like &amp;lt;pre&amp;gt;ScriptAlias /cgi-bin/ &amp;quot;/var/www/cgi-bin/&amp;quot;&amp;lt;/pre&amp;gt; where the last directory in the quotes is the one you have specified. If not then change one or the other to match. Be warned that configuring apache can be complex so changing the one passed to the ZoneMinder configure (and then rebuilding and reinstalling) is recommended in the first instance. If you change the apache config you will need to restart apache for the changes to take effect. If you still cannot see stream reliably then try changing Options-&amp;gt;Paths-&amp;gt;ZM_PATH_ZMS to just use zms if nph-zms is specified, or vice versa. Also check in your apache error logs.&lt;br /&gt;
&lt;br /&gt;
===I have several monitors configured but when I load the Montage view in FireFox why can I only see two? or, Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittent connections for other information such as statuses.&lt;br /&gt;
&lt;br /&gt;
You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras.  Certain FireFox extensions such as FasterFox may also help to achieve the same result.&lt;br /&gt;
&lt;br /&gt;
To resolve this situation, follow the instructions below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Enter about:config in the address bar&lt;br /&gt;
&lt;br /&gt;
scroll down to&lt;br /&gt;
browser.cache.check_doc_frequency 3&lt;br /&gt;
change the 3 to a 1&lt;br /&gt;
&lt;br /&gt;
browser.cache.disk.enable True -&amp;gt; False&lt;br /&gt;
network.http.max-connections-per-server -&amp;gt; put a value of 100&lt;br /&gt;
network.http.max-persistent-connections-per-proxy -&amp;gt; 100 again&lt;br /&gt;
network.http.max-persistent-connections-per-server -&amp;gt; 100 again&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of experimentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
# Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
# Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway. This is especially true for analog cameras/cards as image height over 320 (NTSC) or 352 PAL) are invariably interlaced.&lt;br /&gt;
# Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frame rates. You can still configure ZM to ignore these limits and capture as fast as possible when motion is detected.&lt;br /&gt;
# Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
# Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If your camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
# Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space / Bandwidth do I need for ZM?===&lt;br /&gt;
Please see [http://www.jpwilson.eu/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
Or go to [http://www.axis.com/products/video/design_tool/index.htm this link] for the Axis bandwidth calculator. Although this is aimed at Axis cameras it still produces valid results for any kind of IP camera.&lt;br /&gt;
&lt;br /&gt;
As a quick guide I have 4 cameras at 320x240 storing 1 fps except during alarm events. After 1 week 60GB of space in the volume where the events are stored (/var/www/html/zm) has been used.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like:&lt;br /&gt;
&lt;br /&gt;
   Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068&lt;br /&gt;
   comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t&lt;br /&gt;
   tcontext=user_u:object_r:initrc_var_run_t tclass=file&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., &amp;lt;tt&amp;gt;/etc/selinux/config&amp;lt;/tt&amp;gt;) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* You may also consider to use the web server security, for example, htaccess files under Apache scope; You may even use this as an additional/redundant security on top of Zoneminders built-in security features;&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use. One directory cannot hold more than 32k approx  files.&lt;br /&gt;
&lt;br /&gt;
Version of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit this is also somewhat  faster. However it is relatively and although few issues have been reported thus far it should be considered in beta for now. Also, it is currently not possible to migrate saved events between the different storage formats so is only suitable for new installations or if you do not mind losing saved events.&lt;br /&gt;
&lt;br /&gt;
So if you do not want to use the deeper filesystem option&lt;br /&gt;
(Options-&amp;gt;Paths-&amp;gt;ZM_USE_DEEP_STORAGE), for now you have to reduce the&lt;br /&gt;
number of events or store your images (e.g. /var/lib/zoneminder) on a&lt;br /&gt;
partition that uses a different filesystem such as ext4 or reiserfs.&lt;br /&gt;
&lt;br /&gt;
You can read about the lack of a limit in the number of&lt;br /&gt;
sub-directories in the ext4 filesystem at:&lt;br /&gt;
  http://kernelnewbies.org/Ext4&lt;br /&gt;
and see what tools may assist in your use of this filesystem in:&lt;br /&gt;
  http://ext4.wiki.kernel.org/index.php/Ext4_Howto&lt;br /&gt;
Note that while GParted 0.5.2 recognizes ext4 partitions, at least in&lt;br /&gt;
some circumstances it does not succeed in formatting a partition for&lt;br /&gt;
the ext4 filesystem.  Also, if you search for ext3 or reiserfs on the&lt;br /&gt;
forums you will find various threads on this issue with guidance on&lt;br /&gt;
how to convert.&lt;br /&gt;
&lt;br /&gt;
== Managing system load &amp;#039;&amp;#039;(with IP Cameras in mind)&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
=== How do I know if my computer is overloaded? ===&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
=== My load is too high, how can I reduce it? ===&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. You may be able to experience substantial Zoneminder performance boosts now by merely upgrading your operating system, without having to download libraries and compile your own binaries, etc. as described in the forum thread linked below.  Some distributions, e.g. Fedora 14 now include library code to utilize the instruction set extensions available in your processor: &lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Fedora_14_Alpha_release_notes#Faster_JPEG_Compression.2FDecompression&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The replacement of libjpeg with libjpeg-turbo brings speed improvements to a wide range of applications when handling images in JPEG format ...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  http://fedoraproject.org/wiki/Releases/14/Schedule&lt;br /&gt;
&lt;br /&gt;
still states &amp;quot;2010-11-02 final release&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  http://libjpeg-turbo.virtualgl.org/&lt;br /&gt;
&lt;br /&gt;
provides some history on its project page.  If you seek confirmation for which library is in use, you may consider querying e.g. while running on a prior distribution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-6b-46.fc12.i686&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and comparing the response to querying when the higher-performance library is available:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ rpm -q --whatprovides libjpeg&lt;br /&gt;
libjpeg-turbo-1.0.1-1.fc14.x86_64&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As noted in other forum postings, some zoneminder camera and usage configurations may not make much use of jpeg processing (e.g. some webcams), and thus obtain little performance benefit.  Otherwise, you should be able to select one or more of:&lt;br /&gt;
* running more cameras,&lt;br /&gt;
* running existing cameras at higher image resolutions,&lt;br /&gt;
* running cameras at a faster frame rate,&lt;br /&gt;
* saving MoDect images with higher quality,&lt;br /&gt;
* having more CPU cycles available for any non-Zoneminder workload, etc.&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info on the download-the-library-yourself, compile-your-own-Zoneminder binary, etc. approach if needed. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
=== What about disks and bandwidth? ===&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
===I cannot build ZoneMinder and am getting lots of undefined C++ template errors===&lt;br /&gt;
&lt;br /&gt;
This is almost certainly due to the &amp;#039;ccache&amp;#039; package which attempts to speed up compilation by caching compiled objects. Unfortunately one of the side effects is that it breaks the GNU g++ template resolution method that ZoneMinder uses in building by prevent files getting recompiled. The simplest way around this is to remove the ccache package using your distros package manager.&lt;br /&gt;
&lt;br /&gt;
=== How do I build for X10 support? ===&lt;br /&gt;
&lt;br /&gt;
You do not need to rebuild ZM for X10 support. You will need to install the perl module and switch on X10 in the options, then restart. Installing the perl module is covered in the README amongst other places but in summary, do:&lt;br /&gt;
&lt;br /&gt;
 perl -MCPAN -eshell&lt;br /&gt;
 install X10::ActiveHome&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
== Extending ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How can I get ZM to do different things at different times of day or week? ===&lt;br /&gt;
If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder &amp;#039;run states&amp;#039;. A run state is a particular configuration of monitor functions that you want to use at any time.&lt;br /&gt;
&lt;br /&gt;
To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say &amp;#039;Running&amp;#039; or &amp;#039;Stopped&amp;#039;. You will then be able to save the current state and give it a name, &amp;#039;Daytime&amp;#039; for example. Now configure your monitors how you would want them during other times of day and save that, for instance as &amp;#039;Nighttime&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command &amp;#039;&amp;#039;zmpkg.pl &amp;lt;run state&amp;gt;&amp;#039;&amp;#039;, for example &amp;#039;&amp;#039;zmpkg.pl Daytime&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The final step you need to take, is scheduling the time the changes take effect. For this you can use [http://en.wikipedia.org/wiki/Cron cron]. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,&lt;br /&gt;
&amp;lt;pre&amp;gt;0 8 * * * /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * /usr/local/bin/zmpkg.pl Nighttime&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Ubuntu 7.04 and possibly others, look in /usr/bin not just /usr/local/bin for the zmpkg.pl file.&lt;br /&gt;
&lt;br /&gt;
Although the example above describes changing states at different times of day, the same principle can equally be applied to days of the week or other more arbitrary periods.&lt;br /&gt;
&lt;br /&gt;
For an alternative method of time controlling ZoneMinder, forum user &amp;#039;voronwe&amp;#039; has created a more interactive calendar style integration. Details of this can be found in this [http://www.zoneminder.com/forums/viewtopic.php?t=6519 forum thread]. If you would like to find out more about this contribution please post on this thread.&lt;br /&gt;
&lt;br /&gt;
=== How can I use ZoneMinder to trigger something else when there is an alarm? ===&lt;br /&gt;
ZoneMinder includes a perl API which means you can create a script to interact with the ZM shared memory data and use it in your own scripts to react to ZM alarms or to trigger ZM to generate new alarms. Full details are in the README or by doing &amp;#039;perdoc ZoneMinder&amp;#039;, &amp;#039;perldoc ZoneMinder::SharedMem&amp;#039; etc.&lt;br /&gt;
Below is an example script that checks all monitors for alarms and when one occurs, prints a message to the screen. You can add in your own code to make this reaction a little more useful.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use ZoneMinder;&lt;br /&gt;
&lt;br /&gt;
$| = 1;&lt;br /&gt;
&lt;br /&gt;
zmDbgInit( &amp;quot;myscript&amp;quot;, level=&amp;gt;0, to_log=&amp;gt;0, to_syslog=&amp;gt;0, to_term=&amp;gt;1 );&lt;br /&gt;
&lt;br /&gt;
my $dbh = DBI-&amp;gt;connect( &amp;quot;DBI:mysql:database=&amp;quot;.ZM_DB_NAME.&amp;quot;;host=&amp;quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );&lt;br /&gt;
&lt;br /&gt;
my $sql = &amp;quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != &amp;#039;None&amp;#039; group by (M.Id)&amp;quot;;&lt;br /&gt;
my $sth = $dbh-&amp;gt;prepare_cached( $sql ) or die( &amp;quot;Can&amp;#039;t prepare &amp;#039;$sql&amp;#039;: &amp;quot;.$dbh-&amp;gt;errstr() );&lt;br /&gt;
&lt;br /&gt;
my $res = $sth-&amp;gt;execute() or die( &amp;quot;Can&amp;#039;t execute &amp;#039;$sql&amp;#039;: &amp;quot;.$sth-&amp;gt;errstr() );&lt;br /&gt;
my @monitors;&lt;br /&gt;
while ( my $monitor = $sth-&amp;gt;fetchrow_hashref() )&lt;br /&gt;
{&lt;br /&gt;
    push( @monitors, $monitor );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while( 1 )&lt;br /&gt;
{&lt;br /&gt;
    foreach my $monitor ( @monitors )&lt;br /&gt;
    {&lt;br /&gt;
        next if ( !zmMemVerify( $monitor ) );&lt;br /&gt;
 &lt;br /&gt;
        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&amp;gt;{LastEventId} ) )&lt;br /&gt;
        {&lt;br /&gt;
            $monitor-&amp;gt;{LastEventId} = $last_event_id;&lt;br /&gt;
            print( &amp;quot;Monitor &amp;quot;.$monitor-&amp;gt;{Name}.&amp;quot; has alarmed\n&amp;quot; );&lt;br /&gt;
            #&lt;br /&gt;
            # Do your stuff here&lt;br /&gt;
            #&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    sleep( 1 );&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder logs for the RPM packages are located in &amp;lt;tt&amp;gt;/var/log/zm&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are &amp;lt;tt&amp;gt;zmdc.log&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;zmpkg.log&amp;lt;/tt&amp;gt; if ZM is not able to start.&lt;br /&gt;
&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&amp;lt;tt&amp;gt;&lt;br /&gt;
*/var/log/messages and/or /var/log/syslog&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log&amp;lt;/tt&amp;gt; (RedHat/Fedora) or &amp;lt;tt&amp;gt;/var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log&amp;lt;/tt&amp;gt; (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the [[tail]] command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
  tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log&lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;). To exit, hit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More verbose logging for the ZoneMinder binaries is available by enabling the debug option from the control panel and will be placed in the path you have configured for the debug logs. Output can be limited to a specific binary as described in the Debug options page under the &amp;quot;?&amp;quot; marks.&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware and/or software?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lspci]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[scanpci]] -v&amp;lt;/tt&amp;gt;  -- Gives you information from your hardware EPROM&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lsusb]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[dmesg]]&amp;lt;/tt&amp;gt; -- Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[v4l-info]]&amp;lt;/tt&amp;gt; -- to see how driver is talking to card. look for unusual values.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[modinfo bttv]]&amp;lt;/tt&amp;gt; -- some bttv driver stats.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[zmu]]  -m 0 -q -v&amp;lt;/tt&amp;gt; -- Returns various information regarding a monitor configuration.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcs]] &amp;lt;/tt&amp;gt;  -- Provides information on the ipc facilities for which the calling process has read acccess.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcrm]] &amp;lt;/tt&amp;gt;  -- The ipcrm command can be used to remove an IPC object from the kernel.&lt;br /&gt;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===Why is it that when monitoring a camera, the top portion of the image is cutoff and appears at the bottom of the image, with a line seperating the top from the bottom?===&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting a 403 access error with my web browser when trying to access http //localhost/zm? ===&lt;br /&gt;
&lt;br /&gt;
The apache web server needs to have the right permissions and configuration to be able to read the Zoneminder files. Check the forums for solution, and edit the apache configuration and change directory permissions to give apache the right to read the Zoneminder files. Depending on your Zoneminder configuration, you would use the zm user and group that Zoneminder was built with, such as wwwuser and www.&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting broken images when trying to view events? ===&lt;br /&gt;
&lt;br /&gt;
Zoneminder and the Apache web server need to have the right permissions. Check this forum topic and similar ones:&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=48754#48754&lt;br /&gt;
&lt;br /&gt;
===Why is the image from my color camera appearing in black and white?===&lt;br /&gt;
This may occur if you have a NTSC analog camera but have configured the source in ZoneMinder as PAL for the Device Format under the source tab.  You may also be mislead because zmu can report the video port as being PAL when the camera is actually NTSC.  Confirm the format of your analog camera by checking it&amp;#039;s technical specifications, possibly found with the packaging it came in, on the manufacturers website, or even on the retail website where you purchased the camera.  Change the Device Format setting to NTSC and set it to the lowest resolution of 320 x 240.  If you have confirmed that the camera itself is NTSC format, but don&amp;#039;t get a picture using the NTSC setting, consider increasing the shared memory &amp;#039;&amp;#039;&amp;#039;kernel.shmall&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;kernel.shmmax&amp;#039;&amp;#039;&amp;#039; settings in /etc/sysctl.conf to a larger value such as 268435456.  This is also the reason you should start with the 320x240 resolution, so as to minimize the potential of memory problems which would interfere with your attempts to troubleshoot the device format issue.  Once you have obtained a picture in the monitor using the NTSC format, then you can experiment with raising the resolution.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see blue screens with a timestamp when monitoring my camera?===&lt;br /&gt;
If this camera is attached to a capture card, then you may have selected the wrong Device Source or Channel when configuring the monitor in the ZoneMinder console.  If you have a capture card with 2 D-sub style inputs(looks like a VGA port) to which you attach a provided splitter that splits off multiple cables, then the splitter may be attached to the wrong port.  For example, PV-149 capture cards have two D-sub style ports labeled as DB1 and DB2, and come packaged with a connector for one of these ports that splits into 4 BNC connecters.  The initial four video ports are available with the splitter attached to DB1.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see black screens with a timestamp when monitoring my camera?===&lt;br /&gt;
In the monitor windows where you see the black screen with a timestamp, select settings and enter the Brightness, Contrast, Hue, and Color settings reported for the device by &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039;.  32768 may be appropriate values to try for these settings.  After saving the settings, select Settings again to confirm they saved successfully.&lt;br /&gt;
&lt;br /&gt;
===I am getting messages about a backtrace in my logs, what do I do?===&lt;br /&gt;
If you are seeing entries in your log like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6 [0x3347230210]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(memset+0xce) [0x334727684e]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x40ee9a]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x419946]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x4213cf]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0x35c) [0x404674]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x334721da44]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0xd1) [0x4043e9]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: INF [Backtrace complete]&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you can help diagnose the problem by running a special command to translate the hex addresses into helpful information. This command is called addr2line and you can type &amp;#039;man addr2line&amp;#039; for more information.&lt;br /&gt;
Basically addr2line takes two sets of parameters, the first is the name of the binary file, and the second is a list of addresses. Both of these pieces of information are displayed in the logs. The filename is the first part after the &amp;#039;Backtrace:&amp;#039; tag, in this case /usr/local/bin/zma, though it may well be different in your case. Some of the lines refer to libraries rather than the zma executable but those can be ignored for now, the important part is noting which ZM binary is involved. The binary file is passed in following the -e flag. The addresses to pass to addr2line are those contained in the &amp;#039;[]&amp;#039; pairs. Again you can ignore those that are on a line that refers to a library but it will not hurt if you include them.&lt;br /&gt;
So in the example above, the command would be &amp;lt;pre&amp;gt;addr2line -e /usr/local/bin/zma 0x40ee9a 0x419946 0x4213cf 0x404674 0x4043e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should then dump out a more symbolic list containing source file names and line numbers, and it is this information which will be helpful if posted to the forums. Sometimes addr2line fails to produce useful output. This is usually because either the problem is so severe that it has corrupted the stack and prevented useful information from being displayed, or that you have either compiled ZM without the -g flag for debug, or you have stripped the binaries of symbol information after installation. This this case you would need to rebuild temporarily with debug enabled for the information to be useful.&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database?===&lt;br /&gt;
There is two ways to go about this. In most cases you can run from the command prompt -&amp;gt;&lt;br /&gt;
* mysqlcheck --all-databases --auto-repair -p&amp;#039;&amp;#039;&amp;#039;your_database_password&amp;#039;&amp;#039;&amp;#039; -u &amp;#039;&amp;#039;&amp;#039;your_databse_user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If that does not work then you will have to make sure that ZoneMinder is stopped then run the following (nothing should be using the database while running this and you will have to adjust for your correct path if it is different). -&amp;gt;&lt;br /&gt;
* myisamchk --silent --force --fast --update-state -O key_buffer=64M -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/*/*.MYI &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;br /&gt;
Any time you update a major version that ZoneMinder depends on, you need to recompile ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
===Zoneminder doesn&amp;#039;t start automatically on boot===&lt;br /&gt;
Check the list for log entries like &amp;quot;zmfix[766]: ERR [Can&amp;#039;t connect to server: Can&amp;#039;t connect to local MySQL server through socket &amp;#039;/var/run/mysqld/mysqld.sock&amp;#039; (2)] &amp;quot;. &lt;br /&gt;
What can happen is that zoneminder is started too quickly after Mysql and tries to contact the database server before it&amp;#039;s ready. Zoneminder gets no answer and aborts. &lt;br /&gt;
August 2010 - Ubuntu upgrades seem to be leaving several systems in this state. One way around this is to add a delay to the zoneminder startup script allowing Mysql to finish starting. &lt;br /&gt;
&amp;quot;Simply adding &amp;#039;sleep 15&amp;#039; in the line above &amp;#039;zmfix -a&amp;#039; in the /etc/init.d/zoneminder file fixed my ZoneMinder startup problems!&amp;quot; - credit to Pada.&lt;br /&gt;
&lt;br /&gt;
=== Remote Path setup for Panasonic and other Camera ===&lt;br /&gt;
On adding or editing the source you can select the preset link for the parameters for the specified camera .  In version 1.23.3  presets for BTTV,Axis,Panasonic,GadSpot,VEO, and BlueNet are available . Selecting the presets  ZM fills up the required value for the remote path variable&lt;br /&gt;
&lt;br /&gt;
=== Why do I get repeated/ mixed/unstable/ blank monitors on bt878-like cards (a.k.a. PICO 2000) ===&lt;br /&gt;
&lt;br /&gt;
Please have a check at [[Pico2000]];&lt;br /&gt;
&lt;br /&gt;
===What causes &amp;quot;Invalid JPEG file structure: two SOI markers&amp;quot; from zmc (1.24.x)===&lt;br /&gt;
&lt;br /&gt;
Some settings that used to be global only are now per camera.  On the Monitor Source tab, if you are using Remote Protocol  &amp;quot;HTTP&amp;quot; and Remote Method &amp;quot;Simple&amp;quot;, try changing Remote Method to &amp;quot;Regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPL licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circuumstances.&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Logitech_Webcam_Pro_9000&amp;diff=3855</id>
		<title>Logitech Webcam Pro 9000</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Logitech_Webcam_Pro_9000&amp;diff=3855"/>
		<updated>2010-08-19T14:44:59Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some initial clues toward making a Logitech Webcam Pro 9000&lt;br /&gt;
camera co-operate with Zoneminder.   On the Zoneminder console:&lt;br /&gt;
  http://localhost/zm/index.php&lt;br /&gt;
when one selects the &amp;quot;Add New Monitor&amp;quot; command button, some appropriate&lt;br /&gt;
values may resemble:&lt;br /&gt;
&lt;br /&gt;
 General tab&lt;br /&gt;
  Name  Whose_webcam&lt;br /&gt;
  Source Type  Local&lt;br /&gt;
   :&lt;br /&gt;
 Source tab&lt;br /&gt;
  Device Path  /dev/video0&lt;br /&gt;
  Capture Method  Video For Linux version 2&lt;br /&gt;
  Device Channel 0&lt;br /&gt;
  Device Format  PAL B&lt;br /&gt;
  Capture Palette  YUYV&lt;br /&gt;
  Capture Width (pixels)  1600&lt;br /&gt;
  Capture Height (pixels)  1200&lt;br /&gt;
&lt;br /&gt;
One clue for the correct value to supply for the Device Path is to scan (as the root user) through the entries in the /dev directory for an entry created at the time the webcam was first connected to this computer system.&lt;br /&gt;
&lt;br /&gt;
  /dev:&lt;br /&gt;
  crw-rw----+  1 root video    81,   0 Aug 16 19:20 video0&lt;br /&gt;
&lt;br /&gt;
If Zoneminder drops FATAL error messages in e.g. /var/log/messages such as:&lt;br /&gt;
&lt;br /&gt;
  zmc ... [Failed to stat video device /dev/video: No such file or directory]&lt;br /&gt;
&lt;br /&gt;
the guess for the Device Path was incorrect or entered with a typographical error.&lt;br /&gt;
&lt;br /&gt;
More clues for the correct values to supply for the Device Format and Capture Palette may be found using the zmu utility program which is included with your Zoneminder installation:&lt;br /&gt;
&lt;br /&gt;
 [root@who ~]# zmu -d /dev/video0 --query&lt;br /&gt;
 error22&lt;br /&gt;
 [root@who ~]# zmu -d /dev/video0 -V2 --query &lt;br /&gt;
 error22&lt;br /&gt;
 [root@who ~]# zmu -d /dev/video0 -V1 --query&lt;br /&gt;
 d:/dev/video0|N:UVC Camera   (046d:0809)|T:1|nC:1|nA:0|mxW:1600|mxH:1200|mnW:48|mnH:32|X:0|Y:0|W:640|H:480|P:8|D:16|B:32896|h:0|Cl:7196|Cn:8224|w:0|n0:Camera 1|C0:0|Fl0:0|T0:2|F0:0&lt;br /&gt;
 [root@who ~]# zmu -d /dev/video0 --verbose -V1 --query&lt;br /&gt;
 Video Device: /dev/video0&lt;br /&gt;
 Video Capabilities&lt;br /&gt;
   Name: UVC Camera (046d:0809)&lt;br /&gt;
   Type: 1&lt;br /&gt;
     Can capture&lt;br /&gt;
   Video Channels: 1&lt;br /&gt;
   Audio Channels: 0&lt;br /&gt;
   Maximum Width: 1600&lt;br /&gt;
   Maximum Height: 1200&lt;br /&gt;
   Minimum Width: 48&lt;br /&gt;
   Minimum Height: 32 &lt;br /&gt;
 Window Attributes&lt;br /&gt;
   X Offset: 0&lt;br /&gt;
   Y Offset: 0&lt;br /&gt;
   Width: 640&lt;br /&gt;
   Height: 480&lt;br /&gt;
 Picture Attributes&lt;br /&gt;
   Palette: 8 - YUYV&lt;br /&gt;
   Colour Depth: 16&lt;br /&gt;
   Brightness: 32896&lt;br /&gt;
   Hue: 0&lt;br /&gt;
   Colour :7196&lt;br /&gt;
   Contrast: 8224&lt;br /&gt;
   Whiteness: 0&lt;br /&gt;
 Channel 0 Attributes&lt;br /&gt;
   Name: Camera 1&lt;br /&gt;
   Channel: 0&lt;br /&gt;
   Flags: 0&lt;br /&gt;
   Type: 2 - Camera&lt;br /&gt;
   Format: 0 - PAL&lt;br /&gt;
 [root@who ~]# &lt;br /&gt;
&lt;br /&gt;
I have not found a combination of values using Capture Method &amp;quot;Video for Linux version 1&amp;quot; that works with this camera.  Some forum postings point toward imperfections in zmu, and other Logitech cameras that need Device Format &amp;quot;PAL B&amp;quot;, which is only available under &amp;quot;Video for Linux version 2&amp;quot;.  Thus far, I have only used one value for the Capture Width (1600) and the Capture Height (1200), but there are many other image sizes that this camera may supply.  See: &lt;br /&gt;
&lt;br /&gt;
  http://www.quickcamteam.net/devices/logitech_uvc_frame_format_list.pdf&lt;br /&gt;
&lt;br /&gt;
pages 5 and 6 (of 19) lists the ~18 frame formats for motion JPEG and the ~18 frame formats for still images.  (No, I do not understand why each resolution and frame rate is listed twice in each list.)&lt;br /&gt;
&lt;br /&gt;
If you are wishing to use a higher-resolution choice from this list, or you are seeing ERROR messages such as:&lt;br /&gt;
&lt;br /&gt;
  zm ... [Can&amp;#039;t shmget, probably not enough shared memory space free: Invalid argument]&lt;br /&gt;
&lt;br /&gt;
in the logs, you want to read and implement the instructions near:&lt;br /&gt;
&lt;br /&gt;
  http://www.zoneminder.com/wiki/index.php/FAQ#What_does_a_.27Can.27t_shmget:_Invalid_argument.27_error_in_my_logs_mean.3F_and_my_cameras_won.27t_display_video_at_higher_resolutions&lt;br /&gt;
&lt;br /&gt;
If you see FATAL messages such as:&lt;br /&gt;
&lt;br /&gt;
  zmc... [Failed to setup memory: Invalid argument]&lt;br /&gt;
&lt;br /&gt;
you did not select the correct Device Format.&lt;br /&gt;
&lt;br /&gt;
Following through this chain of references:&lt;br /&gt;
&lt;br /&gt;
  http://www.quickcamteam.net/documentation/reference&lt;br /&gt;
  http://www.usb.org/developers/devclass_docs&lt;br /&gt;
  http://www.usb.org/developers/devclass_docs/USB_Video_Class_1_1.zip&lt;br /&gt;
&lt;br /&gt;
can lead one to documentation for &amp;quot;USB Video Class 1.1&amp;quot;, the current version of the UVC specification.&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=3854</id>
		<title>Hardware Compatibility List</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Hardware_Compatibility_List&amp;diff=3854"/>
		<updated>2010-08-19T14:28:46Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: /* USB Cameras */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Zoneminder will work with almost any capture card that is supported by the linux kernel.  You may find additional details about supported hardware in the [http://www.zoneminder.com/forums/viewforum.php?f=10  Hardware Compatibility List] part of the forums.  Also if you find something in the forums that is  missing from the wiki ADD IT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Capture Cards ==&lt;br /&gt;
&lt;br /&gt;
[[Anykeeper]] &lt;br /&gt;
&lt;br /&gt;
[[Avermedia]]&lt;br /&gt;
&lt;br /&gt;
[[Camsecure PCI Express video capture]]&lt;br /&gt;
&lt;br /&gt;
[[Digiflower]]&lt;br /&gt;
&lt;br /&gt;
[[Grandtec Grand X Guard]] [http://www.grandtec.com/products/surveillance/xguard.html]&lt;br /&gt;
&lt;br /&gt;
[[Hauppauge]]&lt;br /&gt;
&lt;br /&gt;
[[Ituner Spectra 8]] [http://www.ituner.com/spectra.htm]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 4400r]]&lt;br /&gt;
&lt;br /&gt;
[[Kodicom 8800]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Leadtek WinFast VC 100 - the cheapest bt878 model with no tuner on it, just Com/Svideo in.&lt;br /&gt;
&lt;br /&gt;
[[Linux Media Labs LMLBT44]] [http://www.linuxmedialabs.com]&lt;br /&gt;
&lt;br /&gt;
[[Osprey 100]]&lt;br /&gt;
&lt;br /&gt;
[[Provideo PV- series (Bluecherry)]] [http://store.bluecherry.net/SearchResults.asp?Cat=63&amp;amp;Click=51]&lt;br /&gt;
&lt;br /&gt;
[[TView 95/99]]&lt;br /&gt;
&lt;br /&gt;
[[Videocards with Philips saa7134 chipset]]&lt;br /&gt;
&lt;br /&gt;
[[WinFast TV2000 XP]]&lt;br /&gt;
&lt;br /&gt;
== bt8x8 Cards ==&lt;br /&gt;
A note on the bt8x8-based TV-tuner cards: these usually have beside the tuner input, also a Composite and an S-Video input. You can hook up 2 analog cameras to these, and access from ZoneMinder both of them as individual cameras, at max 15Fps. You don&amp;#039;t need two separate TV cards for two cameras!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Pico2000]] - 4 port card, one chip bt878, around 2 fps when using all channels&lt;br /&gt;
&lt;br /&gt;
[[Bt878_4chip_8inputs]] -4 chips bt878, 8 inputs, around 5 fps when using 2 inputs per chip&lt;br /&gt;
&lt;br /&gt;
[[:Image:Karta.jpg| bt878 8 chip 8 input]] - options bttv card=77,77,77,77,77,77,77,77.  The card is supplied with D-sub to 8 BNC connector with the connectors labelled VID1, AUD1, VID2, AUD3 etc. The /dev/video device numbering may be backwards such that /dev/video7 is VID1, /dev/video6 -&amp;gt; VID2, 5 -&amp;gt; 3, 4 -&amp;gt; 4, /dev/video3 -&amp;gt; AUD1 etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Most other BTTV (bt878, bt848) cards, see /usr/src/linux/Documentation/video4linux/bttv/CARDLIST on your system for a list of some of them.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Analog Cameras ==&lt;br /&gt;
&lt;br /&gt;
Any regular composite or S-video camera connected via a supported capture card.  Some analog cameras feature camera control - ZM supports several of these camera&amp;#039;s Pan/Tilt/Zoom functions via serial port control, as well as camera Presets, Focus, Iris, etc.&lt;br /&gt;
*[[PicturetelControlScript | PictureTel PTZ2N]].&lt;br /&gt;
&lt;br /&gt;
== Network Cameras ==&lt;br /&gt;
For Network Cams to work they need to be able to stream MJPEG without the requirement of activex controls. If you see the requirement for the camera calls for IE then there is a good chance it may not work. The other option is to grab JPEG images if the camera supports that option which will work but at a lower frame rate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any network camera that allows access to single JPEG image grabs or &amp;#039;&amp;#039;&amp;#039;some but not all&amp;#039;&amp;#039;&amp;#039; multi-part JPEG feeds.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full Compatibility &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some &lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[BSTI]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] some&lt;br /&gt;
&lt;br /&gt;
* [[Cisco]] WVC80N&lt;br /&gt;
&lt;br /&gt;
* [[D-Link]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Foscam]] (FI8908W, FI8904W, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Gadspot]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Level One]] some&lt;br /&gt;
&lt;br /&gt;
* [[Linksys]] WVC-210 / WVC2300 / PVC2300 / WVC54GC&lt;br /&gt;
&lt;br /&gt;
* [[Maygion]] (IP-603, IP-604, possibly others)&lt;br /&gt;
&lt;br /&gt;
* [[Rimax]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Sony]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Trendnet]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Y-Cam]] Most&lt;br /&gt;
&lt;br /&gt;
* [[Zavio]] Some&lt;br /&gt;
&lt;br /&gt;
* [[Iguard]] IP390E&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Remote systems, themselves running zoneminder, can be accessed as cameras using the Remote Path of &amp;#039;&amp;#039;&amp;#039;/cgi-bin/nph-zms?mode=single&amp;amp;monitor=1&amp;amp;scale=100&amp;amp;maxfps=5&amp;amp;buffer=1000&amp;#039;&amp;#039;&amp;#039; - where the monitor number is the correct camera on the remote system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single Jpeg Only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Airlink 101]] some&lt;br /&gt;
&lt;br /&gt;
* [[JVC]] some&lt;br /&gt;
&lt;br /&gt;
* [[Panasonic]] some&lt;br /&gt;
&lt;br /&gt;
* PLANET some&lt;br /&gt;
&lt;br /&gt;
*[[Toshiba]] some&lt;br /&gt;
&lt;br /&gt;
* [[Veo Observer IP NetCam]] most&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] All&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mpeg(ver1.24.0 and up)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[ABS_MegaCam]]&lt;br /&gt;
&lt;br /&gt;
* [[Axis]] All&lt;br /&gt;
&lt;br /&gt;
* [[ ACTi]] All&lt;br /&gt;
&lt;br /&gt;
*[[Vivotek]] Most&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with modifications&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*[[Aviosys]] some&lt;br /&gt;
&lt;br /&gt;
* [[Mobotix]]  all  &lt;br /&gt;
&lt;br /&gt;
*[[Edimax]] some&lt;br /&gt;
&lt;br /&gt;
* [[Conceptronic]]  some&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Compatible with problems&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
* [[Grandtec]] [[Grandtec_WLAN_Camera|WLAN Camera]] WiFi or III - acceptable indoor quality, no infrared-filter (better nightvision) cheap!&lt;br /&gt;
&lt;br /&gt;
* [[Intellinet]]  IPCamera with the new firmware.&lt;br /&gt;
&lt;br /&gt;
* Old Intellinet IPCamera (model MWNC-100) with this (http://www.zoneminder.com/forums/viewtopic.php?t=7500) protocol adapter. &lt;br /&gt;
&lt;br /&gt;
* OvisLink AirLive WL-5400CAM&lt;br /&gt;
&lt;br /&gt;
== Network Digitizers ==&lt;br /&gt;
&lt;br /&gt;
Like Network Cameras, these devices produce a video stream - but they accept an analog video input from a camera or other video source.&lt;br /&gt;
&lt;br /&gt;
*The [[IP9100 | Aviosys IP9100, Models A, B and Plus]] has four analog video inputs.  It produces a ZM compatible video stream from one of the inputs, which is selectable via an HTTP GET command.  There might even be a control script for ZM that lets you select the active video input using &amp;#039;&amp;#039;ZM&amp;#039;s Camera Control Presets!&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
With the yoics Aviosys 9100 firmware at http://www.yoics.com/?p=28, ZoneMinder can directly access all four ports via /usr/yoicsX.jpg as the remote host path, where X is 0 - 3.&lt;br /&gt;
&lt;br /&gt;
== USB Cameras ==&lt;br /&gt;
&lt;br /&gt;
*Just Zoom USB cam&lt;br /&gt;
&lt;br /&gt;
*Creative Webcam Pro, Webcam 3, LIVE! Cam OPTIA PRO (V4L2, Chan 0, PAL, YUYV)&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Most&amp;#039;&amp;#039; UVCvideo cameras, including: [[Logitech QuickCam Express]], QuickCam Pro 3000, QuickCam Communicate STX/Deluxe, and [[Logitech Webcam Pro 9000]]&lt;br /&gt;
&lt;br /&gt;
*Logitech Quickcam Orbit/Sphere (experimental basic pan/tilt control has also published for testing and hacking [http://www.zoneminder.com/forums/viewtopic.php?t=9788])&lt;br /&gt;
&lt;br /&gt;
*[[Philips]] &lt;br /&gt;
&lt;br /&gt;
*Any OV511 based USB camera [http://alpha.dyndns.org/ov511/cameras.html]&lt;br /&gt;
&lt;br /&gt;
*Any CPIA based USB camera [http://webcam.sourceforge.net]&lt;br /&gt;
&lt;br /&gt;
*[[LabTec WebCam Pro]]&lt;br /&gt;
&lt;br /&gt;
*Confirmed basic functionality with Microsoft Lifecam VX 5000 using UVC Streaming method&lt;br /&gt;
&lt;br /&gt;
Note that most USB cameras that can use Video4Linux/V4L2, and so can be used by ZoneMinder.  Some have older chipsets and can be hard to find new.&lt;br /&gt;
&lt;br /&gt;
Note that PWC drivers are not included in the kernel. Some distribution&amp;#039;s add them in and other may not. Here are some relevant links:&lt;br /&gt;
* [http://www.smcc.demon.nl/webcam/ Old Maintainer]&lt;br /&gt;
* [http://www.saillard.org/linux/pwc/ Current PWC Maintainer]&lt;br /&gt;
&lt;br /&gt;
== X10 Devices ==&lt;br /&gt;
The only device that really needs to be compatable with ZM is the Transceiver, all other x10 devices comunicate through that device.&lt;br /&gt;
*[[CM11]] Bi-Directional Transceiver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other X10 notes:&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=6423&amp;amp;highlight=x10 Topic 6423]&lt;br /&gt;
&lt;br /&gt;
[http://www.zoneminder.com/forums/viewtopic.php?t=7082&amp;amp;highlight=x10 Topic 7082]&lt;br /&gt;
&lt;br /&gt;
== All other hardware as supported by Linux ==&lt;br /&gt;
To find out if your hardware is supported, check the HCL at [http://www.linuxquestions.org/hcl/ linuxquestions.org]&lt;br /&gt;
&lt;br /&gt;
[http://kmuto.jp/debian/hcl/ Debian]&lt;br /&gt;
&lt;br /&gt;
[http://fedoraproject.org/wiki/HCL Fedora]  [http://fedora-linux.nl/wiki/index.php/HCL Fedora Unofficial HCL]&lt;br /&gt;
&lt;br /&gt;
[http://www.mandriva.com/hardware Mandriva]&lt;br /&gt;
&lt;br /&gt;
[https://hardware.redhat.com/index.cgi RedHat]&lt;br /&gt;
&lt;br /&gt;
[http://en.opensuse.org/Hardware Suse]&lt;br /&gt;
&lt;br /&gt;
[http://doc.gwos.org/index.php/HCL Ubuntu]&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=3853</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=3853"/>
		<updated>2010-08-16T21:56:51Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: /* Why does ZM stop recording once I have 32000 events for my monitor? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However &amp;#039;&amp;#039;&amp;#039;by default it is not enabled for event deletion&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The filter is called &amp;#039;&amp;#039;PurgeWhenFull&amp;#039;&amp;#039; 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.&lt;br /&gt;
&lt;br /&gt;
This will bring up an event listing and a filter window.&lt;br /&gt;
&lt;br /&gt;
In the filter window there is a drop down select box labeled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter.&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes.&lt;br /&gt;
&lt;br /&gt;
Check the &amp;lt;tt&amp;gt;zmfilter.log&amp;lt;/tt&amp;gt; file to make sure it is running as sometimes missing perl modules mean that it never runs but people don&amp;#039;t always realize.&lt;br /&gt;
&lt;br /&gt;
There are two methods for ZM to remove files when they are deleted that can be found in Options under the System tab ZM_OPT_FAST_DELETE and ZM_RUN_AUDIT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_OPT_FAST_DELETE:&lt;br /&gt;
&lt;br /&gt;
Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if your are trying to do a lot of events at once. It is recommended that you set this option which means that the browser client only deletes the key entries in the events table, which means the events will no longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_RUN_AUDIT:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the file system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. This is recommended for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_AUDIT_CHECK_INTERVAL:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the files system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean? and my cameras won&amp;#039;t display video at higher resolutions.===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;384x288 capture resolution, that makes: 110 592 pixels&lt;br /&gt;
in 24 bit color that&amp;#039;s x24 = 2 654 208 bits per frame &lt;br /&gt;
by 80 frames ring buffer x80 = 212 336 640 bits per camera &lt;br /&gt;
by 4 cameras x4 = 849 346 560 bits. &lt;br /&gt;
Plus 10% overhead = 934 281 216 bits &lt;br /&gt;
That&amp;#039;s 116 785 152 bytes, and &lt;br /&gt;
= 114 048 kB, respectively 111.38 MB. &lt;br /&gt;
If my shared memory is set to 134 217 728, which is exactly 128MB, &lt;br /&gt;
that means I shouldn&amp;#039;t have any problem.&lt;br /&gt;
(Note that 1 byte = 8 bits and 1kbyte = 1024bytes, 1MB = 1024 kB)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html .  &lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmall&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be sure to restart ZoneMinder after this.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. &lt;br /&gt;
&lt;br /&gt;
To change them permanently you will need to edit &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; and add the following lines (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load these settings in the sysctl.conf file type:&lt;br /&gt;
&amp;lt;pre&amp;gt;sysctl -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your shared memory settings type:&lt;br /&gt;
&amp;lt;pre&amp;gt;ipcs -l&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full colour, increase 134217728 to, for example, 268424446&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
Versions 1.24.x of ZoneMinder also allows you to use an alternate method of shared memory allocation, [http://en.wikipedia.org/wiki/Mmap mapped memory]. This requires less configuration and can be simpler to use. Mapped memory allows you to use a special type of file as the placeholder for your memory and this file is &amp;#039;mapped&amp;#039; into memory space for easy and fast access.&lt;br /&gt;
&lt;br /&gt;
To enable mapped memory in ZoneMinder you need add add the --enable--mmap=yes switch to your configure line. By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options-&amp;gt;paths-&amp;gt;PATH_MAP. It uses a filesystem type called [http://en.wikipedia.org/wiki/Tmpfs tmpfs]. If you type &amp;#039;df&amp;#039; you should see this area and the size of memory it currently allows. It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.&amp;lt;monitor id&amp;gt; in the mapped memory filesystem.&lt;br /&gt;
&lt;br /&gt;
Mapped memory is subject to the same limitations in terms of total memory as using more traditional shared memory but does not require any configuration per allocation or chunk. In future versions of ZoneMinder this will be the default shared memory storage method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;AlternateSharedMemory&amp;quot; style=&amp;quot;width:80%; border:2px solid #8a8588; background:#faf5ff; vertical-align:top; margin-top: 6px; padding: 4px;&amp;quot;&amp;gt;&lt;br /&gt;
Another good article about shared memory settings http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm . &lt;br /&gt;
It made a statement that conflicted with those in the Redhat article but they fixed a [http://www.zoneminder.com/forums/viewtopic.php?t=9692 long standing memory issue on FC6], so give them a try. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The essential difference was that the kernel.shmall setting is NOT in a direct memory setting in KB but in pages of memory. it is Max Pages of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&amp;#039; If you want to allocate a maximum memory setting to 8GB you have to convert it to the number of pages (or segments).&lt;br /&gt;
with a page size of 4096.&lt;br /&gt;
*kernel.shmall=8000x1024x1024/4096&lt;br /&gt;
**kernel.shmall=2048000&lt;br /&gt;
NOT 8388608000 as would be suggested in the RedHat article linked above.&lt;br /&gt;
&lt;br /&gt;
shmmax is the max amount to allocate in one request - &lt;br /&gt;
this is is an actual memory size (as opposed to pages) set to 4GB&lt;br /&gt;
*kernel.shmmax = 4194304000&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&amp;lt;pre&amp;gt;kernel.shmall=2048000&lt;br /&gt;
kernel.shmmax = 4194304000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As above, reload your sysctl.conf with &amp;lt;tt&amp;gt;sysctl -p&amp;lt;/tt&amp;gt; and check that the settings are correct with &amp;lt;tt&amp;gt;ipcs -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t ZoneMinder capture images (either at all or just particularly fast) when I can see my camera just fine in xawtv or similar?===&lt;br /&gt;
&lt;br /&gt;
With capture cards ZoneMinder will pull images as fast as it possibly can unless limited by configuration. ZoneMinder (and any similar application) uses the frame grabber interface to copy frames from video memory into user memory. This takes some time, plus if you have several inputs sharing one capture chip it has to switch between inputs between captures which further slows things down.&lt;br /&gt;
&lt;br /&gt;
On average a card that can capture at 25fps per chip PAL for one input will do maybe 6-10fps for two, 1-4fps for three and 1-2 for four. For a 30fps NTSC chip the figures will be correspondingly higher. However sometimes it is necessary to slow down capture even further as after an input switch it may take a short while for the new image to settle before it can be captured without corruption.&lt;br /&gt;
&lt;br /&gt;
When using xawtv etc to view the stream you are not looking at an image captured using the frame grabber but the card&amp;#039;s video memory mapped onto your screen. This requires no capture or processing unless you do an explicit capture via the J or ctrl-J keys for instance. Some cards or drivers do not support the frame grabber interface at all so may not work with ZoneMinder even though you can view the stream in xawtv. If you can grab a still using the grab functionality of xawtv then in general your card will work with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t I see streamed images when I can see stills in the Zone window etc?===&lt;br /&gt;
&lt;br /&gt;
This issue is normally down to one of two causes&lt;br /&gt;
&lt;br /&gt;
1) You are using Internet Explorer and are trying to view multi-part jpeg streams. IE does not support these streams directly, unlike most other browsers. You will need to install Cambozola or another multi-part jpeg aware pluging to view them. To do this you will need to obtain the applet from the Downloads page and install the cambozola.jar file in the same directly as the ZoneMinder php files. Then find the ZoneMinder Options-&amp;gt;Images page and enable ZM_OPT_CAMBOZOLA and enter the web path to the .jar file in ZM_PATH_CAMBOZOLA. This will ordinarily just be cambozola.jar. Provided ZM_CAN_STREAM is set to auto and ZM_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod your cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&lt;br /&gt;
2) The other common cause for being unable to view streams is that you have installed the ZoneMinder cgi binaries (zms and nph-zms) in a different directory than your web server is expecting. Make sure that the --with-cgidir option you use to the ZoneMinder configure script is the same as the CGI directory configure for your web server. If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like &amp;lt;pre&amp;gt;ScriptAlias /cgi-bin/ &amp;quot;/var/www/cgi-bin/&amp;quot;&amp;lt;/pre&amp;gt; where the last directory in the quotes is the one you have specified. If not then change one or the other to match. Be warned that configuring apache can be complex so changing the one passed to the ZoneMinder configure (and then rebuilding and reinstalling) is recommended in the first instance. If you change the apache config you will need to restart apache for the changes to take effect. If you still cannot see stream reliably then try changing Options-&amp;gt;Paths-&amp;gt;ZM_PATH_ZMS to just use zms if nph-zms is specified, or vice versa. Also check in your apache error logs.&lt;br /&gt;
&lt;br /&gt;
===I have several monitors configured but when I load the Montage view in FireFox why can I only see two? or, Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittent connections for other information such as statuses.&lt;br /&gt;
&lt;br /&gt;
You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras.  Certain FireFox extensions such as FasterFox may also help to achieve the same result.&lt;br /&gt;
&lt;br /&gt;
To resolve this situation, follow the instructions below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Enter about:config in the address bar&lt;br /&gt;
&lt;br /&gt;
scroll down to&lt;br /&gt;
browser.cache.check_doc_frequency 3&lt;br /&gt;
change the 3 to a 1&lt;br /&gt;
&lt;br /&gt;
browser.cache.disk.enable True -&amp;gt; False&lt;br /&gt;
network.http.max-connections-per-server -&amp;gt; put a value of 100&lt;br /&gt;
network.http.max-persistent-connections-per-proxy -&amp;gt; 100 again&lt;br /&gt;
network.http.max-persistent-connections-per-server -&amp;gt; 100 again&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of experimentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
# Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
# Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway. This is especially true for analog cameras/cards as image height over 320 (NTSC) or 352 PAL) are invariably interlaced.&lt;br /&gt;
# Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frame rates. You can still configure ZM to ignore these limits and capture as fast as possible when motion is detected.&lt;br /&gt;
# Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
# Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If your camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
# Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space / Bandwidth do I need for ZM?===&lt;br /&gt;
Please see [http://www.jpwilson.eu/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
Or go to [http://www.axis.com/products/video/design_tool/index.htm this link] for the Axis bandwidth calculator. Although this is aimed at Axis cameras it still produces valid results for any kind of IP camera.&lt;br /&gt;
&lt;br /&gt;
As a quick guide I have 4 cameras at 320x240 storing 1 fps except during alarm events. After 1 week 60GB of space in the volume where the events are stored (/var/www/html/zm) has been used.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like:&lt;br /&gt;
&lt;br /&gt;
   Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068&lt;br /&gt;
   comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t&lt;br /&gt;
   tcontext=user_u:object_r:initrc_var_run_t tclass=file&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., &amp;lt;tt&amp;gt;/etc/selinux/config&amp;lt;/tt&amp;gt;) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* You may also consider to use the web server security, for example, htaccess files under Apache scope; You may even use this as an additional/redundant security on top of Zoneminders built-in security features;&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use. One directory cannot hold more than 32k approx  files.&lt;br /&gt;
&lt;br /&gt;
Version of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit this is also somewhat  faster. However it is relatively and although few issues have been reported thus far it should be considered in beta for now. Also, it is currently not possible to migrate saved events between the different storage formats so is only suitable for new installations or if you do not mind losing saved events.&lt;br /&gt;
&lt;br /&gt;
So if you do not want to use the deeper filesystem option&lt;br /&gt;
(Options-&amp;gt;Paths-&amp;gt;ZM_USE_DEEP_STORAGE), for now you have to reduce the&lt;br /&gt;
number of events or store your images (e.g. /var/lib/zoneminder) on a&lt;br /&gt;
partition that uses a different filesystem such as ext4 or reiserfs.&lt;br /&gt;
&lt;br /&gt;
You can read about the lack of a limit in the number of&lt;br /&gt;
sub-directories in the ext4 filesystem at:&lt;br /&gt;
  http://kernelnewbies.org/Ext4&lt;br /&gt;
and see what tools may assist in your use of this filesystem in:&lt;br /&gt;
  http://ext4.wiki.kernel.org/index.php/Ext4_Howto&lt;br /&gt;
Note that while GParted 0.5.2 recognizes ext4 partitions, at least in&lt;br /&gt;
some circumstances it does not succeed in formatting a partition for&lt;br /&gt;
the ext4 filesystem.  Also, if you search for ext3 or reiserfs on the&lt;br /&gt;
forums you will find various threads on this issue with guidance on&lt;br /&gt;
how to convert.&lt;br /&gt;
&lt;br /&gt;
== Managing system load &amp;#039;&amp;#039;(with IP Cameras in mind)&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
=== How do I know if my computer is overloaded? ===&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
=== My load is too high, how can I reduce it? ===&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
=== What about disks and bandwidth? ===&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
===I cannot build ZoneMinder and am getting lots of undefined C++ template errors===&lt;br /&gt;
&lt;br /&gt;
This is almost certainly due to the &amp;#039;ccache&amp;#039; package which attempts to speed up compilation by caching compiled objects. Unfortunately one of the side effects is that it breaks the GNU g++ template resolution method that ZoneMinder uses in building by prevent files getting recompiled. The simplest way around this is to remove the ccache package using your distros package manager.&lt;br /&gt;
&lt;br /&gt;
=== How do I build for X10 support? ===&lt;br /&gt;
&lt;br /&gt;
You do not need to rebuild ZM for X10 support. You will need to install the perl module and switch on X10 in the options, then restart. Installing the perl module is covered in the README amongst other places but in summary, do:&lt;br /&gt;
&lt;br /&gt;
 perl -MCPAN -eshell&lt;br /&gt;
 install X10::ActiveHome&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
== Extending ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How can I get ZM to do different things at different times of day or week? ===&lt;br /&gt;
If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder &amp;#039;run states&amp;#039;. A run state is a particular configuration of monitor functions that you want to use at any time.&lt;br /&gt;
&lt;br /&gt;
To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say &amp;#039;Running&amp;#039; or &amp;#039;Stopped&amp;#039;. You will then be able to save the current state and give it a name, &amp;#039;Daytime&amp;#039; for example. Now configure your monitors how you would want them during other times of day and save that, for instance as &amp;#039;Nighttime&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command &amp;#039;&amp;#039;zmpkg.pl &amp;lt;run state&amp;gt;&amp;#039;&amp;#039;, for example &amp;#039;&amp;#039;zmpkg.pl Daytime&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The final step you need to take, is scheduling the time the changes take effect. For this you can use [http://en.wikipedia.org/wiki/Cron cron]. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,&lt;br /&gt;
&amp;lt;pre&amp;gt;0 8 * * * /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * /usr/local/bin/zmpkg.pl Nighttime&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Ubuntu 7.04 and possibly others, look in /usr/bin not just /usr/local/bin for the zmpkg.pl file.&lt;br /&gt;
&lt;br /&gt;
Although the example above describes changing states at different times of day, the same principle can equally be applied to days of the week or other more arbitrary periods.&lt;br /&gt;
&lt;br /&gt;
For an alternative method of time controlling ZoneMinder, forum user &amp;#039;voronwe&amp;#039; has created a more interactive calendar style integration. Details of this can be found in this [http://www.zoneminder.com/forums/viewtopic.php?t=6519 forum thread]. If you would like to find out more about this contribution please post on this thread.&lt;br /&gt;
&lt;br /&gt;
=== How can I use ZoneMinder to trigger something else when there is an alarm? ===&lt;br /&gt;
ZoneMinder includes a perl API which means you can create a script to interact with the ZM shared memory data and use it in your own scripts to react to ZM alarms or to trigger ZM to generate new alarms. Full details are in the README or by doing &amp;#039;perdoc ZoneMinder&amp;#039;, &amp;#039;perldoc ZoneMinder::SharedMem&amp;#039; etc.&lt;br /&gt;
Below is an example script that checks all monitors for alarms and when one occurs, prints a message to the screen. You can add in your own code to make this reaction a little more useful.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use ZoneMinder;&lt;br /&gt;
&lt;br /&gt;
$| = 1;&lt;br /&gt;
&lt;br /&gt;
zmDbgInit( &amp;quot;myscript&amp;quot;, level=&amp;gt;0, to_log=&amp;gt;0, to_syslog=&amp;gt;0, to_term=&amp;gt;1 );&lt;br /&gt;
&lt;br /&gt;
my $dbh = DBI-&amp;gt;connect( &amp;quot;DBI:mysql:database=&amp;quot;.ZM_DB_NAME.&amp;quot;;host=&amp;quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );&lt;br /&gt;
&lt;br /&gt;
my $sql = &amp;quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != &amp;#039;None&amp;#039; group by (M.Id)&amp;quot;;&lt;br /&gt;
my $sth = $dbh-&amp;gt;prepare_cached( $sql ) or die( &amp;quot;Can&amp;#039;t prepare &amp;#039;$sql&amp;#039;: &amp;quot;.$dbh-&amp;gt;errstr() );&lt;br /&gt;
&lt;br /&gt;
my $res = $sth-&amp;gt;execute() or die( &amp;quot;Can&amp;#039;t execute &amp;#039;$sql&amp;#039;: &amp;quot;.$sth-&amp;gt;errstr() );&lt;br /&gt;
my @monitors;&lt;br /&gt;
while ( my $monitor = $sth-&amp;gt;fetchrow_hashref() )&lt;br /&gt;
{&lt;br /&gt;
    push( @monitors, $monitor );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while( 1 )&lt;br /&gt;
{&lt;br /&gt;
    foreach my $monitor ( @monitors )&lt;br /&gt;
    {&lt;br /&gt;
        next if ( !zmMemVerify( $monitor ) );&lt;br /&gt;
 &lt;br /&gt;
        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&amp;gt;{LastEventId} ) )&lt;br /&gt;
        {&lt;br /&gt;
            $monitor-&amp;gt;{LastEventId} = $last_event_id;&lt;br /&gt;
            print( &amp;quot;Monitor &amp;quot;.$monitor-&amp;gt;{Name}.&amp;quot; has alarmed\n&amp;quot; );&lt;br /&gt;
            #&lt;br /&gt;
            # Do your stuff here&lt;br /&gt;
            #&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    sleep( 1 );&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder logs for the RPM packages are located in &amp;lt;tt&amp;gt;/var/log/zm&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are &amp;lt;tt&amp;gt;zmdc.log&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;zmpkg.log&amp;lt;/tt&amp;gt; if ZM is not able to start.&lt;br /&gt;
&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&amp;lt;tt&amp;gt;&lt;br /&gt;
*/var/log/messages and/or /var/log/syslog&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log&amp;lt;/tt&amp;gt; (RedHat/Fedora) or &amp;lt;tt&amp;gt;/var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log&amp;lt;/tt&amp;gt; (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the [[tail]] command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
  tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log&lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;). To exit, hit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More verbose logging for the ZoneMinder binaries is available by enabling the debug option from the control panel and will be placed in the path you have configured for the debug logs. Output can be limited to a specific binary as described in the Debug options page under the &amp;quot;?&amp;quot; marks.&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware and/or software?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lspci]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[scanpci]] -v&amp;lt;/tt&amp;gt;  -- Gives you information from your hardware EPROM&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lsusb]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[dmesg]]&amp;lt;/tt&amp;gt; -- Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[v4l-info]]&amp;lt;/tt&amp;gt; -- to see how driver is talking to card. look for unusual values.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[modinfo bttv]]&amp;lt;/tt&amp;gt; -- some bttv driver stats.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[zmu]]  -m 0 -q -v&amp;lt;/tt&amp;gt; -- Returns various information regarding a monitor configuration.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcs]] &amp;lt;/tt&amp;gt;  -- Provides information on the ipc facilities for which the calling process has read acccess.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcrm]] &amp;lt;/tt&amp;gt;  -- The ipcrm command can be used to remove an IPC object from the kernel.&lt;br /&gt;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===Why is it that when monitoring a camera, the top portion of the image is cutoff and appears at the bottom of the image, with a line seperating the top from the bottom?===&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting a 403 access error with my web browser when trying to access http //localhost/zm? ===&lt;br /&gt;
&lt;br /&gt;
The apache web server needs to have the right permissions and configuration to be able to read the Zoneminder files. Check the forums for solution, and edit the apache configuration and change directory permissions to give apache the right to read the Zoneminder files. Depending on your Zoneminder configuration, you would use the zm user and group that Zoneminder was built with, such as wwwuser and www.&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting broken images when trying to view events? ===&lt;br /&gt;
&lt;br /&gt;
Zoneminder and the Apache web server need to have the right permissions. Check this forum topic and similar ones:&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=48754#48754&lt;br /&gt;
&lt;br /&gt;
===Why is the image from my color camera appearing in black and white?===&lt;br /&gt;
This may occur if you have a NTSC analog camera but have configured the source in ZoneMinder as PAL for the Device Format under the source tab.  You may also be mislead because zmu can report the video port as being PAL when the camera is actually NTSC.  Confirm the format of your analog camera by checking it&amp;#039;s technical specifications, possibly found with the packaging it came in, on the manufacturers website, or even on the retail website where you purchased the camera.  Change the Device Format setting to NTSC and set it to the lowest resolution of 320 x 240.  If you have confirmed that the camera itself is NTSC format, but don&amp;#039;t get a picture using the NTSC setting, consider increasing the shared memory &amp;#039;&amp;#039;&amp;#039;kernel.shmall&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;kernel.shmmax&amp;#039;&amp;#039;&amp;#039; settings in /etc/sysctl.conf to a larger value such as 268435456.  This is also the reason you should start with the 320x240 resolution, so as to minimize the potential of memory problems which would interfere with your attempts to troubleshoot the device format issue.  Once you have obtained a picture in the monitor using the NTSC format, then you can experiment with raising the resolution.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see blue screens with a timestamp when monitoring my camera?===&lt;br /&gt;
If this camera is attached to a capture card, then you may have selected the wrong Device Source or Channel when configuring the monitor in the ZoneMinder console.  If you have a capture card with 2 D-sub style inputs(looks like a VGA port) to which you attach a provided splitter that splits off multiple cables, then the splitter may be attached to the wrong port.  For example, PV-149 capture cards have two D-sub style ports labeled as DB1 and DB2, and come packaged with a connector for one of these ports that splits into 4 BNC connecters.  The initial four video ports are available with the splitter attached to DB1.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see black screens with a timestamp when monitoring my camera?===&lt;br /&gt;
In the monitor windows where you see the black screen with a timestamp, select settings and enter the Brightness, Contrast, Hue, and Color settings reported for the device by &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039;.  32768 may be appropriate values to try for these settings.  After saving the settings, select Settings again to confirm they saved successfully.&lt;br /&gt;
&lt;br /&gt;
===I am getting messages about a backtrace in my logs, what do I do?===&lt;br /&gt;
If you are seeing entries in your log like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6 [0x3347230210]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(memset+0xce) [0x334727684e]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x40ee9a]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x419946]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x4213cf]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0x35c) [0x404674]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x334721da44]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0xd1) [0x4043e9]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: INF [Backtrace complete]&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you can help diagnose the problem by running a special command to translate the hex addresses into helpful information. This command is called addr2line and you can type &amp;#039;man addr2line&amp;#039; for more information.&lt;br /&gt;
Basically addr2line takes two sets of parameters, the first is the name of the binary file, and the second is a list of addresses. Both of these pieces of information are displayed in the logs. The filename is the first part after the &amp;#039;Backtrace:&amp;#039; tag, in this case /usr/local/bin/zma, though it may well be different in your case. Some of the lines refer to libraries rather than the zma executable but those can be ignored for now, the important part is noting which ZM binary is involved. The binary file is passed in following the -e flag. The addresses to pass to addr2line are those contained in the &amp;#039;[]&amp;#039; pairs. Again you can ignore those that are on a line that refers to a library but it will not hurt if you include them.&lt;br /&gt;
So in the example above, the command would be &amp;lt;pre&amp;gt;addr2line -e /usr/local/bin/zma 0x40ee9a 0x419946 0x4213cf 0x404674 0x4043e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should then dump out a more symbolic list containing source file names and line numbers, and it is this information which will be helpful if posted to the forums. Sometimes addr2line fails to produce useful output. This is usually because either the problem is so severe that it has corrupted the stack and prevented useful information from being displayed, or that you have either compiled ZM without the -g flag for debug, or you have stripped the binaries of symbol information after installation. This this case you would need to rebuild temporarily with debug enabled for the information to be useful.&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database?===&lt;br /&gt;
There is two ways to go about this. In most cases you can run from the command prompt -&amp;gt;&lt;br /&gt;
* mysqlcheck --all-databases --auto-repair -p&amp;#039;&amp;#039;&amp;#039;your_database_password&amp;#039;&amp;#039;&amp;#039; -u &amp;#039;&amp;#039;&amp;#039;your_databse_user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If that does not work then you will have to make sure that ZoneMinder is stopped then run the following (nothing should be using the database while running this and you will have to adjust for your correct path if it is different). -&amp;gt;&lt;br /&gt;
* myisamchk --silent --force --fast --update-state -O key_buffer=64M -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/*/*.MYI &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;br /&gt;
Any time you update a major version that ZoneMinder depends on, you need to recompile ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remote Path setup for Panasonic and other Camera ===&lt;br /&gt;
On adding or editing the source you can select the preset link for the parameters for the specified camera .  In version 1.23.3  presets for BTTV,Axis,Panasonic,GadSpot,VEO, and BlueNet are available . Selecting the presets  ZM fills up the required value for the remote path variable&lt;br /&gt;
&lt;br /&gt;
=== Why do I get repeated/ mixed/unstable/ blank monitors on bt878-like cards (a.k.a. PICO 2000) ===&lt;br /&gt;
&lt;br /&gt;
Please have a check at [[Pico2000]];&lt;br /&gt;
&lt;br /&gt;
===What causes &amp;quot;Invalid JPEG file structure: two SOI markers&amp;quot; from zmc (1.24.x)===&lt;br /&gt;
&lt;br /&gt;
Some settings that used to be global only are now per camera.  On the Monitor Source tab, if you are using Remote Protocol  &amp;quot;HTTP&amp;quot; and Remote Method &amp;quot;Simple&amp;quot;, try changing Remote Method to &amp;quot;Regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPL licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circuumstances.&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=3852</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=FAQ&amp;diff=3852"/>
		<updated>2010-08-16T21:54:38Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: /* Why does ZM stop recording once I have 32000 events for my monitor? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ZoneMinder Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
This is the new FAQ page. I will be migrating the existing FAQs here as soon as possible. In the meantime the old FAQ page is available [http://www.zoneminder.com/faq.html here].&lt;br /&gt;
&lt;br /&gt;
Feel free to contribute any FAQs that you think are missing.&lt;br /&gt;
&lt;br /&gt;
===How can I stop ZoneMinder filling up my disk?===&lt;br /&gt;
&lt;br /&gt;
Recent versions of ZoneMinder come with a filter you can use for this purpose already included. However &amp;#039;&amp;#039;&amp;#039;by default it is not enabled for event deletion&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The filter is called &amp;#039;&amp;#039;PurgeWhenFull&amp;#039;&amp;#039; 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.&lt;br /&gt;
&lt;br /&gt;
This will bring up an event listing and a filter window.&lt;br /&gt;
&lt;br /&gt;
In the filter window there is a drop down select box labeled &amp;#039;Use Filter&amp;#039;, that lets your select a saved filter. Select &amp;#039;PurgeWhenFull&amp;#039; and it will load that filter.&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
Then click on &amp;#039;Save&amp;#039; which will bring up a new window. Make sure the &amp;#039;Automatically delete&amp;#039; box is checked and press save to save your filter. This will then run in the background to keep your disk within those limits.&lt;br /&gt;
&lt;br /&gt;
After you&amp;#039;ve done that, you changes will automatically be loaded into zmfilter within a few minutes.&lt;br /&gt;
&lt;br /&gt;
Check the &amp;lt;tt&amp;gt;zmfilter.log&amp;lt;/tt&amp;gt; file to make sure it is running as sometimes missing perl modules mean that it never runs but people don&amp;#039;t always realize.&lt;br /&gt;
&lt;br /&gt;
There are two methods for ZM to remove files when they are deleted that can be found in Options under the System tab ZM_OPT_FAST_DELETE and ZM_RUN_AUDIT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_OPT_FAST_DELETE:&lt;br /&gt;
&lt;br /&gt;
Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can take a long time to remove all of this if your are trying to do a lot of events at once. It is recommended that you set this option which means that the browser client only deletes the key entries in the events table, which means the events will no longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_RUN_AUDIT:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the file system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. This option controls whether zmaudit is run in the background and performs these checks and fixes continuously. This is recommended for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ZM_AUDIT_CHECK_INTERVAL:&lt;br /&gt;
&lt;br /&gt;
The zmaudit daemon exists to check that the saved information in the database and on the files system match and are consistent with each other. If an error occurs or if you are using &amp;#039;fast deletes&amp;#039; it may be that database records are deleted but files remain. In this case, and similar, zmaudit will remove redundant information to synchronize the two data stores. The default check interval of 900 seconds (15 minutes) is fine for most systems however if you have a very large number of events the process of scanning the database and file system may take a long time and impact performance. In this case you may prefer to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed.&lt;br /&gt;
&lt;br /&gt;
===What does a &amp;#039;Can&amp;#039;t shmget: Invalid argument&amp;#039; error in my logs mean? and my cameras won&amp;#039;t display video at higher resolutions.===&lt;br /&gt;
&lt;br /&gt;
This error is discussed in the README in the following excerpt:-&lt;br /&gt;
&amp;#039;&amp;#039;...this is caused by an attempt to allocate an amount of shared memory greater than your system can handle. The size it requests is based on the following formula, ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead.&lt;br /&gt;
&lt;br /&gt;
So, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;384x288 capture resolution, that makes: 110 592 pixels&lt;br /&gt;
in 24 bit color that&amp;#039;s x24 = 2 654 208 bits per frame &lt;br /&gt;
by 80 frames ring buffer x80 = 212 336 640 bits per camera &lt;br /&gt;
by 4 cameras x4 = 849 346 560 bits. &lt;br /&gt;
Plus 10% overhead = 934 281 216 bits &lt;br /&gt;
That&amp;#039;s 116 785 152 bytes, and &lt;br /&gt;
= 114 048 kB, respectively 111.38 MB. &lt;br /&gt;
If my shared memory is set to 134 217 728, which is exactly 128MB, &lt;br /&gt;
that means I shouldn&amp;#039;t have any problem.&lt;br /&gt;
(Note that 1 byte = 8 bits and 1kbyte = 1024bytes, 1MB = 1024 kB)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If for instance you were using 24bit 640x480 then this would come to about 92Mb if you are using the default buffer size of 100. If this is too large then you can either reduce the image or buffer sizes or increase the maximum amount of shared memory available. If you are using RedHat then you can get details on how to change these settings at http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html .  &lt;br /&gt;
&lt;br /&gt;
You should be able to use a similar procedure  with other distributions to modify the shared memory pool without kernel recompilations though in some cases this may be necessary. Note, this error also sometimes occurs if you have an old shared memory segment lying around from a previous run that is too small. Use the ipcs and ipcrm system commands to check and remove it if necessary.&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can often find out how much shared memory is available by typing the following :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmall&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the most you can allocate in one go :-&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these values type (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;echo 134217728 &amp;gt;/proc/sys/kernel/shmall&lt;br /&gt;
echo 134217728 &amp;gt;/proc/sys/kernel/shmmax&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Be sure to restart ZoneMinder after this.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
However be aware that sometimes you will only need to change the shmmax value as shmall is often large enough. Also changing these values in this way is only effective until your machine is rebooted. &lt;br /&gt;
&lt;br /&gt;
To change them permanently you will need to edit &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; and add the following lines (for example) :-&lt;br /&gt;
&amp;lt;pre&amp;gt;kernel.shmall = 134217728&lt;br /&gt;
kernel.shmmax = 134217728&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load these settings in the sysctl.conf file type:&lt;br /&gt;
&amp;lt;pre&amp;gt;sysctl -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check your shared memory settings type:&lt;br /&gt;
&amp;lt;pre&amp;gt;ipcs -l&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that with Megapixel cameras like the Axis 207mw becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280x1024 resolution camera in full colour, increase 134217728 to, for example, 268424446&lt;br /&gt;
&lt;br /&gt;
These changes will now also be set the next time your machine is restarted.&lt;br /&gt;
&lt;br /&gt;
Versions 1.24.x of ZoneMinder also allows you to use an alternate method of shared memory allocation, [http://en.wikipedia.org/wiki/Mmap mapped memory]. This requires less configuration and can be simpler to use. Mapped memory allows you to use a special type of file as the placeholder for your memory and this file is &amp;#039;mapped&amp;#039; into memory space for easy and fast access.&lt;br /&gt;
&lt;br /&gt;
To enable mapped memory in ZoneMinder you need add add the --enable--mmap=yes switch to your configure line. By default mapped memory files are created in /dev/shm which on most distributions is a dedicated pseudo-partition containing memory formatted as a filesystem. If your system uses a different path then this can be changed in ZoneMinder in Options-&amp;gt;paths-&amp;gt;PATH_MAP. It uses a filesystem type called [http://en.wikipedia.org/wiki/Tmpfs tmpfs]. If you type &amp;#039;df&amp;#039; you should see this area and the size of memory it currently allows. It is important that you do not use a disk based filesystem for your memory mapped files as this will cause memory access to be extremely slow. ZoneMinder creates files called .zm.mmap.&amp;lt;monitor id&amp;gt; in the mapped memory filesystem.&lt;br /&gt;
&lt;br /&gt;
Mapped memory is subject to the same limitations in terms of total memory as using more traditional shared memory but does not require any configuration per allocation or chunk. In future versions of ZoneMinder this will be the default shared memory storage method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;AlternateSharedMemory&amp;quot; style=&amp;quot;width:80%; border:2px solid #8a8588; background:#faf5ff; vertical-align:top; margin-top: 6px; padding: 4px;&amp;quot;&amp;gt;&lt;br /&gt;
Another good article about shared memory settings http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm . &lt;br /&gt;
It made a statement that conflicted with those in the Redhat article but they fixed a [http://www.zoneminder.com/forums/viewtopic.php?t=9692 long standing memory issue on FC6], so give them a try. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The essential difference was that the kernel.shmall setting is NOT in a direct memory setting in KB but in pages of memory. it is Max Pages of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&amp;#039; If you want to allocate a maximum memory setting to 8GB you have to convert it to the number of pages (or segments).&lt;br /&gt;
with a page size of 4096.&lt;br /&gt;
*kernel.shmall=8000x1024x1024/4096&lt;br /&gt;
**kernel.shmall=2048000&lt;br /&gt;
NOT 8388608000 as would be suggested in the RedHat article linked above.&lt;br /&gt;
&lt;br /&gt;
shmmax is the max amount to allocate in one request - &lt;br /&gt;
this is is an actual memory size (as opposed to pages) set to 4GB&lt;br /&gt;
*kernel.shmmax = 4194304000&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; would have these lines&amp;lt;pre&amp;gt;kernel.shmall=2048000&lt;br /&gt;
kernel.shmmax = 4194304000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As above, reload your sysctl.conf with &amp;lt;tt&amp;gt;sysctl -p&amp;lt;/tt&amp;gt; and check that the settings are correct with &amp;lt;tt&amp;gt;ipcs -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===I have enabled motion detection but it is not always being triggered when things happen in the camera view===&lt;br /&gt;
&lt;br /&gt;
ZoneMinder uses zones to examine images for motion detection. When you create the initial zones you can choose from a number of preset values for sensitivity etc. Whilst these are usually a good starting point they are not always suitable for all situations and you will probably need to tweak the values for your specific circumstances. The meanings of the various settings are described in the documentation (http://www.zoneminder.com/wiki/index.php/Documentation#Defining_Zones) however if you believe you have sensible settings configured then there are two diagnostic approaches you can use.&lt;br /&gt;
&lt;br /&gt;
====Event Statistics====&lt;br /&gt;
The first technique is to use event statistics. Firstly you should ensure they are switched on in Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_EVENT_STATS. This will then cause the raw motion detection statistics for any subsequently generated events to be written to the DB. These can then be accessed by first clicking on the Frames or Alarm Frames values of the event from any event list view in the web gui. Then click on the score value to see the actual values that caused the event. Alternatively the stats can be accessed by clicking on the &amp;#039;Stats&amp;#039; link when viewing any individual frame. The values displayed there correspond with the values that are used in the zone configuration and give you an idea of what &amp;#039;real world&amp;#039; values are being generated. &lt;br /&gt;
&lt;br /&gt;
Note that if you are investigating why events &amp;#039;do not&amp;#039; happen then these will not be saved and so won&amp;#039;t be accessible. The best thing to do in that circumstance is to make your zone more sensitive so that it captures all events (perhap even ones you don&amp;#039;t want) so you can get an idea of what values are being generated and then start to adjust back to less sensitive settings if necessary. You should make sure you test your settings under a variety of lighting conditions (e.g. day and night, sunny or dull) to get the best feel for that works and what doesn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Using statistics will slow your system down to a small degree and use a little extra disk space in the DB so once you are happy you can switch them off again. However it is perfectly feasible to keep them permanently on if your system is able to cope which will allow you to review your setting periodically.&lt;br /&gt;
&lt;br /&gt;
====Diagnostic Images====&lt;br /&gt;
The second approach is to use diagnostic images which are saved copies of the intermediate images that ZM uses when determining motion detection. These are switched on and off using Options-&amp;gt;Debug-&amp;gt;ZM_RECORD_DIAG_IMAGES.&lt;br /&gt;
&lt;br /&gt;
There are two kinds of diagnostic images which are and are written (and continuously overwritten) to the top level monitor event directory. If an event occurs then the files are additionally copied to the event directory and renamed with the appropriate frame number as a prefix.&lt;br /&gt;
&lt;br /&gt;
The first set are produced by the monitor on the image as a whole. The diag-r.jpg image is the current reference image against which all individual frames are compared and the diag-d.jpg image is the delta image highlighting the difference between the reference image and the last analysed image. In this images identicial pixels will be black and the more different a pixel is the whiter it will be. Viewing this image and determining the colour of the pixels is a good way of getting a feel for the pixel differences you might expect (often more than you think).&lt;br /&gt;
&lt;br /&gt;
The second set of diag images are labelled as diag-&amp;lt;zoneid&amp;gt;-&amp;lt;stage&amp;gt;.jpg where zoneid is the id of the zone in question (Smile) and the stage is where in the alarm check process the image is generated from. So if you have several zones you can expect to see multiple files. Also these files are only interested in what is happening in their zone only and will ignore anything else outside of the zone. The stages that each number represents are as follows,&lt;br /&gt;
&lt;br /&gt;
# Alarmed Pixels - This image shows all pixels in the zone that are considered to be alarmed as white pixels and all other pixels as black.&lt;br /&gt;
# Filtered Pixels - This is as stage one except that all pixels removed by the filters are now black. The white pixels represent the pixels that are candidates to generate an event.&lt;br /&gt;
# Raw Blobs - This image contains all alarmed pixels from stage 2 but aggrageted into blobs. Each blob will have a different greyscale value (between 1 and 254) so they can be difficult to spot with the naked eye but using a colour picker or photoshop will make it easier to see what blob is what.&lt;br /&gt;
# Filtered Blobs - This image is as stage 3 but under (or over) sized blobs have been removed. This is the final step before determining if an event has occurred, just prior to the number of blobs being counted. Thus this image forms the basis for determining whether an event is generated and outlining on alarmed images is done from the blobs in this image.&lt;br /&gt;
&lt;br /&gt;
Using the above images you should be able to tell at all stages what ZM is doing to determine if an event should happen or not. They are useful diagnostic tools but as is mentioned elsewhere they will massively slow your system down and take up a great deal more space. You should never leave ZM running for any length of time with diagnostic images on.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t ZoneMinder capture images (either at all or just particularly fast) when I can see my camera just fine in xawtv or similar?===&lt;br /&gt;
&lt;br /&gt;
With capture cards ZoneMinder will pull images as fast as it possibly can unless limited by configuration. ZoneMinder (and any similar application) uses the frame grabber interface to copy frames from video memory into user memory. This takes some time, plus if you have several inputs sharing one capture chip it has to switch between inputs between captures which further slows things down.&lt;br /&gt;
&lt;br /&gt;
On average a card that can capture at 25fps per chip PAL for one input will do maybe 6-10fps for two, 1-4fps for three and 1-2 for four. For a 30fps NTSC chip the figures will be correspondingly higher. However sometimes it is necessary to slow down capture even further as after an input switch it may take a short while for the new image to settle before it can be captured without corruption.&lt;br /&gt;
&lt;br /&gt;
When using xawtv etc to view the stream you are not looking at an image captured using the frame grabber but the card&amp;#039;s video memory mapped onto your screen. This requires no capture or processing unless you do an explicit capture via the J or ctrl-J keys for instance. Some cards or drivers do not support the frame grabber interface at all so may not work with ZoneMinder even though you can view the stream in xawtv. If you can grab a still using the grab functionality of xawtv then in general your card will work with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
===Why can&amp;#039;t I see streamed images when I can see stills in the Zone window etc?===&lt;br /&gt;
&lt;br /&gt;
This issue is normally down to one of two causes&lt;br /&gt;
&lt;br /&gt;
1) You are using Internet Explorer and are trying to view multi-part jpeg streams. IE does not support these streams directly, unlike most other browsers. You will need to install Cambozola or another multi-part jpeg aware pluging to view them. To do this you will need to obtain the applet from the Downloads page and install the cambozola.jar file in the same directly as the ZoneMinder php files. Then find the ZoneMinder Options-&amp;gt;Images page and enable ZM_OPT_CAMBOZOLA and enter the web path to the .jar file in ZM_PATH_CAMBOZOLA. This will ordinarily just be cambozola.jar. Provided ZM_CAN_STREAM is set to auto and ZM_STREAM_METHOD is set to jpeg then Cambozola should be loaded next time you try and view a stream.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: If you find that the Cambozola applet loads in IE but the applet just displays the version # of Cambozola and the author&amp;#039;s name (as opposed to seeing the streaming images), you may need to chmod your cambozola.jar:&lt;br /&gt;
&lt;br /&gt;
  $ sudo chmod 775 cambozola.jar&lt;br /&gt;
&lt;br /&gt;
Once I did this, images started to stream for me.&lt;br /&gt;
&lt;br /&gt;
2) The other common cause for being unable to view streams is that you have installed the ZoneMinder cgi binaries (zms and nph-zms) in a different directory than your web server is expecting. Make sure that the --with-cgidir option you use to the ZoneMinder configure script is the same as the CGI directory configure for your web server. If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like &amp;lt;pre&amp;gt;ScriptAlias /cgi-bin/ &amp;quot;/var/www/cgi-bin/&amp;quot;&amp;lt;/pre&amp;gt; where the last directory in the quotes is the one you have specified. If not then change one or the other to match. Be warned that configuring apache can be complex so changing the one passed to the ZoneMinder configure (and then rebuilding and reinstalling) is recommended in the first instance. If you change the apache config you will need to restart apache for the changes to take effect. If you still cannot see stream reliably then try changing Options-&amp;gt;Paths-&amp;gt;ZM_PATH_ZMS to just use zms if nph-zms is specified, or vice versa. Also check in your apache error logs.&lt;br /&gt;
&lt;br /&gt;
===I have several monitors configured but when I load the Montage view in FireFox why can I only see two? or, Why don&amp;#039;t all my cameras display when I use the Montage view in FireFox?===&lt;br /&gt;
&lt;br /&gt;
By default FireFox only supports a small number of simultaneous connections. Using the montage view usually requires one persistent connection for each camera plus intermittent connections for other information such as statuses.&lt;br /&gt;
&lt;br /&gt;
You will need to increase the number of allowed connections to use the montage view with more than a small number of cameras.  Certain FireFox extensions such as FasterFox may also help to achieve the same result.&lt;br /&gt;
&lt;br /&gt;
To resolve this situation, follow the instructions below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Enter about:config in the address bar&lt;br /&gt;
&lt;br /&gt;
scroll down to&lt;br /&gt;
browser.cache.check_doc_frequency 3&lt;br /&gt;
change the 3 to a 1&lt;br /&gt;
&lt;br /&gt;
browser.cache.disk.enable True -&amp;gt; False&lt;br /&gt;
network.http.max-connections-per-server -&amp;gt; put a value of 100&lt;br /&gt;
network.http.max-persistent-connections-per-proxy -&amp;gt; 100 again&lt;br /&gt;
network.http.max-persistent-connections-per-server -&amp;gt; 100 again&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why is ZoneMinder using so much CPU?===&lt;br /&gt;
&lt;br /&gt;
The various elements of ZoneMinder can be involved in some pretty intensive activity, especially while analysing images for motion. However generally this should not overwhelm your machine unless it is very old or underpowered.&lt;br /&gt;
&lt;br /&gt;
There are a number of specific reasons why processor loads can be high either by design or by accident. To figure out exactly what is causing it in your circumstances requires a bit of experimentation.&lt;br /&gt;
&lt;br /&gt;
The main causes are.&lt;br /&gt;
&lt;br /&gt;
# Using a video palette other than greyscale or RGB24. This can cause a relatively minor performace hit, though still significant. Although some cameras and cards require using planar palettes ZM currently doesn&amp;#039;t support this format internally and each frame is converted to an RGB representation prior to processing. Unless you have compelling reasons for using YUV or reduced RGB type palettes such as hitting USB transfer limits I would experiment to see if RGB24 or greyscale is quicker. Put your monitors into &amp;#039;Monitor&amp;#039; mode so that only the capture daemons are running and monitor the process load of these (the &amp;#039;zmc&amp;#039; processes) using top. Try it with various palettes to see if it makes a difference.&lt;br /&gt;
# Big image sizes. A image of 640x480 requires at least four times the processing of a 320x240 image. Experiment with different sizes to see what effect it may have. Sometimes a large image is just two interlaced smaller frames so has no real benefit anyway. This is especially true for analog cameras/cards as image height over 320 (NTSC) or 352 PAL) are invariably interlaced.&lt;br /&gt;
# Capture frame rates. Unless there&amp;#039;s a compelling reason in your case there is often little benefit in running cameras at 25fps when 5-10fps would often get you results just as good. Try changing your monitor settings to limit your cameras to lower frame rates. You can still configure ZM to ignore these limits and capture as fast as possible when motion is detected.&lt;br /&gt;
# Run function. Obviously running in Record or Mocord modes or in Modect with lots of events generates a lot of DB and file activity and so CPU and load will increase.&lt;br /&gt;
# Basic default detection zones. By default when a camera is added one detection zone is added which covers the whole image with a default set of parameters. If your camera covers a view in which various regions are unlikely to generate a valid alarm (ie the sky) then I would experiment with reducing the zone sizes or adding inactive zones to blank out areas you don&amp;#039;t want to monitor. Additionally the actual settings of the zone themselves may not be optimal. When doing motion detection the number of changed pixels above a threshold is examined, then this is filter, then contiguous regions are calculated to see if an alarm is generated. If any maximum or minimum threshold is exceeded according to your zone settings at any time the calculation stops. If your settings always result in the calculations going through to the last stage before being failed then additional CPU time is used unnecessarily. Make sure your maximum and minimumzone thresholds are set to sensible values and experiment by switching RECORD_EVENT_STATS on and seeing what the actual values of alarmed pixels etc are during sample events.&lt;br /&gt;
# Optimise your settings. After you&amp;#039;ve got some settings you&amp;#039;re happy with then switching off RECORD_EVENT_STATS will prevent the statistics being written to the database which saves some time. Other settings which might make a difference are ZM_FAST_RGB_DIFFS, ZM_OPT_FRAME_SERVER and the JPEG_xxx_QUALITY ones.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m sure there are other things which might make a difference such as what else you have running on the box and memory sizes (make sure there&amp;#039;s no swapping going on). Also speed of disk etc will make some difference during event capture and also if you are watching the whole time then you may have a bunch of zms processes running also.&lt;br /&gt;
&lt;br /&gt;
I think the biggest factors are image size, colour depth and capture rate. Having said that I also don&amp;#039;t always know why you get certains results from &amp;#039;top&amp;#039;. For instance if I have a &amp;#039;zma&amp;#039; daemon running for a monitor that is capturing an image. I&amp;#039;ve commented out the actual analysis so all it&amp;#039;s doing is blending the image with the previous one. In colour mode this takes ~11 milliseconds per frame on my system and the camera is capturing at ~10fps. Using &amp;#039;top&amp;#039; this reports the process as using ~5% of CPU and permanently in R(un) state. Changing to greyscale mode the blending takes ~4msec (as you would expect as this is roughly a third of 11) but top reports the process as now with 0% CPU and permanently in S(leep) state. So an actual CPU resource usage change of a factor of 3 causes huge differences in reported CPU usage. I have yet to get to the bottom of this but I suspect it&amp;#039;s to do with scheduling somewhere along the line and that maybe the greyscale processing will fit into one scheduling time slice whereas the colour one won&amp;#039;t but I have no evidence of this yet!&lt;br /&gt;
&lt;br /&gt;
===Why is the timeline view all messed up?===&lt;br /&gt;
&lt;br /&gt;
The timeline view is a new view allowing you to see a graph of alarm activity over time and to quickly scan and home in on events of interest. However this feature is highly complex and still in beta. It is based extensively on HTML div tags, sometimes lots of them. Whilst FireFox is able to render this view successfully other browsers, particular Internet Explorer do not seem able to cope and so present a messed up view, either always or when there are a lot of events.&lt;br /&gt;
Using the timeline view is only recommended when using FireFox, however even then there may be issues.&lt;br /&gt;
&lt;br /&gt;
===How much Hard Disk Space / Bandwidth do I need for ZM?===&lt;br /&gt;
Please see [http://www.jpwilson.eu/ZM_Utils/ZM%20storage%20calc%20sheet.xls Storage Calc] in excel format&lt;br /&gt;
&lt;br /&gt;
Or go to [http://www.axis.com/products/video/design_tool/index.htm this link] for the Axis bandwidth calculator. Although this is aimed at Axis cameras it still produces valid results for any kind of IP camera.&lt;br /&gt;
&lt;br /&gt;
As a quick guide I have 4 cameras at 320x240 storing 1 fps except during alarm events. After 1 week 60GB of space in the volume where the events are stored (/var/www/html/zm) has been used.&lt;br /&gt;
&lt;br /&gt;
===When I try and run ZoneMinder I get lots of audit permission errors in the logs and it won&amp;#039;t start===&lt;br /&gt;
Many Linux distributions nowadays are built with security in mind. One of the latest methods of achieving this is via SELinux (Secure Linux) which controls who is able to run what in a more precise way then traditional accounting and file based permissions ([http://en.wikipedia.org/wiki/Selinux]).&lt;br /&gt;
If you are seeing entries in your system log like:&lt;br /&gt;
&lt;br /&gt;
   Jun 11 20:44:02 kernel: audit(1150033442.443:226): avc: denied { read } for pid=5068&lt;br /&gt;
   comm=&amp;quot;uptime&amp;quot; name=&amp;quot;utmp&amp;quot; dev=dm-0 ino=16908345 scontext=user_u:system_r:httpd_sys_script_t&lt;br /&gt;
   tcontext=user_u:object_r:initrc_var_run_t tclass=file&lt;br /&gt;
&lt;br /&gt;
then it is likely that your system has SELinux enabled and it is preventing ZoneMinder from performaing certain activities. You then have two choices. You can either tune SELinux to permit the required operations or you can disable SELinux entirely which will permit ZoneMinder to run unhindered. Disabling SELinux is usually performed by editing it&amp;#039;s configuration file (e.g., &amp;lt;tt&amp;gt;/etc/selinux/config&amp;lt;/tt&amp;gt;) and then rebooting. However if you run a public server you should read up on the risks associated with disabled Secure Linux before disabling it.&lt;br /&gt;
&lt;br /&gt;
Note that SELinux may cause errors other than those listed above. If you are in any doubt then it can be worth disabling SELinux experimentally to see if it fixes your problem before trying other solutions.&lt;br /&gt;
&lt;br /&gt;
=== How do I enable ZoneMinder&amp;#039;s security? ===&lt;br /&gt;
In the console, click on Options. Check the box next to &amp;quot;ZM_OPT_USE_AUTH&amp;quot;. You will immediately be asked to login. The username is &amp;#039;admin&amp;#039; and the password is &amp;#039;admin&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Manage Users:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
In main console, go to &amp;#039;&amp;#039;&amp;#039;Options-&amp;gt;Users&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* You may also consider to use the web server security, for example, htaccess files under Apache scope; You may even use this as an additional/redundant security on top of Zoneminders built-in security features;&lt;br /&gt;
&lt;br /&gt;
=== Why does ZM stop recording once I have 32000 events for my monitor? ===&lt;br /&gt;
This is a limitation of the ext3 filesystem that most Linux distributions use. One directory cannot hold more than 32k approx  files.&lt;br /&gt;
&lt;br /&gt;
Version of ZM from 1.23.0 onwards allow you to have a deeper filesystem with fewer files per individual directory. As well as not being susceptible to the 32k limit this is also somewhat  faster. However it is relatively and although few issues have been reported thus far it should be considered in beta for now. Also, it is currently not possible to migrate saved events between the different storage formats so is only suitable for new installations or if you do not mind losing saved events.&lt;br /&gt;
&lt;br /&gt;
So if you do not want to use the deeper filesystem option&lt;br /&gt;
(Options-&amp;gt;Paths-&amp;gt;ZM_USE_DEEP_STORAGE), for now you have to reduce the&lt;br /&gt;
number of events or store your images (e.g. /var/lib/zoneminder) on a&lt;br /&gt;
partition that uses a different filesystem such as ext4 or reiserfs.&lt;br /&gt;
&lt;br /&gt;
You can read about the lack of a limit in the number of&lt;br /&gt;
sub-directories in the ext4 filesystem at:&lt;br /&gt;
  [[http://kernelnewbies.org/Ext4]]&lt;br /&gt;
and see what tools may assist in your use of this filesystem in:&lt;br /&gt;
  [[http://ext4.wiki.kernel.org/index.php/Ext4_Howto]]&lt;br /&gt;
Note that while GParted 0.5.2 recognizes ext4 partitions, at least in&lt;br /&gt;
some circumstances it does not succeed in formatting a partition for&lt;br /&gt;
the ext4 filesystem.  Also, if you search for ext3 or reiserfs on the&lt;br /&gt;
forums you will find various threads on this issue with guidance on&lt;br /&gt;
how to convert.&lt;br /&gt;
&lt;br /&gt;
== Managing system load &amp;#039;&amp;#039;(with IP Cameras in mind)&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Zoneminder is a superb application in every way, but it does a job that needs a lot of horsepower especially when using multiple IP cameras. IP Cams require an extra level of processing to analogue cards as the jpg or mjpeg images need to be decoded before analysing. This needs grunt. If you have lots of cameras, you need lots of grunt.&lt;br /&gt;
&lt;br /&gt;
Why do ZM need so much grunt?&lt;br /&gt;
Think what Zoneminder is actually doing. In modect mode ZM is:&lt;br /&gt;
1. Fetching a jpeg from the camera. (Either in single part or multipart stream)&lt;br /&gt;
2. Decoding the jpeg image. &lt;br /&gt;
3. Comparing the zoned selections to the previous image or images and applying rules.&lt;br /&gt;
4. If in alarm state, writing that image to the disk and updating the mysql database.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re capturing at five frames per second, the above is repeated five times every second, multiplied by the number of cameras. Decoding the images is what takes the real power from the processor and this is the main reason why analogue cameras which present an image ready-decoded in memory take less work.&lt;br /&gt;
&lt;br /&gt;
=== How do I know if my computer is overloaded? ===&lt;br /&gt;
If your CPU is running at 100% all the time, it&amp;#039;s probably overloaded (or running at exact optimisation). If the load is consistently high (over 10.0 for a single processor) then Bad Things happen - like lost frames, unrecorded events etc. Occasional peaks are fine, normal and nothing to worry about.&lt;br /&gt;
&lt;br /&gt;
Zoneminder runs on Linux, Linux measures system load using &amp;quot;load&amp;quot;, which is complicated but gives a rough guide on what the computer is doing at any given time. Zoneminder shows Load on the main page (top right) as well as disk space. Typing &amp;quot;uptime&amp;quot; on the command line will give a similar guide, but with three figures to give a fuller measure of what&amp;#039;s happening over a period of time but for the best guide to see what&amp;#039;s happening, install &amp;quot;htop&amp;quot; - which gives easy to read graphs for load, memory and cpu usage.&lt;br /&gt;
&lt;br /&gt;
A load of 1.0 means the processor has &amp;quot;just enough to do right now&amp;quot;. Also worth noting that a load of 4.0 means exactly the same for a quad processor machine - each number equals a single processor&amp;#039;s workload. A very high load can be fine on a computer that has a stacked workload - such as a machine sending out bulk emails, or working its way through a knotty problem; it&amp;#039;ll just keep churning away until it&amp;#039;s done. However - Zoneminder needs to process information in real time so it can&amp;#039;t afford to stack its jobs, it needs to deal with them right away.&lt;br /&gt;
&lt;br /&gt;
For a better and full explanation of Load: http://en.wikipedia.org/wiki/Load_%28computing%29&lt;br /&gt;
&lt;br /&gt;
=== My load is too high, how can I reduce it? ===&lt;br /&gt;
Zoneminder is /very/ tweakable and it&amp;#039;s possible to tune it to compromise. The following are good things to try, in no particular order;&lt;br /&gt;
&lt;br /&gt;
Change the jpeg libraries. In most distributions Linux uses standard jpeg libraries which although fine for most things, don&amp;#039;t use the MMX functions in nearly all modern processors. Check whether your cpu supports mmx by running &amp;quot;cpuid |grep MMX&amp;quot; which should give you a line or two along the lines of &amp;quot;MMX instructions&amp;quot;. If so, give the libs a try. Most people report their load halves simply by using these libs. http://www.zoneminder.com/forums/viewtopic.php?t=6419 gives more info. Nobody&amp;#039;s posted there to say it broke their system... Yet.&lt;br /&gt;
&lt;br /&gt;
If your camera allows you to change image size, think whether you can get away with smaller images. Smaller pics = less load. 320x240 is usually ok for close-up corridor shots.&lt;br /&gt;
&lt;br /&gt;
Go Black and White. Colour pictures use twice to three times the CPU, memory and diskspace but give little benefit to identification.&lt;br /&gt;
&lt;br /&gt;
Reduce frames per second. Halve the fps, halve the workload. If your camera supports fps throttling (Axis do), try that - saves ZM having to drop frames from a stream. 2-5 fps seems to be widely used.&lt;br /&gt;
&lt;br /&gt;
Experiment with using jpeg instead of mjpeg. Some users have reported it gives better performance, but YMMV.&lt;br /&gt;
&lt;br /&gt;
Tweak the zones. Keep them as small and as few as possible. Stick to one zone unless you really need more.&lt;br /&gt;
&lt;br /&gt;
Schedule. If you are running a linux system at near capacity, you&amp;#039;ll need to think carefully about things like backups and scheduled tasks. updatedb - the process which maintains a file database so that &amp;#039;locate&amp;#039; works quickly, is normally scheduled to run once a day and if on a busy system can create a heavy increase on the load. The same is true for scheduled backups, especially those which compress the files. Re-schedule these tasks to a time when the cpu is less likely to be busy, if possible - and also use the &amp;quot;nice&amp;quot; command to reduce their priority. (crontab and /etc/cron.daily/ are good places to start)&lt;br /&gt;
&lt;br /&gt;
Reduce clutter on your PC. Don&amp;#039;t run X unless you really need it, the GUI is a huge overhead in both memory and cpu.&lt;br /&gt;
&lt;br /&gt;
More expensive options:&lt;br /&gt;
&lt;br /&gt;
Increase RAM. If your system is having to use disk swap it will HUGELY impact performance in all areas. Again, htop is a good monitor - but first you need to understand that because Linux is using all the memory, it doesn&amp;#039;t mean it needs it all - linux handles ram very differently to Windows/DOS and caches stuff. htop will show cached ram as a different colour in the memory graph. Also check that you&amp;#039;re actually using a high memory capable kernel - many kernels don&amp;#039;t enable high memory by default. &lt;br /&gt;
&lt;br /&gt;
Faster CPU. Simple but effective. Zoneminder also works very well with multiple processor systems out of the box (if SMP is enabled in your kernel). The load of different cameras is spread across the processors.&lt;br /&gt;
&lt;br /&gt;
=== What about disks and bandwidth? ===&lt;br /&gt;
&lt;br /&gt;
In most modern pc-based servers, disk I/O is more than adequate for the speeds involved in capturing from multiple cameras in most scenarios.&lt;br /&gt;
&lt;br /&gt;
A typical 100mbit LAN will cope with most setups easily. If you&amp;#039;re feeding from cameras over smaller or internet links, obviously fps will be much lower.&lt;br /&gt;
&lt;br /&gt;
Disk and Bandwidth calculators are referenced on the Zoneminder wiki here: http://www.zoneminder.com/wiki/index.php/FAQ#How_much_Hard_Disk_Space_.2F_Bandwidth_do_I_need_for_ZM.3F&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
===I cannot build ZoneMinder and am getting lots of undefined C++ template errors===&lt;br /&gt;
&lt;br /&gt;
This is almost certainly due to the &amp;#039;ccache&amp;#039; package which attempts to speed up compilation by caching compiled objects. Unfortunately one of the side effects is that it breaks the GNU g++ template resolution method that ZoneMinder uses in building by prevent files getting recompiled. The simplest way around this is to remove the ccache package using your distros package manager.&lt;br /&gt;
&lt;br /&gt;
=== How do I build for X10 support? ===&lt;br /&gt;
&lt;br /&gt;
You do not need to rebuild ZM for X10 support. You will need to install the perl module and switch on X10 in the options, then restart. Installing the perl module is covered in the README amongst other places but in summary, do:&lt;br /&gt;
&lt;br /&gt;
 perl -MCPAN -eshell&lt;br /&gt;
 install X10::ActiveHome&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
== Extending ZoneMinder ==&lt;br /&gt;
&lt;br /&gt;
=== How can I get ZM to do different things at different times of day or week? ===&lt;br /&gt;
If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder &amp;#039;run states&amp;#039;. A run state is a particular configuration of monitor functions that you want to use at any time.&lt;br /&gt;
&lt;br /&gt;
To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say &amp;#039;Running&amp;#039; or &amp;#039;Stopped&amp;#039;. You will then be able to save the current state and give it a name, &amp;#039;Daytime&amp;#039; for example. Now configure your monitors how you would want them during other times of day and save that, for instance as &amp;#039;Nighttime&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command &amp;#039;&amp;#039;zmpkg.pl &amp;lt;run state&amp;gt;&amp;#039;&amp;#039;, for example &amp;#039;&amp;#039;zmpkg.pl Daytime&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The final step you need to take, is scheduling the time the changes take effect. For this you can use [http://en.wikipedia.org/wiki/Cron cron]. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,&lt;br /&gt;
&amp;lt;pre&amp;gt;0 8 * * * /usr/local/bin/zmpkg.pl Daytime&lt;br /&gt;
0 20 * * * /usr/local/bin/zmpkg.pl Nighttime&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Ubuntu 7.04 and possibly others, look in /usr/bin not just /usr/local/bin for the zmpkg.pl file.&lt;br /&gt;
&lt;br /&gt;
Although the example above describes changing states at different times of day, the same principle can equally be applied to days of the week or other more arbitrary periods.&lt;br /&gt;
&lt;br /&gt;
For an alternative method of time controlling ZoneMinder, forum user &amp;#039;voronwe&amp;#039; has created a more interactive calendar style integration. Details of this can be found in this [http://www.zoneminder.com/forums/viewtopic.php?t=6519 forum thread]. If you would like to find out more about this contribution please post on this thread.&lt;br /&gt;
&lt;br /&gt;
=== How can I use ZoneMinder to trigger something else when there is an alarm? ===&lt;br /&gt;
ZoneMinder includes a perl API which means you can create a script to interact with the ZM shared memory data and use it in your own scripts to react to ZM alarms or to trigger ZM to generate new alarms. Full details are in the README or by doing &amp;#039;perdoc ZoneMinder&amp;#039;, &amp;#039;perldoc ZoneMinder::SharedMem&amp;#039; etc.&lt;br /&gt;
Below is an example script that checks all monitors for alarms and when one occurs, prints a message to the screen. You can add in your own code to make this reaction a little more useful.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use ZoneMinder;&lt;br /&gt;
&lt;br /&gt;
$| = 1;&lt;br /&gt;
&lt;br /&gt;
zmDbgInit( &amp;quot;myscript&amp;quot;, level=&amp;gt;0, to_log=&amp;gt;0, to_syslog=&amp;gt;0, to_term=&amp;gt;1 );&lt;br /&gt;
&lt;br /&gt;
my $dbh = DBI-&amp;gt;connect( &amp;quot;DBI:mysql:database=&amp;quot;.ZM_DB_NAME.&amp;quot;;host=&amp;quot;.ZM_DB_HOST, ZM_DB_USER, ZM_DB_PASS );&lt;br /&gt;
&lt;br /&gt;
my $sql = &amp;quot;select M.*, max(E.Id) as LastEventId from Monitors as M left join Events as E on M.Id = E.MonitorId where M.Function != &amp;#039;None&amp;#039; group by (M.Id)&amp;quot;;&lt;br /&gt;
my $sth = $dbh-&amp;gt;prepare_cached( $sql ) or die( &amp;quot;Can&amp;#039;t prepare &amp;#039;$sql&amp;#039;: &amp;quot;.$dbh-&amp;gt;errstr() );&lt;br /&gt;
&lt;br /&gt;
my $res = $sth-&amp;gt;execute() or die( &amp;quot;Can&amp;#039;t execute &amp;#039;$sql&amp;#039;: &amp;quot;.$sth-&amp;gt;errstr() );&lt;br /&gt;
my @monitors;&lt;br /&gt;
while ( my $monitor = $sth-&amp;gt;fetchrow_hashref() )&lt;br /&gt;
{&lt;br /&gt;
    push( @monitors, $monitor );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while( 1 )&lt;br /&gt;
{&lt;br /&gt;
    foreach my $monitor ( @monitors )&lt;br /&gt;
    {&lt;br /&gt;
        next if ( !zmMemVerify( $monitor ) );&lt;br /&gt;
 &lt;br /&gt;
        if ( my $last_event_id = zmHasAlarmed( $monitor, $monitor-&amp;gt;{LastEventId} ) )&lt;br /&gt;
        {&lt;br /&gt;
            $monitor-&amp;gt;{LastEventId} = $last_event_id;&lt;br /&gt;
            print( &amp;quot;Monitor &amp;quot;.$monitor-&amp;gt;{Name}.&amp;quot; has alarmed\n&amp;quot; );&lt;br /&gt;
            #&lt;br /&gt;
            # Do your stuff here&lt;br /&gt;
            #&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    sleep( 1 );&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Trouble Shooting==&lt;br /&gt;
Here are some things that will help you track down whats wrong.&lt;br /&gt;
This is also how to obtain the info that we need to help you on the forums.&lt;br /&gt;
&lt;br /&gt;
===What logs should I check for errors?===&lt;br /&gt;
ZoneMinder creates its own logs and are usually located in the &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder logs for the RPM packages are located in &amp;lt;tt&amp;gt;/var/log/zm&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Depending on your problem errors can show up in any of these logs but, usually the logs of interest are &amp;lt;tt&amp;gt;zmdc.log&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;zmpkg.log&amp;lt;/tt&amp;gt; if ZM is not able to start.&lt;br /&gt;
&lt;br /&gt;
Now since ZM is dependent on other components to work, you might not find errors in ZM but in the other components.&lt;br /&gt;
Other logs of interest are:&amp;lt;tt&amp;gt;&lt;br /&gt;
*/var/log/messages and/or /var/log/syslog&lt;br /&gt;
*/var/log/dmesg&lt;br /&gt;
*/var/log/httpd/error_log&amp;lt;/tt&amp;gt; (RedHat/Fedora) or &amp;lt;tt&amp;gt;/var/log/apache2/error_log&lt;br /&gt;
*/var/log/mysqld.log&amp;lt;/tt&amp;gt; (Errors here don&amp;#039;t happen very often but just in case)&lt;br /&gt;
&lt;br /&gt;
If ZM is not functioning, you should always be able to find an error in at least one of these logs. Use the [[tail]] command to get info from the logs. This can be done like so: &lt;br /&gt;
&lt;br /&gt;
  tail -f /var/log/messages /var/log/httpd/error_log /var/log/zm/zm*.log&lt;br /&gt;
&lt;br /&gt;
This will append any data entered to any of these logs to your console screen (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;). To exit, hit [ctrl -c].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More verbose logging for the ZoneMinder binaries is available by enabling the debug option from the control panel and will be placed in the path you have configured for the debug logs. Output can be limited to a specific binary as described in the Debug options page under the &amp;quot;?&amp;quot; marks.&lt;br /&gt;
&lt;br /&gt;
===How can I trouble shoot the hardware and/or software?===&lt;br /&gt;
Here are some commands to get information about your hardware. Some commands are distribution dependent.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lspci]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detailed info. Check for conflicting interrupts or port assignments. You can sometimes alter interrupts/ ports in bios. Try a different pci slot to get a clue if it is HW conflict (comand provided by the pciutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[scanpci]] -v&amp;lt;/tt&amp;gt;  -- Gives you information from your hardware EPROM&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[lsusb]] -vv&amp;lt;/tt&amp;gt; -- Returns lots of detail about USB devices (camand provided by usbutils package).&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[dmesg]]&amp;lt;/tt&amp;gt; -- Shows you how your hardware initialized (or didn&amp;#039;t) on boot-up. You will get the most use of this.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[v4l-info]]&amp;lt;/tt&amp;gt; -- to see how driver is talking to card. look for unusual values.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[modinfo bttv]]&amp;lt;/tt&amp;gt; -- some bttv driver stats.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[zmu]]  -m 0 -q -v&amp;lt;/tt&amp;gt; -- Returns various information regarding a monitor configuration.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcs]] &amp;lt;/tt&amp;gt;  -- Provides information on the ipc facilities for which the calling process has read acccess.&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[ipcrm]] &amp;lt;/tt&amp;gt;  -- The ipcrm command can be used to remove an IPC object from the kernel.&lt;br /&gt;
* &amp;lt;tt&amp;gt;cat /proc/interrupts&amp;lt;/tt&amp;gt;  -- This will dispaly what interrupts your hardware is using.&lt;br /&gt;
&lt;br /&gt;
===Why is it that when monitoring a camera, the top portion of the image is cutoff and appears at the bottom of the image, with a line seperating the top from the bottom?===&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting a 403 access error with my web browser when trying to access http //localhost/zm? ===&lt;br /&gt;
&lt;br /&gt;
The apache web server needs to have the right permissions and configuration to be able to read the Zoneminder files. Check the forums for solution, and edit the apache configuration and change directory permissions to give apache the right to read the Zoneminder files. Depending on your Zoneminder configuration, you would use the zm user and group that Zoneminder was built with, such as wwwuser and www.&lt;br /&gt;
&lt;br /&gt;
=== Why am I getting broken images when trying to view events? ===&lt;br /&gt;
&lt;br /&gt;
Zoneminder and the Apache web server need to have the right permissions. Check this forum topic and similar ones:&lt;br /&gt;
http://www.zoneminder.com/forums/viewtopic.php?p=48754#48754&lt;br /&gt;
&lt;br /&gt;
===Why is the image from my color camera appearing in black and white?===&lt;br /&gt;
This may occur if you have a NTSC analog camera but have configured the source in ZoneMinder as PAL for the Device Format under the source tab.  You may also be mislead because zmu can report the video port as being PAL when the camera is actually NTSC.  Confirm the format of your analog camera by checking it&amp;#039;s technical specifications, possibly found with the packaging it came in, on the manufacturers website, or even on the retail website where you purchased the camera.  Change the Device Format setting to NTSC and set it to the lowest resolution of 320 x 240.  If you have confirmed that the camera itself is NTSC format, but don&amp;#039;t get a picture using the NTSC setting, consider increasing the shared memory &amp;#039;&amp;#039;&amp;#039;kernel.shmall&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;kernel.shmmax&amp;#039;&amp;#039;&amp;#039; settings in /etc/sysctl.conf to a larger value such as 268435456.  This is also the reason you should start with the 320x240 resolution, so as to minimize the potential of memory problems which would interfere with your attempts to troubleshoot the device format issue.  Once you have obtained a picture in the monitor using the NTSC format, then you can experiment with raising the resolution.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see blue screens with a timestamp when monitoring my camera?===&lt;br /&gt;
If this camera is attached to a capture card, then you may have selected the wrong Device Source or Channel when configuring the monitor in the ZoneMinder console.  If you have a capture card with 2 D-sub style inputs(looks like a VGA port) to which you attach a provided splitter that splits off multiple cables, then the splitter may be attached to the wrong port.  For example, PV-149 capture cards have two D-sub style ports labeled as DB1 and DB2, and come packaged with a connector for one of these ports that splits into 4 BNC connecters.  The initial four video ports are available with the splitter attached to DB1.&lt;br /&gt;
&lt;br /&gt;
===Why do I only see black screens with a timestamp when monitoring my camera?===&lt;br /&gt;
In the monitor windows where you see the black screen with a timestamp, select settings and enter the Brightness, Contrast, Hue, and Color settings reported for the device by &amp;#039;&amp;#039;&amp;#039;zmu -d &amp;lt;device_path&amp;gt; -q -v&amp;#039;&amp;#039;&amp;#039;.  32768 may be appropriate values to try for these settings.  After saving the settings, select Settings again to confirm they saved successfully.&lt;br /&gt;
&lt;br /&gt;
===I am getting messages about a backtrace in my logs, what do I do?===&lt;br /&gt;
If you are seeing entries in your log like the following&lt;br /&gt;
&amp;lt;pre&amp;gt;Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6 [0x3347230210]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(memset+0xce) [0x334727684e]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x40ee9a]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x419946]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma [0x4213cf]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0x35c) [0x404674]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x334721da44]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: ERR [Backtrace: /usr/local/bin/zma(cos+0xd1) [0x4043e9]]&lt;br /&gt;
Jan 11 20:25:22 localhost zma_m2[19051]: INF [Backtrace complete]&amp;lt;/pre&amp;gt;&lt;br /&gt;
then you can help diagnose the problem by running a special command to translate the hex addresses into helpful information. This command is called addr2line and you can type &amp;#039;man addr2line&amp;#039; for more information.&lt;br /&gt;
Basically addr2line takes two sets of parameters, the first is the name of the binary file, and the second is a list of addresses. Both of these pieces of information are displayed in the logs. The filename is the first part after the &amp;#039;Backtrace:&amp;#039; tag, in this case /usr/local/bin/zma, though it may well be different in your case. Some of the lines refer to libraries rather than the zma executable but those can be ignored for now, the important part is noting which ZM binary is involved. The binary file is passed in following the -e flag. The addresses to pass to addr2line are those contained in the &amp;#039;[]&amp;#039; pairs. Again you can ignore those that are on a line that refers to a library but it will not hurt if you include them.&lt;br /&gt;
So in the example above, the command would be &amp;lt;pre&amp;gt;addr2line -e /usr/local/bin/zma 0x40ee9a 0x419946 0x4213cf 0x404674 0x4043e9&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should then dump out a more symbolic list containing source file names and line numbers, and it is this information which will be helpful if posted to the forums. Sometimes addr2line fails to produce useful output. This is usually because either the problem is so severe that it has corrupted the stack and prevented useful information from being displayed, or that you have either compiled ZM without the -g flag for debug, or you have stripped the binaries of symbol information after installation. This this case you would need to rebuild temporarily with debug enabled for the information to be useful.&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database?===&lt;br /&gt;
There is two ways to go about this. In most cases you can run from the command prompt -&amp;gt;&lt;br /&gt;
* mysqlcheck --all-databases --auto-repair -p&amp;#039;&amp;#039;&amp;#039;your_database_password&amp;#039;&amp;#039;&amp;#039; -u &amp;#039;&amp;#039;&amp;#039;your_databse_user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If that does not work then you will have to make sure that ZoneMinder is stopped then run the following (nothing should be using the database while running this and you will have to adjust for your correct path if it is different). -&amp;gt;&lt;br /&gt;
* myisamchk --silent --force --fast --update-state -O key_buffer=64M -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/*/*.MYI &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How do I repair the MySQL Database when the cli fails?===&lt;br /&gt;
In Ubuntu, the commands listed above do not seem to work.  However, actually doing it by hand from within MySQL does.  (But that is beyond the scope of this document)  But that got me thinking...  And phpmyadmin does work.  Bring up a terminal.&lt;br /&gt;
 sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
Now go to http://zoneminder_IP/ and stop the ZM service.  Continue to http://zoneminder_IP/phpmyadmin and select the zoneminder database.  Select and tables marked &amp;#039;in use&amp;#039; and pick the action &amp;#039;repare&amp;#039; to fix.  Restart the zoneminder service from the web browser.  Remove or disable the phpmyadmin tool, as it is not always the most secure thing around, and opens your database wide to any skilled hacker.&lt;br /&gt;
 sudo apt-get remove phpmyadmin&lt;br /&gt;
&lt;br /&gt;
===I upgraded by distribution and ZM stopped working===&lt;br /&gt;
Some possibilties (Incomplete list and subject to correction)&lt;br /&gt;
#[[/usr/local/bin/zmfix: /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0&amp;#039; not found (required by /usr/local/bin/zmfix)]]  :: Solution: Recompile and reinstall Zoneminder.&lt;br /&gt;
Any time you update a major version that ZoneMinder depends on, you need to recompile ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remote Path setup for Panasonic and other Camera ===&lt;br /&gt;
On adding or editing the source you can select the preset link for the parameters for the specified camera .  In version 1.23.3  presets for BTTV,Axis,Panasonic,GadSpot,VEO, and BlueNet are available . Selecting the presets  ZM fills up the required value for the remote path variable&lt;br /&gt;
&lt;br /&gt;
=== Why do I get repeated/ mixed/unstable/ blank monitors on bt878-like cards (a.k.a. PICO 2000) ===&lt;br /&gt;
&lt;br /&gt;
Please have a check at [[Pico2000]];&lt;br /&gt;
&lt;br /&gt;
===What causes &amp;quot;Invalid JPEG file structure: two SOI markers&amp;quot; from zmc (1.24.x)===&lt;br /&gt;
&lt;br /&gt;
Some settings that used to be global only are now per camera.  On the Monitor Source tab, if you are using Remote Protocol  &amp;quot;HTTP&amp;quot; and Remote Method &amp;quot;Simple&amp;quot;, try changing Remote Method to &amp;quot;Regexp&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
=== I see ZoneMinder is licensed under the GPL. What does that allow or restrict me in doing with ZoneMinder? ===&lt;br /&gt;
&lt;br /&gt;
The ZoneMinder license is described at the end of the documentation and consists of the following section&lt;br /&gt;
&lt;br /&gt;
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as&lt;br /&gt;
 published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;
 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
This means that ZoneMinder is licensed under the terms described [http://www.gnu.org/copyleft/gpl.html here]. There is a comprehensive FAQ covering the GPL at http://www.gnu.org/licenses/gpl-faq.html but in essence you are allowed to redistribute or modify GPL licensed software provided that you release your distribution or modifications freely under the same terms. You are allowed to sell systems based on GPL software. You are not allowed to restrict or reduce the rights of GPL software in your distribution however. Of course if you are just making modifications for your system locally you are not releasing changes so you have no obligations in this case. I recommend reading the GPL FAQ for more in-depth coverage of this issue.&lt;br /&gt;
&lt;br /&gt;
=== Can I use ZoneMinder as part of my commercial product? ===&lt;br /&gt;
&lt;br /&gt;
The GPL license allows you produce systems based on GPL software provided your systems also adhere to that license and any modifications you make are also released under the same terms.  The GPL does not permit you to include ZoneMinder in proprietary systems (see http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem for details). If you wish to include ZoneMinder in this kind of system then you will need to license ZoneMinder under different terms. This is sometimes possible and you will need to contact me for further details in these circuumstances.&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3808</id>
		<title>Intellinet</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3808"/>
		<updated>2010-06-19T00:30:28Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This information relates to the Intellinet&lt;br /&gt;
Network IP Camera&lt;br /&gt;
Professional Series&lt;br /&gt;
Medel [sic, per cover of User&amp;#039;s Guide] or Model 550710.&lt;br /&gt;
The external appearance of this camera is shown below.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetProSeries550710.png|image of camera]] &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[ from&lt;br /&gt;
[http://www.intellinet-network.com/en-US/products/3358-pro-series-network-camera] ]&lt;br /&gt;
&lt;br /&gt;
Note that the plastic case of this camera gets warm &lt;br /&gt;
(e.g. 22 degree F elevation above ambient)&lt;br /&gt;
after it has been powered on for a while.&lt;br /&gt;
&lt;br /&gt;
Aim your web browser at the address you selected for your camera,&lt;br /&gt;
and supply the login credentials for an Administrator of your camera. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraHomepage.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The manufacturer&amp;#039;s default administrator Username is &amp;quot;admin&amp;quot;&lt;br /&gt;
with a Password of &amp;quot;admin&amp;quot; (per page 31 of User&amp;#039;s Guide).&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
scroll down to the bottom to select the hyperlink to the Administrator Menu.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraMain.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[ Note that in the large grey central section of this browser window,&lt;br /&gt;
if one were using a browser that supported ActiveX one would see&lt;br /&gt;
the real-time live video feed from the camera.&lt;br /&gt;
However, even when one selects the viewing program option &lt;br /&gt;
shown on the previous screen for &lt;br /&gt;
&amp;quot;Java Applet for Netscape Navigator, Mozilla, Firefox, Opera &lt;br /&gt;
and other browsers&amp;quot;,&lt;br /&gt;
the video feed is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; displayed on this page by at least Firefox 3.6.3,&lt;br /&gt;
whether under Windows (e.g. XP) or Linux (Fedora).&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select the hyperlink to Image Configuration.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraAdmin.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select&lt;br /&gt;
* Compression Rate to be Level 1 &lt;br /&gt;
[Under both firmware levels of FL000004.0 (as this unit was shipped)&lt;br /&gt;
and after firmware upgrade to FL000004.29 (the only version available at the manufacturer&amp;#039;s website as of 2010-06-), leaving the Compression Rate at the default of Level 10 led to ZoneMinder not displaying the images.]&lt;br /&gt;
* Image Size to be 320 x 240,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraImageConfiguration.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On this web page,&lt;br /&gt;
select the hyperlink to System Configuration,&lt;br /&gt;
and select the option to enable &lt;br /&gt;
&amp;quot;Direct public access to image by HTTP&amp;quot;,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraSystemConfiguration.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aim your web browser to the appropriate URL resembling:&lt;br /&gt;
[http://169.254.225.221/jpg/image.jpg]&lt;br /&gt;
(supplying the IP address of your camera, and&lt;br /&gt;
possibly a different name for the image if you so chose) &lt;br /&gt;
to verify that you can see a still image in your web browser.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:CameraImage320x240.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is the view from the Intellinet camera as configured above of&lt;br /&gt;
a portion of an 8.5 inch by 11 inch piece of paper containing&lt;br /&gt;
a printed copy of &lt;br /&gt;
[http://upload.wikimedia.org/wikipedia/commons/6/6d/Philips_Pattern_PM5644.png]&lt;br /&gt;
(see [http://en.wikipedia.org/wiki/Test_card] )&lt;br /&gt;
with the camera lens at a distance of roughly 8.5 inches from&lt;br /&gt;
the paper print, illuminated by indoor fluorescent lamps.&lt;br /&gt;
&lt;br /&gt;
Note that this camera also supports an image resolutions of 160 by 120 pixels or 640 by 480 pixels.  The image of this same sheet of paper from approximately the same distance with the same lens focus setting under the same lighting conditions does show more detail when the image resolution is 640 by 480 pixels. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:CameraImage640x480.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since successfully capturing an image stream of this resolution from a camera with ZoneMinder likely requires you to perform some additional configuration, let&amp;#039;s first verify that your ZoneMinder configuration interacts correctly at this lower camera resolution.  See [[#Step Up to VGA Resolution]] below for how to capture more information from this camera with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
After you have installed all of the necessary software for ZoneMinder, &lt;br /&gt;
unless you have already configured all of the daemons to be started&lt;br /&gt;
each time the system is booted, &lt;br /&gt;
you will probably need to issue commands similar to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service mysqld start&lt;br /&gt;
Starting mysqld:                                           [  OK  ]&lt;br /&gt;
[root@who ~]# service httpd start&lt;br /&gt;
Starting httpd:                                            [  OK  ]&lt;br /&gt;
[root@209 ~]# setenforce 0 ## temporarily turn off SELinux enforcing mode&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]#&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Now you should be able to load the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
where you can select the Add New Monitor command button.&lt;br /&gt;
&lt;br /&gt;
On the General tab of the resulting page, &lt;br /&gt;
select Remote as the Source Type.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorGeneral.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On the Source tab of this page, &lt;br /&gt;
select &lt;br /&gt;
* the Remote Protocol to be HTTP,&lt;br /&gt;
* the Remote Host Name to be the IP address of your camera, &lt;br /&gt;
* the Remote Host Path to be jpg/image.jpg,&lt;br /&gt;
* the Remote Image Colours to be 24 bit colour,&lt;br /&gt;
* the Capture Width (pixels) to be 320, and&lt;br /&gt;
* the Capture Height (pixels) to be 240.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorSource.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select the Save command button.&lt;br /&gt;
&lt;br /&gt;
Now, as one returns to the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
select the name of the camera you just defined.&lt;br /&gt;
&amp;lt;br&amp;gt;[[Image:ZoneMinderConsole.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will open a window containing the live video feed from the camera.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderFeed.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step Up to VGA Resolution===&lt;br /&gt;
&lt;br /&gt;
Once you tire of seeing small and fuzzily, you may wish to change the configuration to utilize the highest resolution offered by this camera.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder stop&lt;br /&gt;
Stopping zoneminder:                                        [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A necessary step is to return to the Image Configuration page of the camera&amp;#039;s Administrator Menu, via a url resembling [http://169.254.225.221/main_configure.cgi].  On this web page, select:&lt;br /&gt;
* Image Size to be 640 x 480,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:IntellinetIPCameraImageConfiguration2.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are an optimist, or wish to repeat or verify some debugging steps, you could go ahead and just change the expected image size within ZoneMinder to match.  But it is likely that you will also need to change the configuration of your operating system to meet with success in this quest.  Many previous forum postings here seem to ask &amp;quot;320 x 240 working, how do I make 640 x 480 work?&amp;quot; ... with no positive and constructive answers following.  There is no device-specific issue with this particular camera model, but the frustrations are caused by a general issue with how larger images from any camera are processed by ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
If you desire to merely read the executive summary, you may skip ahead to the probable successful conclusion below the heading [[#Film at 11]].  If you are so clever as to encounter another failure mode, it is possible that returning here and reading the sections skipped may offer some diagnostic clues.&lt;br /&gt;
&lt;br /&gt;
{&amp;#039;&amp;#039;begin optional technical details&amp;#039;&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
If you were persistent and merely:&lt;br /&gt;
* changed the expected image size within ZoneMinder to also be 640 by 480, &lt;br /&gt;
* restarted ZoneMinder, and&lt;br /&gt;
* selected this camera name on the ZoneMinder console,&lt;br /&gt;
your reward is likely to be a black square on your screen where you would expect to see the live video feed.  Since you are persistent, you then read some troubleshooting tips in:&lt;br /&gt;
http://www.zoneminder.com/wiki/index.php/Troubleshooting&lt;br /&gt;
and within the ZoneMinder console, selected Options, and on the Debug tab of the resulting dialog, selected the checkbox for&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  EXTRA_DEBUG&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and set the value for&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  EXTRA_DEBUG_LEVEL &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to e.g. 5 or greater.  After saving these changes, and starting or restarting Zoneminder via:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
you seek some clues in the files with names in the pattern of /tmp/zm_debug.log.*.  (If you list or sort these files by modification date, you can quickly see which few log files have contents affected by the recent (within the last few minutes) ZoneMinder activity.)  You are likely to find lines similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
06/15/10 19:59:16.166399 zms[6444].DB1-zm_monitor.cpp/345 [mem.size=36865192]&lt;br /&gt;
06/15/10 19:59:16.166751 zms[6444].ERR-zm_monitor.cpp/378 [Can&amp;#039;t shmget, probably not enough shared memory space free: Invalid argument]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
One of the better places to read material that will assist in understanding this error message is:&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/wiki/index.php/FAQ#What_does_a_.27Can.27t_shmget:_Invalid_argument.27_error_in_my_logs_mean.3F_and_my_cameras_won.27t_display_video_at_higher_resolutions&lt;br /&gt;
&lt;br /&gt;
Many operating system distributions and installed systems apparently use 32 MB = 32 * 1024 * 1024 = 33554432 as the default upper limit for the size of chunks of shared memory that will be offered in respose to requests.  You can verify that this generalization is true for your system by comparing the output of this command when run on your system:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ cat /proc/sys/kernel/shmmax&lt;br /&gt;
33554432&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you may have already read in the FAQ entry cited above, or in your zm_debug.log file, ZoneMinder needs to use a chunk of shared memory of size:&lt;br /&gt;
ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead = 36 * 640 * 480 * 3 * 1.101 = 36865192    &lt;br /&gt;
This just happens to be a few megabytes larger than the 32 MB default limit.&lt;br /&gt;
&lt;br /&gt;
{&amp;#039;&amp;#039;end optional technical details&amp;#039;&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
===Film at 11===&lt;br /&gt;
&lt;br /&gt;
To temporarily configure your system to allow for the successful allocation of the larger chunks of shared memory required by:&lt;br /&gt;
* ZoneMinder versions 1.23 and older, or&lt;br /&gt;
* ZoneMinder versions 1.24 and newer, unless the --enable--mmap=yes configuration switch has been selected&lt;br /&gt;
issue the following command (or possibly with an even larger value if you are planning ahead for using a camera with higher resolution soon):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# echo 37000000 &amp;gt;/proc/sys/kernel/shmmax&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once you have verified correct operation (below), you will want to read the FAQ entry linked above for a reminder of how to have this configuration choice retained and implemented each time the Linux system starts.  For this change to be effective, you need to start (or restart, if you were not paying attention above) the zoneminder service:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Returning to the web page for the ZoneMinder console, [http://localhost/zm/], select the Source column of the line for this camera, e.g. 169.254.225.221, to open the monitor configuration dialog again.  On the Source tab of this page, set: &lt;br /&gt;
* the Capture Width (pixels) to be 640, and&lt;br /&gt;
* the Capture Height (pixels) to be 480. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderChangeMonitor.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select the Save command button.&lt;br /&gt;
Returning to the ZoneMinder console web page, [http://localhost/zm/] select the name of the camera you just modified.  You can view the live video feed from the camera at the 640 by 480 resolution in the resulting window.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderFeed640x480.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3807</id>
		<title>Intellinet</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3807"/>
		<updated>2010-06-19T00:09:32Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: /* Film at 11 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This information relates to the Intellinet&lt;br /&gt;
Network IP Camera&lt;br /&gt;
Professional Series&lt;br /&gt;
Medel [sic, per cover of User&amp;#039;s Guide] or Model 550710.&lt;br /&gt;
The external appearance of this camera is shown below.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetProSeries550710.png|image of camera]] &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[ from&lt;br /&gt;
[http://www.intellinet-network.com/en-US/products/3358-pro-series-network-camera] ]&lt;br /&gt;
&lt;br /&gt;
Note that the plastic case of this camera gets warm &lt;br /&gt;
(e.g. 22 degree F elevation above ambient)&lt;br /&gt;
after it has been powered on for a while.&lt;br /&gt;
&lt;br /&gt;
Aim your web browser at the address you selected for your camera,&lt;br /&gt;
and supply the login credentials for an Administrator of your camera. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraHomepage.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The manufacturer&amp;#039;s default administrator Username is &amp;quot;admin&amp;quot;&lt;br /&gt;
with a Password of &amp;quot;admin&amp;quot; (per page 31 of User&amp;#039;s Guide).&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
scroll down to the bottom to select the hyperlink to the Administrator Menu.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraMain.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[ Note that in the large grey central section of this browser window,&lt;br /&gt;
if one were using a browser that supported ActiveX one would see&lt;br /&gt;
the real-time live video feed from the camera.&lt;br /&gt;
However, even when one selects the viewing program option &lt;br /&gt;
shown on the previous screen for &lt;br /&gt;
&amp;quot;Java Applet for Netscape Navigator, Mozilla, Firefox, Opera &lt;br /&gt;
and other browsers&amp;quot;,&lt;br /&gt;
the video feed is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; displayed on this page by at least Firefox 3.6.3,&lt;br /&gt;
whether under Windows (e.g. XP) or Linux (Fedora).&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select the hyperlink to Image Configuration.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraAdmin.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select&lt;br /&gt;
* Compression Rate to be Level 1 &lt;br /&gt;
[Under both firmware levels of FL000004.0 (as this unit was shipped)&lt;br /&gt;
and after firmware upgrade to FL000004.29 (the only version available at the manufacturer&amp;#039;s website as of 2010-06-), leaving the Compression Rate at the default of Level 10 led to ZoneMinder not displaying the images.]&lt;br /&gt;
* Image Size to be 320 x 240,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraImageConfiguration.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On this web page,&lt;br /&gt;
select the hyperlink to System Configuration,&lt;br /&gt;
and select the option to enable &lt;br /&gt;
&amp;quot;Direct public access to image by HTTP&amp;quot;,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraSystemConfiguration.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aim your web browser to the appropriate URL resembling:&lt;br /&gt;
[http://169.254.225.221/jpg/image.jpg]&lt;br /&gt;
(supplying the IP address of your camera, and&lt;br /&gt;
possibly a different name for the image if you so chose) &lt;br /&gt;
to verify that you can see a still image in your web browser.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:CameraImage320x240.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is the view from the Intellinet camera as configured above of&lt;br /&gt;
a portion of an 8.5 inch by 11 inch piece of paper containing&lt;br /&gt;
a printed copy of &lt;br /&gt;
[http://upload.wikimedia.org/wikipedia/commons/6/6d/Philips_Pattern_PM5644.png]&lt;br /&gt;
(see [http://en.wikipedia.org/wiki/Test_card] )&lt;br /&gt;
with the camera lens at a distance of roughly 8.5 inches from&lt;br /&gt;
the paper print, illuminated by indoor fluorescent lamps.&lt;br /&gt;
&lt;br /&gt;
Note that this camera also supports an image resolutions of 160 by 120 pixels or 640 by 480 pixels.  The image of this same sheet of paper from approximately the same distance with the same lens focus setting under the same lighting conditions does show more detail when the image resolution is 640 by 480 pixels. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:CameraImage640x480.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since successfully capturing an image stream of this resolution from a camera with ZoneMinder likely requires you to perform some additional configuration, let&amp;#039;s first verify that your ZoneMinder configuration interacts correctly at this lower camera resolution.  See [[Step Up to VGA Resolution]] below for how to capture more information from this camera with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
After you have installed all of the necessary software for ZoneMinder, &lt;br /&gt;
unless you have already configured all of the daemons to be started&lt;br /&gt;
each time the system is booted, &lt;br /&gt;
you will probably need to issue commands similar to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service mysqld start&lt;br /&gt;
Starting mysqld:                                           [  OK  ]&lt;br /&gt;
[root@who ~]# service httpd start&lt;br /&gt;
Starting httpd:                                            [  OK  ]&lt;br /&gt;
[root@209 ~]# setenforce 0 ## temporarily turn off SELinux enforcing mode&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]#&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Now you should be able to load the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
where you can select the Add New Monitor command button.&lt;br /&gt;
&lt;br /&gt;
On the General tab of the resulting page, &lt;br /&gt;
select Remote as the Source Type.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorGeneral.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On the Source tab of this page, &lt;br /&gt;
select &lt;br /&gt;
* the Remote Protocol to be HTTP,&lt;br /&gt;
* the Remote Host Name to be the IP address of your camera, &lt;br /&gt;
* the Remote Host Path to be jpg/image.jpg,&lt;br /&gt;
* the Remote Image Colours to be 24 bit colour,&lt;br /&gt;
* the Capture Width (pixels) to be 320, and&lt;br /&gt;
* the Capture Height (pixels) to be 240.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorSource.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select the Save command button.&lt;br /&gt;
&lt;br /&gt;
Now, as one returns to the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
select the name of the camera you just defined.&lt;br /&gt;
&amp;lt;br&amp;gt;[[Image:ZoneMinderConsole.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will open a window containing the live video feed from the camera.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderFeed.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Step Up to VGA Resolution===&lt;br /&gt;
&lt;br /&gt;
Once you tire of seeing small and fuzzily, you may wish to change the configuration to utilize the highest resolution offered by this camera.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder stop&lt;br /&gt;
Stopping zoneminder:                                        [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A necessary step is to return to the Image Configuration page of the camera&amp;#039;s Administrator Menu, via a url resembling [http://169.254.225.221/main_configure.cgi].  On this web page, select:&lt;br /&gt;
* Image Size to be 640 x 480,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:IntellinetIPCameraImageConfiguration2.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are an optimist, or wish to repeat or verify some debugging steps, you could go ahead and just change the expected image size within ZoneMinder to match.  But it is likely that you will also need to change the configuration of your operating system to meet with success in this quest.  Many previous forum postings here seem to ask &amp;quot;320 x 240 working, how do I make 640 x 480 work?&amp;quot; ... with no positive and constructive answers following.  There is no device-specific issue with this particular camera model, but the frustrations are caused by a general issue with how larger images from any camera are processed by ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
If you desire to merely read the executive summary, you may skip ahead to the probable successful conclusion below the heading [[Film at 11]].  If you are so clever as to encounter another failure mode, it is possible that returning here and reading the sections skipped may offer some diagnostic clues.&lt;br /&gt;
&lt;br /&gt;
{&amp;#039;&amp;#039;begin optional technical details&amp;#039;&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
If you were persistent and merely:&lt;br /&gt;
* changed the expected image size within ZoneMinder to also be 640 by 480, &lt;br /&gt;
* restarted ZoneMinder, and&lt;br /&gt;
* selected this camera name on the ZoneMinder console,&lt;br /&gt;
your reward is likely to be a black square on your screen where you would expect to see the live video feed.  Since you are persistent, you then read some troubleshooting tips in:&lt;br /&gt;
http://www.zoneminder.com/wiki/index.php/Troubleshooting&lt;br /&gt;
and within the ZoneMinder console, selected Options, and on the Debug tab of the resulting dialog, selected the checkbox for&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  EXTRA_DEBUG&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and set the value for&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  EXTRA_DEBUG_LEVEL &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to e.g. 5 or greater.  After saving these changes, and starting or restarting Zoneminder via:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
you seek some clues in the files with names in the pattern of /tmp/zm_debug.log.*.  (If you list or sort these files by modification date, you can quickly see which few log files have contents affected by the recent (within the last few minutes) ZoneMinder activity.)  You are likely to find lines similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
06/15/10 19:59:16.166399 zms[6444].DB1-zm_monitor.cpp/345 [mem.size=36865192]&lt;br /&gt;
06/15/10 19:59:16.166751 zms[6444].ERR-zm_monitor.cpp/378 [Can&amp;#039;t shmget, probably not enough shared memory space free: Invalid argument]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
One of the better places to read material that will assist in understanding this error message is:&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/wiki/index.php/FAQ#What_does_a_.27Can.27t_shmget:_Invalid_argument.27_error_in_my_logs_mean.3F_and_my_cameras_won.27t_display_video_at_higher_resolutions&lt;br /&gt;
&lt;br /&gt;
Many operating system distributions and installed systems apparently use 32 MB = 32 * 1024 * 1024 = 33554432 as the default upper limit for the size of chunks of shared memory that will be offered in respose to requests.  You can verify that this generalization is true for your system by comparing the output of this command when run on your system:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ cat /proc/sys/kernel/shmmax&lt;br /&gt;
33554432&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you may have already read in the FAQ entry cited above, or in your zm_debug.log file, ZoneMinder needs to use a chunk of shared memory of size:&lt;br /&gt;
ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead = 36 * 640 * 480 * 3 * 1.101 = 36865192    &lt;br /&gt;
This just happens to be a few megabytes larger than the 32 MB default limit.&lt;br /&gt;
&lt;br /&gt;
{&amp;#039;&amp;#039;end optional technical details&amp;#039;&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a name=&amp;quot;film&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
===Film at 11===&lt;br /&gt;
&lt;br /&gt;
To temporarily configure your system to allow for the successful allocation of the larger chunks of shared memory required by:&lt;br /&gt;
* ZoneMinder versions 1.23 and older, or&lt;br /&gt;
* ZoneMinder versions 1.24 and newer, unless the --enable--mmap=yes configuration switch has been selected&lt;br /&gt;
issue the following command (or possibly with an even larger value if you are planning ahead for using a camera with higher resolution soon):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# echo 37000000 &amp;gt;/proc/sys/kernel/shmmax&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once you have verified correct operation (below), you will want to read the FAQ entry linked above for a reminder of how to have this configuration choice retained and implemented each time the Linux system starts.  For this change to be effective, you need to start (or restart, if you were not paying attention above) the zoneminder service:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Returning to the web page for the ZoneMinder console, [http://localhost/zm/], select the Source column of the line for this camera, e.g. 169.254.225.221, to open the monitor configuration dialog again.  On the Source tab of this page, set: &lt;br /&gt;
* the Capture Width (pixels) to be 640, and&lt;br /&gt;
* the Capture Height (pixels) to be 480. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderChangeMonitor.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select the Save command button.&lt;br /&gt;
Returning to the ZoneMinder console web page, [http://localhost/zm/] select the name of the camera you just modified.  You can view the live video feed from the camera at the 640 by 480 resolution in the resulting window.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderFeed640x480.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3806</id>
		<title>Intellinet</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3806"/>
		<updated>2010-06-19T00:05:27Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: Show how to utilize the 640 x 480 resolution of this camera with ZoneMinder.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This information relates to the Intellinet&lt;br /&gt;
Network IP Camera&lt;br /&gt;
Professional Series&lt;br /&gt;
Medel [sic, per cover of User&amp;#039;s Guide] or Model 550710.&lt;br /&gt;
The external appearance of this camera is shown below.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetProSeries550710.png|image of camera]] &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[ from&lt;br /&gt;
[http://www.intellinet-network.com/en-US/products/3358-pro-series-network-camera] ]&lt;br /&gt;
&lt;br /&gt;
Note that the plastic case of this camera gets warm &lt;br /&gt;
(e.g. 22 degree F elevation above ambient)&lt;br /&gt;
after it has been powered on for a while.&lt;br /&gt;
&lt;br /&gt;
Aim your web browser at the address you selected for your camera,&lt;br /&gt;
and supply the login credentials for an Administrator of your camera. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraHomepage.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The manufacturer&amp;#039;s default administrator Username is &amp;quot;admin&amp;quot;&lt;br /&gt;
with a Password of &amp;quot;admin&amp;quot; (per page 31 of User&amp;#039;s Guide).&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
scroll down to the bottom to select the hyperlink to the Administrator Menu.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraMain.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[ Note that in the large grey central section of this browser window,&lt;br /&gt;
if one were using a browser that supported ActiveX one would see&lt;br /&gt;
the real-time live video feed from the camera.&lt;br /&gt;
However, even when one selects the viewing program option &lt;br /&gt;
shown on the previous screen for &lt;br /&gt;
&amp;quot;Java Applet for Netscape Navigator, Mozilla, Firefox, Opera &lt;br /&gt;
and other browsers&amp;quot;,&lt;br /&gt;
the video feed is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; displayed on this page by at least Firefox 3.6.3,&lt;br /&gt;
whether under Windows (e.g. XP) or Linux (Fedora).&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select the hyperlink to Image Configuration.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraAdmin.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select&lt;br /&gt;
* Compression Rate to be Level 1 &lt;br /&gt;
[Under both firmware levels of FL000004.0 (as this unit was shipped)&lt;br /&gt;
and after firmware upgrade to FL000004.29 (the only version available at the manufacturer&amp;#039;s website as of 2010-06-), leaving the Compression Rate at the default of Level 10 led to ZoneMinder not displaying the images.]&lt;br /&gt;
* Image Size to be 320 x 240,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraImageConfiguration.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On this web page,&lt;br /&gt;
select the hyperlink to System Configuration,&lt;br /&gt;
and select the option to enable &lt;br /&gt;
&amp;quot;Direct public access to image by HTTP&amp;quot;,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:IntellinetIPCameraSystemConfiguration.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aim your web browser to the appropriate URL resembling:&lt;br /&gt;
[http://169.254.225.221/jpg/image.jpg]&lt;br /&gt;
(supplying the IP address of your camera, and&lt;br /&gt;
possibly a different name for the image if you so chose) &lt;br /&gt;
to verify that you can see a still image in your web browser.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:CameraImage320x240.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is the view from the Intellinet camera as configured above of&lt;br /&gt;
a portion of an 8.5 inch by 11 inch piece of paper containing&lt;br /&gt;
a printed copy of &lt;br /&gt;
[http://upload.wikimedia.org/wikipedia/commons/6/6d/Philips_Pattern_PM5644.png]&lt;br /&gt;
(see [http://en.wikipedia.org/wiki/Test_card] )&lt;br /&gt;
with the camera lens at a distance of roughly 8.5 inches from&lt;br /&gt;
the paper print, illuminated by indoor fluorescent lamps.&lt;br /&gt;
&lt;br /&gt;
Note that this camera also supports an image resolutions of 160 by 120 pixels or 640 by 480 pixels.  The image of this same sheet of paper from approximately the same distance with the same lens focus setting under the same lighting conditions does show more detail when the image resolution is 640 by 480 pixels. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:CameraImage640x480.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since successfully capturing an image stream of this resolution from a camera with ZoneMinder likely requires you to perform some additional configuration, let&amp;#039;s first verify that your ZoneMinder configuration interacts correctly at this lower camera resolution.  See [[Step Up to VGA Resolution]] below for how to capture more information from this camera with ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
After you have installed all of the necessary software for ZoneMinder, &lt;br /&gt;
unless you have already configured all of the daemons to be started&lt;br /&gt;
each time the system is booted, &lt;br /&gt;
you will probably need to issue commands similar to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service mysqld start&lt;br /&gt;
Starting mysqld:                                           [  OK  ]&lt;br /&gt;
[root@who ~]# service httpd start&lt;br /&gt;
Starting httpd:                                            [  OK  ]&lt;br /&gt;
[root@209 ~]# setenforce 0 ## temporarily turn off SELinux enforcing mode&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]#&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Now you should be able to load the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
where you can select the Add New Monitor command button.&lt;br /&gt;
&lt;br /&gt;
On the General tab of the resulting page, &lt;br /&gt;
select Remote as the Source Type.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorGeneral.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
On the Source tab of this page, &lt;br /&gt;
select &lt;br /&gt;
* the Remote Protocol to be HTTP,&lt;br /&gt;
* the Remote Host Name to be the IP address of your camera, &lt;br /&gt;
* the Remote Host Path to be jpg/image.jpg,&lt;br /&gt;
* the Remote Image Colours to be 24 bit colour,&lt;br /&gt;
* the Capture Width (pixels) to be 320, and&lt;br /&gt;
* the Capture Height (pixels) to be 240.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorSource.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select the Save command button.&lt;br /&gt;
&lt;br /&gt;
Now, as one returns to the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
select the name of the camera you just defined.&lt;br /&gt;
&amp;lt;br&amp;gt;[[Image:ZoneMinderConsole.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will open a window containing the live video feed from the camera.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderFeed.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Step Up to VGA Resolution===&lt;br /&gt;
&lt;br /&gt;
Once you tire of seeing small and fuzzily, you may wish to change the configuration to utilize the highest resolution offered by this camera.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder stop&lt;br /&gt;
Stopping zoneminder:                                        [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
A necessary step is to return to the Image Configuration page of the camera&amp;#039;s Administrator Menu, via a url resembling [http://169.254.225.221/main_configure.cgi].  On this web page, select:&lt;br /&gt;
* Image Size to be 640 x 480,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:IntellinetIPCameraImageConfiguration2.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are an optimist, or wish to repeat or verify some debugging steps, you could go ahead and just change the expected image size within ZoneMinder to match.  But it is likely that you will also need to change the configuration of your operating system to meet with success in this quest.  Many previous forum postings here seem to ask &amp;quot;320 x 240 working, how do I make 640 x 480 work?&amp;quot; ... with no positive and constructive answers following.  There is no device-specific issue with this particular camera model, but the frustrations are caused by a general issue with how larger images from any camera are processed by ZoneMinder.&lt;br /&gt;
&lt;br /&gt;
If you desire to merely read the executive summary, you may skip ahead to the probable successful conclusion below the heading [[Film at 11]].  If you are so clever as to encounter another failure mode, it is possible that returning here and reading the sections skipped may offer some diagnostic clues.&lt;br /&gt;
&lt;br /&gt;
{&amp;#039;&amp;#039;begin optional technical details&amp;#039;&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
If you were persistent and merely:&lt;br /&gt;
* changed the expected image size within ZoneMinder to also be 640 by 480, &lt;br /&gt;
* restarted ZoneMinder, and&lt;br /&gt;
* selected this camera name on the ZoneMinder console,&lt;br /&gt;
your reward is likely to be a black square on your screen where you would expect to see the live video feed.  Since you are persistent, you then read some troubleshooting tips in:&lt;br /&gt;
http://www.zoneminder.com/wiki/index.php/Troubleshooting&lt;br /&gt;
and within the ZoneMinder console, selected Options, and on the Debug tab of the resulting dialog, selected the checkbox for&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  EXTRA_DEBUG&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and set the value for&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  EXTRA_DEBUG_LEVEL &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to e.g. 5 or greater.  After saving these changes, and starting or restarting Zoneminder via:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
you seek some clues in the files with names in the pattern of /tmp/zm_debug.log.*.  (If you list or sort these files by modification date, you can quickly see which few log files have contents affected by the recent (within the last few minutes) ZoneMinder activity.)  You are likely to find lines similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
06/15/10 19:59:16.166399 zms[6444].DB1-zm_monitor.cpp/345 [mem.size=36865192]&lt;br /&gt;
06/15/10 19:59:16.166751 zms[6444].ERR-zm_monitor.cpp/378 [Can&amp;#039;t shmget, probably not enough shared memory space free: Invalid argument]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
One of the better places to read material that will assist in understanding this error message is:&lt;br /&gt;
&lt;br /&gt;
http://www.zoneminder.com/wiki/index.php/FAQ#What_does_a_.27Can.27t_shmget:_Invalid_argument.27_error_in_my_logs_mean.3F_and_my_cameras_won.27t_display_video_at_higher_resolutions&lt;br /&gt;
&lt;br /&gt;
Many operating system distributions and installed systems apparently use 32 MB = 32 * 1024 * 1024 = 33554432 as the default upper limit for the size of chunks of shared memory that will be offered in respose to requests.  You can verify that this generalization is true for your system by comparing the output of this command when run on your system:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[u@who ~]$ cat /proc/sys/kernel/shmmax&lt;br /&gt;
33554432&lt;br /&gt;
[u@who ~]$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you may have already read in the FAQ entry cited above, or in your zm_debug.log file, ZoneMinder needs to use a chunk of shared memory of size:&lt;br /&gt;
ring buffer size x image width x image height x 3 (for 24 bit images) + a bit of overhead = 36 * 640 * 480 * 3 * 1.101 = 36865192    &lt;br /&gt;
This just happens to be a few megabytes larger than the 32 MB default limit.&lt;br /&gt;
&lt;br /&gt;
{&amp;#039;&amp;#039;end optional technical details&amp;#039;&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
===Film at 11===&lt;br /&gt;
&lt;br /&gt;
To temporarily configure your system to allow for the successful allocation of the larger chunks of shared memory required by:&lt;br /&gt;
* ZoneMinder versions 1.23 and older, or&lt;br /&gt;
* ZoneMinder versions 1.24 and newer, unless the --enable--mmap=yes configuration switch has been selected&lt;br /&gt;
issue the following command (or possibly with an even larger value if you are planning ahead for using a camera with higher resolution soon):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# echo 37000000 &amp;gt;/proc/sys/kernel/shmmax&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once you have verified correct operation (below), you will want to read the FAQ entry linked above for a reminder of how to have this configuration choice retained and implemented each time the Linux system starts.  For this change to be effective, you need to start (or restart, if you were not paying attention above) the zoneminder service:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Returning to the web page for the ZoneMinder console, [http://localhost/zm/], select the Source column of the line for this camera, e.g. 169.254.225.221, to open the monitor configuration dialog again.  On the Source tab of this page, set: &lt;br /&gt;
* the Capture Width (pixels) to be 640, and&lt;br /&gt;
* the Capture Height (pixels) to be 480. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderChangeMonitor.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select the Save command button.&lt;br /&gt;
Returning to the ZoneMinder console web page, [http://localhost/zm/] select the name of the camera you just modified.  You can view the live video feed from the camera at the 640 by 480 resolution in the resulting window.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:ZoneMinderFeed640x480.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderFeed640x480.png&amp;diff=3805</id>
		<title>File:ZoneMinderFeed640x480.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderFeed640x480.png&amp;diff=3805"/>
		<updated>2010-06-18T23:54:25Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: Image capture of screen dialog.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Image capture of screen dialog.&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderChangeMonitor.png&amp;diff=3804</id>
		<title>File:ZoneMinderChangeMonitor.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderChangeMonitor.png&amp;diff=3804"/>
		<updated>2010-06-18T23:53:03Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: Image capture of screen dialog.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Image capture of screen dialog.&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3785</id>
		<title>Intellinet</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Intellinet&amp;diff=3785"/>
		<updated>2010-06-08T01:09:09Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This information relates to the Intellinet&lt;br /&gt;
Network IP Camera&lt;br /&gt;
Professional Series&lt;br /&gt;
Medel [sic, per cover of User&amp;#039;s Guide] or Model 550710.&lt;br /&gt;
The external appearance of this camera is shown below.&lt;br /&gt;
[ [[Image:IntellinetProSeries550710.png|image of camera]] &lt;br /&gt;
&lt;br /&gt;
from&lt;br /&gt;
[http://www.intellinet-network.com/en-US/products/3358-pro-series-network-camera]&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
Note that the plastic case of this camera gets warm &lt;br /&gt;
(e.g. 22 degree F elevation above ambient)&lt;br /&gt;
after it has been powered on for a while.&lt;br /&gt;
&lt;br /&gt;
Aim your web browser at the address you selected for your camera,&lt;br /&gt;
and supply the login credentials for an Administrator of your camera. &lt;br /&gt;
[[Image:IntellinetIPCameraHomepage.png]]&lt;br /&gt;
&lt;br /&gt;
The manufacturer&amp;#039;s default administrator Username is &amp;quot;admin&amp;quot;&lt;br /&gt;
with a Password of &amp;quot;admin&amp;quot; (per page 31 of User&amp;#039;s Guide).&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
scroll down to the bottom to select the hyperlink to the Administrator Menu.&lt;br /&gt;
[[Image:IntellinetIPCameraMain.png]]&lt;br /&gt;
&lt;br /&gt;
[ Note that in the large grey central section of this browser window,&lt;br /&gt;
if one were using a browser that supported ActiveX one would see&lt;br /&gt;
the real-time live video feed from the camera.&lt;br /&gt;
However, even when one selects the viewing program option &lt;br /&gt;
shown on the previous screen for &lt;br /&gt;
&amp;quot;Java Applet for Netscape Navigator, Mozilla, Firefox, Opera &lt;br /&gt;
and other browsers&amp;quot;,&lt;br /&gt;
the video feed is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; displayed on this page by at least Firefox 3.6.3,&lt;br /&gt;
whether under Windows (e.g. XP) or Linux (Fedora).&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select the hyperlink to Image Configuration.&lt;br /&gt;
[[Image:IntellinetIPCameraAdmin.png]]&lt;br /&gt;
&lt;br /&gt;
On the resulting web page,&lt;br /&gt;
select&lt;br /&gt;
* Compression Rate to be Level 1 &lt;br /&gt;
[Under both firmware levels of FL000004.0 (as this unit was shipped)&lt;br /&gt;
and after firmware upgrade to FL000004.29 (the only version available at the manufacturer&amp;#039;s website as of 2010-06-), leaving the Compression Rate at the default of Level 10 led to ZoneMinder not displaying the images.]&lt;br /&gt;
* Image Size to be 320 x 240,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
[[Image:IntellinetIPCameraImageConfiguration.png]]&lt;br /&gt;
&lt;br /&gt;
On this web page,&lt;br /&gt;
select the hyperlink to System Configuration,&lt;br /&gt;
and select the option to enable &lt;br /&gt;
&amp;quot;Direct public access to image by HTTP&amp;quot;,&lt;br /&gt;
then select the Submit command button.&lt;br /&gt;
[[Image:IntellinetIPCameraSystemConfiguration.png]]&lt;br /&gt;
&lt;br /&gt;
Aim your web browser to the appropriate URL resembling:&lt;br /&gt;
[http://169.254.225.221/jpg/image.jpg]&lt;br /&gt;
&lt;br /&gt;
(supplying the IP address of your camera, and&lt;br /&gt;
possibly a different name for the image if you so chose) &lt;br /&gt;
to verify that you can see a still image in your web browser.&lt;br /&gt;
[[Image:CameraImage320x240.png]]&lt;br /&gt;
&lt;br /&gt;
This is the view from the Intellinet camera as configured above of&lt;br /&gt;
a portion of an 8.5 inch by 11 inch piece of paper containing&lt;br /&gt;
a printed copy of &lt;br /&gt;
[http://upload.wikimedia.org/wikipedia/commons/6/6d/Philips_Pattern_PM5644.png]&lt;br /&gt;
(see [http://en.wikipedia.org/wiki/Test_card] )&lt;br /&gt;
with the camera lens at a distance of roughly 8.5 inches from&lt;br /&gt;
the paper print, illuminated by indoor fluorescent lamps.&lt;br /&gt;
&lt;br /&gt;
Note that this camera also supports an image resolution of 640 by 480 pixels,&lt;br /&gt;
and its image of this same sheet of paper &lt;br /&gt;
from approximately the same distance&lt;br /&gt;
with the same lens focus setting&lt;br /&gt;
under the same lighting conditions&lt;br /&gt;
does show more detail.&lt;br /&gt;
[[Image:CameraImage640x480.png]]&lt;br /&gt;
&lt;br /&gt;
But as of yet it is unknown how to capture an image stream of this&lt;br /&gt;
resolution from this camera with ZoneMinder.&lt;br /&gt;
[ See [[Problems]] below.]&lt;br /&gt;
&lt;br /&gt;
After you have installed all of the necessary software for ZoneMinder, &lt;br /&gt;
unless you have already configured all of the daemons to be started&lt;br /&gt;
each time the system is booted, &lt;br /&gt;
you will probably need to issue commands similar to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[root@who ~]# service mysqld start&lt;br /&gt;
Starting mysqld:                                           [  OK  ]&lt;br /&gt;
[root@who ~]# service httpd start&lt;br /&gt;
Starting httpd:                                            [  OK  ]&lt;br /&gt;
[root@209 ~]# setenforce 0 ## temporarily turn off SELinux enforcing mode&lt;br /&gt;
[root@who ~]# service zoneminder start&lt;br /&gt;
Starting zoneminder:                                       [  OK  ]&lt;br /&gt;
[root@who ~]#&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Now you should be able to load the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
where you can select the Add New Monitor command button.&lt;br /&gt;
&lt;br /&gt;
On the General tab of the resulting page, &lt;br /&gt;
select Remote as the Source Type.&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorGeneral.png]]&lt;br /&gt;
&lt;br /&gt;
On the Source tab of this page, &lt;br /&gt;
select &lt;br /&gt;
&lt;br /&gt;
* the Remote Protocol to be HTTP,&lt;br /&gt;
* the Remote Host Name to be the IP address of your camera, &lt;br /&gt;
* the Remote Host Path to be jpg/image.jpg,&lt;br /&gt;
* the Remote Image Colours to be 24 bit colour,&lt;br /&gt;
* the Capture Width (pixels) to be 320, and&lt;br /&gt;
* the Capture Height (pixels) to be 240.&lt;br /&gt;
&lt;br /&gt;
[[Image:ZoneMinderAddNewMonitorSource.png]]&lt;br /&gt;
&lt;br /&gt;
Select the Save command button.&lt;br /&gt;
&lt;br /&gt;
Now, as one returns to the ZoneMinder web page,&lt;br /&gt;
[http://localhost/zm/]&lt;br /&gt;
select the name of the camera you just defined.&lt;br /&gt;
[[Image:ZoneMinderConsole.png]]&lt;br /&gt;
&lt;br /&gt;
This will open a window containing the live video feed from the camera.&lt;br /&gt;
[[Image:ZoneMinderFeed.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
&lt;br /&gt;
Attempts to configure the Compression Rate &lt;br /&gt;
(using the Intellinet camera Administrator menu, Image Configuration)&lt;br /&gt;
to each of the possible values of Level 1 through Level 10&lt;br /&gt;
while the Image Size was set to 640 x 480 &lt;br /&gt;
all led to the same failure in ZoneMinder&lt;br /&gt;
(with the Capture Width set to be 640, and&lt;br /&gt;
the Capture Height set to be 480&lt;br /&gt;
on the Source tab of the Monitor page).&lt;br /&gt;
Instead of viewing the video feed, &lt;br /&gt;
a black square was displayed as the feed image, with a rate of 0 fps.&lt;br /&gt;
In each case while ZoneMinder could not display the data,&lt;br /&gt;
fetching&lt;br /&gt;
[http://169.254.225.221/jpg/image.jpg]&lt;br /&gt;
within a web browser yielded a new image of the expected resolution.&lt;br /&gt;
&lt;br /&gt;
Are there other configuration options which should be explored &lt;br /&gt;
within the camera settings, or within ZoneMinder?&lt;br /&gt;
Is it debugging time?&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderFeed.png&amp;diff=3784</id>
		<title>File:ZoneMinderFeed.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderFeed.png&amp;diff=3784"/>
		<updated>2010-06-08T01:07:04Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderConsole.png&amp;diff=3783</id>
		<title>File:ZoneMinderConsole.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderConsole.png&amp;diff=3783"/>
		<updated>2010-06-08T00:27:08Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderAddNewMonitorSource.png&amp;diff=3782</id>
		<title>File:ZoneMinderAddNewMonitorSource.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderAddNewMonitorSource.png&amp;diff=3782"/>
		<updated>2010-06-08T00:25:26Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderAddNewMonitorGeneral.png&amp;diff=3781</id>
		<title>File:ZoneMinderAddNewMonitorGeneral.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:ZoneMinderAddNewMonitorGeneral.png&amp;diff=3781"/>
		<updated>2010-06-08T00:23:58Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:CameraImage640x480.png&amp;diff=3780</id>
		<title>File:CameraImage640x480.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:CameraImage640x480.png&amp;diff=3780"/>
		<updated>2010-06-08T00:21:48Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:CameraImage320x240.png&amp;diff=3779</id>
		<title>File:CameraImage320x240.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:CameraImage320x240.png&amp;diff=3779"/>
		<updated>2010-06-08T00:19:36Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraSystemConfiguration.png&amp;diff=3778</id>
		<title>File:IntellinetIPCameraSystemConfiguration.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraSystemConfiguration.png&amp;diff=3778"/>
		<updated>2010-06-08T00:18:06Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraAdmin.png&amp;diff=3777</id>
		<title>File:IntellinetIPCameraAdmin.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraAdmin.png&amp;diff=3777"/>
		<updated>2010-06-08T00:15:52Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraImageConfiguration.png&amp;diff=3776</id>
		<title>File:IntellinetIPCameraImageConfiguration.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraImageConfiguration.png&amp;diff=3776"/>
		<updated>2010-06-08T00:14:17Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraMain.png&amp;diff=3775</id>
		<title>File:IntellinetIPCameraMain.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraMain.png&amp;diff=3775"/>
		<updated>2010-06-08T00:12:23Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraHomepage.png&amp;diff=3774</id>
		<title>File:IntellinetIPCameraHomepage.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetIPCameraHomepage.png&amp;diff=3774"/>
		<updated>2010-06-08T00:10:17Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetProSeries550710.png&amp;diff=3773</id>
		<title>File:IntellinetProSeries550710.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=File:IntellinetProSeries550710.png&amp;diff=3773"/>
		<updated>2010-06-08T00:06:42Z</updated>

		<summary type="html">&lt;p&gt;Jusfixit: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jusfixit</name></author>
	</entry>
</feed>