|
Page 1 of 1
|
[ 6 posts ] |
|
| Author |
Message |
|
coke
Joined: Wed Jan 30, 2008 6:53 pm Posts: 519 Location: St. Louis, MO, USA
|
 Self-repair, diagnosis
It seems most/many of the questions on the forum involve people not getting an image, needing to show us the logs, and often have the shared memory issue. It'd be interesting if ZM, when having a problem with the camera, had a diagnose button. Checks shared memory settings, various file permissions, then pops up a text window with the appropriate log information to post to the forum, since many ZM newbies can't find their logs anyway.
Also could calculate the appropriate shared memory settings, make sure it's ok with the user, then repair them itself. Same with corrupted database files, could do an auto-repair on starting.
Couldn't solve everything (well, without loads of work), but could save a lot of frustration for users and posters.
Any thoughts?
|
| Thu Aug 07, 2008 11:07 pm |
|
|
|
 |
|
jameswilson
Joined: Wed Jun 08, 2005 9:07 pm Posts: 5081 Location: Midlands UK
|
if zm was only supported as its own distro then id say yeah, problem is all this distro's work in a slightly different way, it would be impossible for phil to write it. I for one would prefer a normal official zm distro that was updated etc, while the real gurus could still build it from source. But the support would be different. Most people use zm on its own machine anyway due to its requirements. but if that was done then yes great idea
_________________James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
|
| Fri Aug 08, 2008 12:23 am |
|
 |
|
coke
Joined: Wed Jan 30, 2008 6:53 pm Posts: 519 Location: St. Louis, MO, USA
|
Some day when I have some time to kill (hah), I'll see what I can do about implementing at least a little of it. Like checking the logs for "can't shmget" and offering them a link to the appropriate forum/wiki page.
|
| Fri Aug 08, 2008 8:10 pm |
|
 |
|
erpo41
Joined: Mon Jan 24, 2011 8:11 am Posts: 15
|
I am really angry about all of the time I wasted trying to get an image on my zoneminder system when it was a simple shared memory issue. I demand a full refund of the full amount I paid for the software.
Kidding aside, I am willing to do the coding to fix this if someone will point me in the right direction inside the zoneminder source code. Is there a getting started guide to hacking zoneminder?
|
| Sun Mar 06, 2011 3:11 am |
|
 |
|
mastertheknife
Joined: Wed Dec 16, 2009 5:32 pm Posts: 553 Location: Israel
|
 Re: Self-repair, diagnosis
Hi,
In ZM SVN (and 1.24.3) the default shared memory mode is mmap, which unlike shm shared memory, should not require any configuration (e.g. shmmax shmall stuff). This is a good step in the right direction.
The error handling and reporting for ZM is terrible and really needs to be improved to output helpful messages. Also, in the syslog should be only errors and warnings, the other information should go to a zm log to prevent syslog spamming.
mastertheknife.
_________________ Kfir Itzhak.
|
| Sat Mar 19, 2011 6:30 am |
|
 |
|
mastertheknife
Joined: Wed Dec 16, 2009 5:32 pm Posts: 553 Location: Israel
|
 Re:
As far as i know there isn't any guide. I understood most of the code simply by reading it. After you get the idea of zm's layout (zma, zmc, zms) it will be easier. You can grab the source from the SVN here: http://svn.zoneminder.com/mastertheknife.
_________________ Kfir Itzhak.
|
| Sat Mar 19, 2011 6:33 am |
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|