success!
I'll try to post everything I did to get it running. Small recap of my setup/conf:
OS - ubuntu 10.04 64bit
hardware - vmware virtual machine (everything remote, this VM has no gui desktop)
zoneminder - 1.24.2 (ubuntu pkg)
AXIS Cameras,
no rtsp (yet) - configured as:
General Tab - source type - remote
Source Tab - protocol = http
method = simple
host name = user:pass@host_ip_address
port = 80
path = /axis-cgi/mjpeg/video.cgi?resolution=800x600&compression=20
bit/width/height = 24bit @ 800x600
DIR_EVENTS - /var/www/zone_events/events
DIR_IMAGES - /var/www/zone_events/images
DIR_SOUNDS - /var/www/zone_events/sounds
PATH_SOCKS;LOGS;SWAP - /tmp
ubuntu installs the zoneminder web files at /usr/share/zoneminder/
and the cgi at /usr/lib/cgi-bin/
Some logs have been erased since so I can't paste exactly what they said but what i remember they said
IMPORTANT! Do all your testing with firefox,
do not use google chrome or some things won't work and you'll break your head wondering why. I've read ie8 also works. It's weird, I know.
I've noticed some weird things going on with the paths in zoneminder, either they're mixed up or I am. But I know for a fact that this one is:
Sympton: Images are being captured and stored but can't view them (individual frames) via web interface. Upon inspection the html is referring to images located at '/var/www/zone_events/' a local path instead of a web path.
Solution: (more like a workaround) soft link /var/www/var/www/
zone_events to /var/ww/zone_events (underlined text is the link, rest are real folders)
Symptom/log output: no playback of captured event frames; logs said it could not write ffmpeg.log.
It was trying to write files at '/usr/share/zoneminder/var/www/zone_events'
Solution: (also a workaround) soft link of '/var/' at '/usr/share/zoneminder'
Symptom/log output:Apache log spits out:
Code: Select all
[Thu Mar 10 15:26:31 2011] [error] [client 192.168.192.2] socket_sendto( /tmp/zms-331636s.sock ) failed: Connection refused, referer: http://10.1.1.12/zm/index.php?view=watch&mid=4
[Thu Mar 10 15:26:31 2011] [error] [client 192.168.192.2] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-331636s.sock ) failed: Connection refused',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://10.1.1.12/zm/index.php?view=watch&mid=4
And:
Code: Select all
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 808, referer: http://10.1.1.12/zm/index.php
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 813, referer: http://10.1.1.12/zm/index.php
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 808, referer: http://10.1.1.12/zm/index.php
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 813, referer: http://10.1.1.12/zm/index.php
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 808, referer: http://10.1.1.12/zm/index.php
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 813, referer: http://10.1.1.12/zm/index.php
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 808, referer: http://10.1.1.12/zm/index.php
[Mon Mar 07 15:21:44 2011] [error] [client 192.168.192.3] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 813, referer: http://10.1.1.12/zm/index.php
Solution: change all those to pret_match and fix the regular expressions in 'includes/functions.php' as shown below:
FROM:
Code: Select all
if (ereg( 'MSIE ([0-9].[0-9]{1,2})',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (ereg( 'Safari/([0-9.]+)',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (ereg( 'Konqueror/([0-9.]+)',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (ereg( 'Opera ([0-9].[0-9]{1,2})',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (ereg( 'Mozilla/([0-9].[0-9]{1,2})',$_SERVER['HTTP_USER_AGENT'],$logVersion))
TO:
Code: Select all
if (preg_match( '/^MSIE ([0-9].[0-9]{1,2})/',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (preg_match( '/^Safari\/([0-9.]+)/',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (preg_match( '/^Konqueror\/([0-9.]+)/',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (preg_match( '/^Opera ([0-9].[0-9]{1,2})/',$_SERVER['HTTP_USER_AGENT'],$logVersion))
elseif (preg_match( '/^Mozilla\/([0-9].[0-9]{1,2})/',$_SERVER['HTTP_USER_AGENT'],$logVersion))
There's also lonewolf's fix for the race condition which is documented
here
Regarding the massive logs being generated (/var/log/messages and syslog), it seems to have gotten fixed along with something else, I no longer have log-pollution.
My only beef right now is that zmaudit.pl doesn't do any cleaning up (I've tried with OPT_FAST_DELETE both on and off and no event files get deleted). The events do disappear from zoneminder and the database, but the captured files are still there. If I don't get any solutions here I may open up a thread regarding this to see if it catches more attention.
I -think- that's all I've done to get it going, I'll be sure to write down anything else that I remember or manage to fix.
-osoroco