Additional Monitor not working...

Forum for questions and support relating to the 1.26.x releases only.
Locked
basketcase
Posts: 31
Joined: Thu Aug 22, 2013 10:04 pm

Additional Monitor not working...

Post by basketcase »

Hi I've upgraded to 1.26 and been pretty chipper with how it's going, but today I installed 2 new cams into ZM:
- An network IP cam, a Hi3507; I have 2 others just like it
- A FoscamFI8910W

The Foscam worked first go, control and all.

The Hi3507, despite this exact camera being installed on a previous Zoneminder install and having identical settings to the other two it refuses to work.
It has successfully done my head in, resulting in tantrums, name calling of inanimate objects and lightweight items being thrown to the floor.

I press montage and all streams appear, less the new camera in question "monitor 13"

I receive these lines in the log consistently:

Code: Select all

2013-08-31 17:53:53.124714	web_php	2942	ERR	socket_sendto( /dev/shm/zms-165163s.sock ) failed: No such file or directory


2013-08-31 17:53:49.722371	web_php	3473	ERR	socket_sendto( /dev/shm/zms-366441s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	


2013-08-31 17:53:46.710184	web_php	6967	ERR	socket_sendto( /dev/shm/zms-366441s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php


2013-08-31 17:53:42.192843	web_php	6967	ERR	socket_sendto( /dev/shm/zms-366441s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php


2013-08-31 17:53:36.787368	zms	14326	ERR	Terminating, last frame sent time 1377935616.287293 secs more than maximum of 10.000000	zm_monitor.cpp
Now the stream I have in the source settings "rtsp://192.168.1.22:554/ch0_0.h264" will work when entered into VLC and is the same as the other two cams (IP's vary) this config has worked in the past so I'm thinking this is somehow memory related being the /dev/shm directory and all.


If I reset the camera, leaving Zoneminder running, my errors change:

Code: Select all

2013-08-31 18:00:07.004554	zmc_m13	13033	ERR	Unable to read packet from stream 0: error -110	zm_ffmpeg_camera.cpp	215

A red square will be displayed on the monitor.


This is short lived, the monitor will then will display nothing and show the following log messages:

Code: Select all

2013-08-31 18:02:06.745847	web_php	4453	ERR	socket_sendto( /dev/shm/zms-332326s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php


2013-08-31 18:02:02.825013	zms	14903	ERR	Got unexpected memory map file size 0, expected 96001760	zm_monitor.cpp
 

When I look in the /dev/shm directory I can see that zm.mmap.13 exists with the other cams.

Any suggestions would be greatly appreciated, not sure if this is a bug or what?
basketcase
Posts: 31
Joined: Thu Aug 22, 2013 10:04 pm

Re: Additional Monitor not working...

Post by basketcase »

So I've finally worked this out, but still don't understand the full extent of what was causing the issue.

All 3 IP cams are on a second NIC on the CentOS server, it runs a firewall where port 554 RTSP is open.

When firewall is enabled, 2 will work and the 3rd will fail, I disable the firewall all 3 work as intended. All are on the same port and subnet. I could repeat the issue like clockwork by flipping the firewall on and off.

Although unlikely as it was, turning the firewall off was the key for anyone diagnosing similar issues... looks like some more firewall meddling is required.

Any networking guru's may be able to tell me why 3 cams were too many on that port in the firewall or how to create an exception to whatever started blocking the 3rd cam would be appreciated.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Additional Monitor not working...

Post by bb99 »

Check the firewall settings for a "maximum connections" type setting. This issue was common in XP where on Home editions the limitation was 5 and Professional 10.
basketcase
Posts: 31
Joined: Thu Aug 22, 2013 10:04 pm

Re: Additional Monitor not working...

Post by basketcase »

Thanks BB99 I'm looking at IPtables, while there are variables that can stop multiple connections my iptables don't have any.

I've used the standard CentOS 6.5 GTK firewall settings and forwarded the required ports. I've disabled Selinux also.

Watered down version of the IPtables, the omitted lines are additional port forwards.

Code: Select all

num   pkts bytes target     prot opt in     out     source               destination  
1     1044 97956 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
15       0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:554
22    2996 3643K REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited
The ZM server sits behind 2 other firewalls before it can reach the internets but this issue is localised to the CentOS Firewall.

Probably worth me doing some reading and updating my firewall skills.
Kokab
Posts: 1
Joined: Sat Feb 21, 2015 9:26 am

Re: Additional Monitor not working...

Post by Kokab »

drwxr-xr-x 2 www-data www-data 4096 Aug 29 16:39 2
drwxr-xr-x 2 www-data www-data 4096 Aug 29 19:07 3
lrwxrwxrwx 1 www-data www-data 1 Aug 29 16:39 TestCamRecord -> 2
lrwxrwxrwx 1 www-data www-data 1 Aug 29 19:07 TestCamToWatch -> 3
kaleem
Locked