ZM 1.24.1+ Problems and found Error
ZM 1.24.1+ Problems and found Error
Hi
i have fedora 11 (32bit + ext4) install/update it/ tuning and patched
all work fine and quick -- Load avarage 0.01 0 0
mysqld have -15 level (renice it )
but sam time i have message at time 01/01 03:00:00
this is strange (i read forum on this problem but not found solution)
maybe code programers insert in sourse dual check of date and time
and if found this situation recheck time?
and secon- sam time problem cameras view back wind if i manual disable it and enable
all work fine. (time to time all restore auto)/ cameras plugged on VPN
traffick a low on it.
ping delay 57..111 ms aver 60 ms
-- if cameras phisycly off preview wind not show nothing, but more best on this situation
view message - Cameras not plugged
Video server: MSI 780G + AMD X2 6000+
4G RAM
500G SATA HDD 7200rpm 16M
VPN work on Dlink DI-808VH
P.S. if need i shared my config for Tunning system for more powerfull and speed :)
PSS i add main page link for cgi script check IP camera state
and change default sort value to filtr Desc more actual than Asc sort
-----------
cat console.php |grep cgi
<h2 id="title"><a href="http://www.zoneminder.com" target="ZoneMinder">ZoneMinder</a> <?= $SLANG['Console'] ?> - <?= makePopupLink( '?view=state', 'zmState', 'state', $status, canEdit( 'System' ) ) ?> - <?= makePopupLink( '?view=version', 'zmVersion', 'version', "v".ZM_VERSION, canEdit( 'System' ) ) ?> - <a href="/cgi-bin/ip.cgi" target="ZM ">Camera status</a> </h2>
----------
cat ip.cgi
#!/bin/bash
PING='ping -c 2 -q -w 2 '
LIST=`cat /etc/cron.t/list`
function CameraState() {
for ip in ${LIST[@]}; do
echo -n "${ip} "
R=`$PING $ip`
#>& /dev/null
T="$?"
if [ "$T" != "0" ]; then
echo "<img src='/serveroff.gif' width='16' height='15' border='0'> Off-Line"
else
echo -n "<img src='/serveron.gif' width='16' height='15' border='0'> On-Line "
R=`echo ${R}|tail -n 1|cut --delimiter="=" -f 2|cut --delimiter="/" -f 2`
echo "[ delay $R ms ]"
fi
done
}
echo Content-type: text/html
echo ""
/bin/cat << EOM
<HTML>
<HEAD><TITLE>IP Statistics: `hostname` (pull 300 sec)</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="300">
<META HTTP-EQUIV="Cache-Control" content="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</HEAD>
<BODY bgcolor="#cccccc" text="#000000">
<P>
<SMALL>
<PRE>
EOM
CameraState
/bin/cat << EOM
</PRE>
</SMALL>
<P>
</BODY>
</HTML>
EOM
i have fedora 11 (32bit + ext4) install/update it/ tuning and patched
all work fine and quick -- Load avarage 0.01 0 0
mysqld have -15 level (renice it )
but sam time i have message at time 01/01 03:00:00
this is strange (i read forum on this problem but not found solution)
maybe code programers insert in sourse dual check of date and time
and if found this situation recheck time?
and secon- sam time problem cameras view back wind if i manual disable it and enable
all work fine. (time to time all restore auto)/ cameras plugged on VPN
traffick a low on it.
ping delay 57..111 ms aver 60 ms
-- if cameras phisycly off preview wind not show nothing, but more best on this situation
view message - Cameras not plugged
Video server: MSI 780G + AMD X2 6000+
4G RAM
500G SATA HDD 7200rpm 16M
VPN work on Dlink DI-808VH
P.S. if need i shared my config for Tunning system for more powerfull and speed :)
PSS i add main page link for cgi script check IP camera state
and change default sort value to filtr Desc more actual than Asc sort
-----------
cat console.php |grep cgi
<h2 id="title"><a href="http://www.zoneminder.com" target="ZoneMinder">ZoneMinder</a> <?= $SLANG['Console'] ?> - <?= makePopupLink( '?view=state', 'zmState', 'state', $status, canEdit( 'System' ) ) ?> - <?= makePopupLink( '?view=version', 'zmVersion', 'version', "v".ZM_VERSION, canEdit( 'System' ) ) ?> - <a href="/cgi-bin/ip.cgi" target="ZM ">Camera status</a> </h2>
----------
cat ip.cgi
#!/bin/bash
PING='ping -c 2 -q -w 2 '
LIST=`cat /etc/cron.t/list`
function CameraState() {
for ip in ${LIST[@]}; do
echo -n "${ip} "
R=`$PING $ip`
#>& /dev/null
T="$?"
if [ "$T" != "0" ]; then
echo "<img src='/serveroff.gif' width='16' height='15' border='0'> Off-Line"
else
echo -n "<img src='/serveron.gif' width='16' height='15' border='0'> On-Line "
R=`echo ${R}|tail -n 1|cut --delimiter="=" -f 2|cut --delimiter="/" -f 2`
echo "[ delay $R ms ]"
fi
done
}
echo Content-type: text/html
echo ""
/bin/cat << EOM
<HTML>
<HEAD><TITLE>IP Statistics: `hostname` (pull 300 sec)</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="300">
<META HTTP-EQUIV="Cache-Control" content="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</HEAD>
<BODY bgcolor="#cccccc" text="#000000">
<P>
<SMALL>
<PRE>
EOM
CameraState
/bin/cat << EOM
</PRE>
</SMALL>
<P>
</BODY>
</HTML>
EOM
Last edited by sef1976 on Mon Aug 17, 2009 10:39 am, edited 1 time in total.
found problem's
1)
if view cameras and click left mouse on view scales is OK
if select scales value on list see picture few second and his "fly away"
and not return if scales back
only reopen window
2) on create cameras (IP) state Enable and Monitor
but his not work
if i Disable - save
Enable -save
cameras work
3) if i create link for cameras for other's
if try reset this or reassign
previos not select but working - on Event have state Linked
4) if assign cameras for User
do not clear this assign (min 1 camers assgined forever)
5) Ip cameras offline but main screen view it not red
system not valid detect this state
1)
if view cameras and click left mouse on view scales is OK
if select scales value on list see picture few second and his "fly away"
and not return if scales back
only reopen window
2) on create cameras (IP) state Enable and Monitor
but his not work
if i Disable - save
Enable -save
cameras work
3) if i create link for cameras for other's
if try reset this or reassign
previos not select but working - on Event have state Linked
4) if assign cameras for User
do not clear this assign (min 1 camers assgined forever)
5) Ip cameras offline but main screen view it not red
system not valid detect this state
http://deka0.office-on-the.net/zm/ru_ru.php.tgz 1.24.2 version lang
i translate ru_ru.php and encode it ot UTF8
same tine if Ip cam's have a big delay or temporary off line (litle time)
system show freez image or black
and not auto reconect for it
i disable/enable cameras and his work again
ps if need i traslate it to Ukraine lang to.
i translate ru_ru.php and encode it ot UTF8
same tine if Ip cam's have a big delay or temporary off line (litle time)
system show freez image or black
and not auto reconect for it
i disable/enable cameras and his work again
ps if need i traslate it to Ukraine lang to.
Original code
but on standart of Rus/Ukr
Please change code to auto accept true value
found err:
as default Monitor name create SLANG but name must by only English a..z
if insert national symbols have error.
Ps. maybe set this value on LANG file?
Code: Select all
$nextId = getTableAutoInc( 'Monitors' );
$monitor = array(
'LabelFormat' => '%N - %y/%m/%d %H:%M:%S',
Code: Select all
'LabelFormat' => '%N - %d/%m/%Y %H:%M:%S',
found err:
as default Monitor name create SLANG but name must by only English a..z
if insert national symbols have error.
Ps. maybe set this value on LANG file?
if not show picture (on log say not socket file)
may insert Picture on show area?
on cambozola option
i add on code it but not see them
may insert Picture on show area?
on cambozola option
Code: Select all
failureimage
time to time om error_log apache
and after that php sesion on apache/cherokee freez and not respond
but CGI sesion work and HTML static too
return php for life - server httpd reload
his back and work.
i change php module 4.4/5.2.10/5.3
problem not away
Code: Select all
Timeout waiting for output from CGI script /var/www/cgi-bin/nph-zms, referer: http://...../index.php?view=watch&mid=16
but CGI sesion work and HTML static too
return php for life - server httpd reload
his back and work.
i change php module 4.4/5.2.10/5.3
problem not away
Code: Select all
Kernel Parameters
Shared memory: SHMMAX= 3294967296 SHMMNI= 4096 SHMALL= 2097152
Semaphore values: SEMMSL, SEMMNS, SEMOPM, SEMMNI: 1250 32000 100 256
based Oracle startUp script
ajax stream.php
i need if not cameras live image send to browser image (no_signal.gif)
i read php source, but socket operation redirect to server-socket (his send all time image no_signal) not run correctly.
Please help.
Server answer http://195.58.231.38:2020
i read php source, but socket operation redirect to server-socket (his send all time image no_signal) not run correctly.
Please help.
Server answer http://195.58.231.38:2020