15:30 PM
asker
ZM_PATH_WEB=/usr/share/zoneminder/www
15:30 PM
jzaw nods
15:30 PM
my apis are /zm/api
15:30 PM
barjac joined the channel
15:31 PM
jzaw
is there a case for adding a new line to zm.conf ?
15:31 PM
default to /zm/api
15:31 PM
else what ever you put there relative to root of webdir ?
15:31 PM
asker
My knowledge if apache routing is zero, so I don't know
15:32 PM
jzaw nods
15:32 PM
jzaw
too
15:32 PM
i have to make all those api/.htaccess (and below) /api rather than /zm/api
15:32 PM
Schrottie has quit
15:35 PM
Schrottie joined the channel
15:36 PM
asker, if your path is /usr/share/zoneminder/www
15:36 PM
why is your api in /zm/api
15:36 PM
surely your path would need to be /usr/share/zoneminder/www/zm
15:36 PM
?
15:39 PM
ah im not sure you misunderstood what i was suggesting
15:39 PM
the api resides in the zm root
15:40 PM
so any path that's written to .htaccess at compilation needs to be relative to the apache root ... is that right ?
15:41 PM
i wonder how we detect that there is or is not a zm dir ... rather than the whole lot residing in the root
15:45 PM
asker
so directories are mapped to 'routing paths' (not the same) in zoneminder.conf , not zm.conf. If you look at zoneminder.conf, you will see an Alias that maps some alias to a real path
15:46 PM
That is how apache knows, that if you visite yoursite/alias -> it needs to go to look for files in the directory mapped to that site
15:47 PM
jzaw
ah zoneminder.conf ... /me looks
15:57 PM
barjac has quit
16:06 PM
zmjm
joao im using firefox and chrome, both still not working
16:09 PM
barjac joined the channel
16:09 PM
joao
zmjm: what values do you have on MPEG_LIVE_FORMAT and MPEG_REPLAY_FORMAT
16:09 PM
?
16:10 PM
and do you have cambozola.jar ? If so you can give it a try on IE
16:11 PM
altought you will need to create an because cambozola.jar is not signed
16:11 PM
*create an exception
16:29 PM
zmjm
swf
16:29 PM
joao
16:40 PM
barjac has quit
16:51 PM
joao
and what are you getting? the pop up window opens up but you get no image or what?
17:01 PM
achan joined the channel
17:24 PM
z0ne--- joined the channel
17:29 PM
z0ne--- has quit
17:33 PM
matthia__ joined the channel
17:40 PM
Haxxa joined the channel
17:41 PM
z0ne--- joined the channel
17:41 PM
z0ne---
ugh i timed out
17:41 PM
17:41 PM
17:42 PM
1.5mbps for 9 cameras? that seems low
18:18 PM
anyone here?
18:22 PM
jzaw
z0ne---, what are you using to measure network io?
18:23 PM
what are the cam settings ... 320x240 @1 fps ?
18:23 PM
in which case 1.5Mb/s prob isnt low
18:23 PM
ah vmstat
18:26 PM
my 1080p 5fps ip cams are doing about 3Mb/s each
18:27 PM
Robh__ joined the channel
18:29 PM
z0ne---
all the cameras are at 5fps
18:29 PM
let me tell you the resolution
18:30 PM
7 are at 480p
18:30 PM
2 at 720p
18:30 PM
all @ 5fps
18:30 PM
i used nmon to track the network io
18:31 PM
long as its not bottle necking i dont mind the nic card can go up to 1gbps
18:32 PM
im just trying to find out why they're now lagging after adding 2 more its not the cpu because its still only at 46.6%
18:32 PM
it peaks at 50%
18:32 PM
jzaw
are you storing jpgs?
18:32 PM
what is the io on your disk
18:33 PM
what's your load avg as per top
18:33 PM
what's the spec of this zm computer
18:33 PM
z0ne---, ^^
18:33 PM
z0ne---
so many questions hold on hah
18:34 PM
rob_h joined the channel
18:34 PM
how can i see what they're saving as? i checked the hdd io it seems minimal
18:35 PM
im assuming jpg i never modified that option
18:35 PM
asker
jzaw - cat 5e good for PoE ?
18:36 PM
jzaw
yes perfectly
18:36 PM
asker
thanks
18:36 PM
z0ne---
im installing sysstat to get the precise io now
18:36 PM
Robh__ has quit
18:37 PM
digdilem
we use 5e lots for poe, exterior grade if outside so it lasts longer in UV, otherwise bog standard.
18:37 PM
jzaw
asker, what poe switch are you using ?
18:37 PM
z0ne---
18:37 PM
Bodkin
Titler: avg-cpu: %user %nice %system %iowait %steal %idle 46.43 0. -
Pastebin.com
18:37 PM
z0ne---
there's no way it's the hard drive because im using modetect
18:37 PM
it rarely writers
18:37 PM
-writes
18:37 PM
jzaw
what poe injector or are you using or are you relying on built in poe
18:38 PM
z0ne---
how much free memory does zoneminder need to function?
18:38 PM
the host os is ubuntu free -m shows 121mb free
18:38 PM
achan joined the channel
18:38 PM
jzaw
frame rate x resolution x colour depth
18:38 PM
asker
18:39 PM
very happy with the dahua resolution and wide angle view
18:39 PM
jzaw
ooh youre going to have to tell me what model
18:40 PM
yeah that's an ok injector
18:40 PM
asker
18:40 PM
jzaw
i have 5 of the reciprocal splitters the tp-link 10R poe ... 5/9/12v switch
18:40 PM
work perfectly well for £10 ea
18:41 PM
ah nice cam you say ?
18:41 PM
digdilem
z0ne---, if you get sporadic high load events, it might be zmaudit checking all the files. you can adjust that if it's causing problems
18:41 PM
z0ne---
18:41 PM
Bodkin
Titler: sudo lshw -short H/W path Device Class Description ======== -
Pastebin.com
18:41 PM
z0ne---
things are now like 2-3 minutes behind after adding new cameras
18:41 PM
if i have to add more ram i'll do it
18:41 PM
i just want to find out what
18:41 PM
asker
yes, I like it -- good details.
18:41 PM
z0ne---
when viewing the camera
18:42 PM
digdilem
z0ne---, run top or better, htop (with disk/io enabled) to see what's causing the load
18:42 PM
z0ne---
sure let me do that now
18:42 PM
no other extension just htop?
18:42 PM
digdilem
that also shows free mem, but i unless you're <2gb I don't think it'll be that
18:42 PM
yeah, htop
18:43 PM
z0ne---
3gb of ram hah (sad i know)
18:43 PM
digdilem
it's a prettier, more readable version of top
18:43 PM
jzaw
asker you should get a poe switch if you plan more cams
18:43 PM
asker
yeah this is pretty much the last (famous last words, maybe)
18:43 PM
jzaw
z0ne---, i have my zm running in a VM with only 4GB ram total
18:44 PM
8 1080p cams
18:44 PM
digdilem
yeah, zm is light on ram
18:44 PM
jzaw
about 1.4GB free
18:44 PM
digdilem
i've run 40-odd cams on a 4gb box
18:44 PM
jzaw
zm is light but the ring buffer takes some ?
18:44 PM
MillerBoss joined the channel
18:44 PM
digdilem
if you use it :)
18:45 PM
z0ne---
maybe i need another gb of ram?
18:45 PM
jzaw
how do you avoid using it ?
18:45 PM
digdilem
maybe, what does htop say?
18:45 PM
z0ne---
let me dump the top output sec
18:45 PM
im having trouble because its saved as a txt file now
18:45 PM
jzaw
z0ne---, im not convinced you need more ram
18:45 PM
z0ne---
trying to figure out how to upload it
18:45 PM
asker
zm is light on RAM?
18:45 PM
z0ne---
via terminal
18:46 PM
ill just sftp into it sec
18:50 PM
wow what a pain i had to paste it as html
18:50 PM
18:50 PM
sorry for the cyan blue
18:52 PM
Mem[||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||938/2881MB] Uptime: 21:39:27
18:52 PM
weird
18:52 PM
free -m shows 2803 used
18:53 PM
digdilem
zmc = zoneminder capture, i'm guessing you're running a high fps, in colour, at high resolution (or your box is slow)
18:54 PM
the load issue seems to be mostly CPU related, not ram
18:54 PM
the mem - yellow is cached, so ignore that. it's only using it because it's there
18:55 PM
zma is the analysis daemon, that's only used for motion detection.
18:55 PM
matthia__ has quit
18:55 PM
one for each monitor/camera
18:56 PM
you seem to have four cameras added. Not seeing zmc for monitors 16 and 20 - are they capturing at low fps?
18:56 PM
oh, ignore that - i see them
18:57 PM
so - to reduce load, reduce the fps, cut resolution (if camera supports), switch to B&W, and/or go record instead of modect/mocord
18:57 PM
z0ne---
hmm
18:57 PM
digdilem
pick one or more from that list :)
18:57 PM
z0ne---
i have 9 added
18:57 PM
digdilem
are they all enabled and doing something?