Problems getting zoneminder to work with remote cameras

Support and queries relating to all previous versions of ZoneMinder
Locked
Sandy
Posts: 2
Joined: Wed Jun 15, 2005 1:15 pm

Problems getting zoneminder to work with remote cameras

Post by Sandy »

Hi,
Im having problems running the zoneminder daemons. Before you point me towards the FAQ i have read the entry which describes increasing shmmax/shmall.
echo 134217728 >/proc/sys/kernel/shmmax
echo 134217728 >/proc/sys/kernel/shmall
When trying to view a monitor on the web interface I get the following error in /var/log/messages:
Jun 15 15:05:05 camera_pc zmu[19905]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
And the following error in my apache error log:
[Wed Jun 15 15:15:41 2005] [error] [client 192.168.0.12] Premature end of script headers: zms, referer: http://192.168.0.8/index.php?view=watch ... 0&control=


When I try to run the capture daemon manually (zmc -m7) I get the following error:
Jun 15 15:05:09 camera_pc zmc_m7[19909]: INF [Debug Level = 0, Debug Log = <none>]
Jun 15 15:05:09 camera_pc zmc_m7[19909]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]

Any hints?

Sandy.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Are the zmc and/or zma processes running? Are the segments there, perhaps left over from a previous run (use ipcs -m to check)? Have you previously run as root and now are running as a different user? Finally, how have you configured your monitor?

Phil
Sandy
Posts: 2
Joined: Wed Jun 15, 2005 1:15 pm

Post by Sandy »

Hi,
thanks for the reply. In short, they weren't running.

Basically, I was being stupid and running apache under a different user, and the processes couldn't write the log files to /tmp (and subsequently died) because i had previously tried to run scripts using perl.

So, in short its all running perfectly now.

However I have a pretty lame camera box that has 4 coax inputs and can either run in fixed (1 camera only) or round robin (alternates round the 4 cameras that are on).

Obviously I would like to have zoneminder use all of the cameras, but am not sure about the best way to do this.

I can change the camera in fixed mode by doing something like
..and then fetch the image at a certain url
Any ideas?

Sandy.
Locked