Page 1 of 1
Setting the mysql root and zm_admin passwords
Posted: Wed Mar 01, 2006 5:57 am
by Davio
Alright, here it goes.
I've used PHP and MySql for around a year now, though mostly on DB's setup through the campus.
Now, according to the 1.21.3 splat sheet, I'm supposed to reset the logins/passwords to the following...
root mko0nij9
zm_admin zaq1xsw2
I've tried a variety of MySql methods, but I keep getting that root@localhost doesn't have the privledges to do squat.
Is there a default password? I've tried the mko0nij9, I've tried blank, I've tried several different methods I've found on the net to set the root password, but nothing.
I'm guessing this is the problem. I've had an axis 205 camera running, and it fills up the disk with motion events just fine, but none are ever listed on the login screen.
I'm trying to do this as part of a class project in wildlife observation. I really need to get this working, and I've been beating my head against a wall for around 2 weeks on this.
Thanks,
Dave
Posted: Wed Mar 01, 2006 7:22 am
by rdmelin
Now, according to the 1.21.3 splat sheet, I'm supposed to reset the logins/passwords to the following...
root mko0nij9
zm_admin zaq1xsw2
No, I guess that could be clearer. If you need to for security, you should reset the system user and root passwords (not the mysql passwords) to values of your choosing.
The mysql accounts are already set to these values. Except that you transposed a couple of characters in the MySQL root password. It's 'mko0nji9'
I'm guessing this is the problem. I've had an axis 205 camera running, and it fills up the disk with motion events just fine, but none are ever listed on the login screen.
If you just need zm to work you probably should leave the mysql accounts as is. If zm is filling your disk with motion events, clearly it's working. Events do not appear on the login screen.
Since you managed to configure a monitor for an axis network camera you must have found your way around the interface and the documentation fairly well.
I sense that now something is frustrating you, but you will need to describe more clearly what is not working as you expect.
Posted: Wed Mar 01, 2006 7:40 am
by Davio
Well, I'm a very stubborn and determined person.
Basically, I'm looking at the disk quota filling up.
However, no motion events are listed in the Console screen.
When I click on Cam_1, I get no view.
Now, there is a password and login, which I'm stuck with as I'm borrowing the camera from the dean. I've contemplating just resetting it to factory standards and dealing with the ass chewing, but let's leave this as a last resort.
The camera's address is set for 192.168.1.5
Sooo... Yah, when I type in
http://192.168.1.5:8000 in the web browser, it pops up after the login.
So, for my settings, I've got...
remote host name -
http://vignola:capstone@192.168.1.5 (I've tried it with and without the http://)
port - 8000
remote host path -
http://192.168.1.5
Basically, I've got the green links, so I'm guessing it's working. I'm running it off the live CD right now. I tried changing the x/y sizing (as that seems to be some issues with cameras according to the forums), but that gets me nowhere and pops the links to red.
I was thinking that maybe it was writing the images to disk (hence the filling disk quota), but unable to access the links via the database due to a bad server setup.
Thank you very much for the help. I'm really at my wits end on this thing. Zoneminder, by far, is the best software solution for the field observation project we're working on.
If I can just get it to work, that is.
Dave
Posted: Wed Mar 01, 2006 8:45 am
by Davio
So, I did a tail command, and this is what I got...
[/var/www/html/zm/events]# tail -f /var/log/messages
Mar 1 08:36:24 zm zmc_m1[15409]: ERR [Unrecognised content type 'text/html']
Mar 1 08:36:24 zm zma_m1[15496]: WAR [Waiting for capture daemon]
Mar 1 08:36:24 zm zmc_m1[15409]: ERR [Unrecognised content type 'text/html']
Mar 1 08:36:25 zm zma_m1[15496]: WAR [Waiting for capture daemon]
Mar 1 08:36:25 zm zmc_m1[15409]: ERR [Unrecognised content type 'text/html']
Mar 1 08:36:26 zm last message repeated 2 times
Mar 1 08:36:26 zm zma_m1[15496]: WAR [Waiting for capture daemon]
Murrr? Is this a setting on the camera I need to go in and change?
Sigh. Going to bed. I'm probably going to dream and blob images triggering across the landscape.
Dave
Posted: Wed Mar 01, 2006 10:51 am
by jameswilson
your remote host path is wrong
you should have something like video.jpeg etc etc there
What camera are you using.
You need to to find the path to the images that zm can access
Posted: Wed Mar 01, 2006 3:12 pm
by rdmelin
Well, I'm a very stubborn and determined person. Smile
Good. You'll do just fine.
A search of the forums for axis 205 , network camera, and the like will turn up info on how to set the path string. It should look something like this.
/axis-cgi/mjpg/video.cgi?resolution=640x480
username and password can be sent to the camera in the hostname (user:passwd@ip_address)
Set the Remote Image Colors to 24 bit
Check ZM_NETCAM_REGEXPSin the network options tab
Try changing ZM_HTTP_VERSION in the same tab
Posted: Wed Mar 01, 2006 9:40 pm
by Davio
Hurm, tried that. But I did have a brain flash.
The camera I have has two levels of login/passwords. One is for the administration functions (which I don't have, grrr), and one for "check out the image on the web".
Now, I can look at the picture from a web browser, that's kinda keen.
However, I can't access the settings of the camera, and my password doesn't let me in.
Would Zoneminder need the admin level password to access the raw jpeg directories?
If so, I might just say screw the dean, and reset the camera to factory defaults for testing purposes.
Thanks,
Dave
Posted: Thu Mar 02, 2006 1:34 am
by rdmelin
Would Zoneminder need the admin level password to access the raw jpeg directories?
I don't think so, depending on how the camera is configured. If you can view a stream from the cam with no password, then zm should be able to capture from it.
Try using a path string like above with firefox or mozilla. If it works it should work with zm.
Dont neglect to try the ZM_NETCAM_REGEXPS and ZM_HTTP_VERSION settings.
And if some of the netcam gurus from the main forum don't chime in here soon you might try posting there.
Posted: Thu Mar 02, 2006 5:33 pm
by jameswilson
so you have an axis 205, I use the 206's with great success and pass the user name info etc as ross already mentioned as 'user:pass@192.168.0.1 etc
I dont use the path as above
i use
/mjpg/video.mjpg
and set the live view setting to 640x480 in the settings on the cam and in zm.
Posted: Thu Mar 02, 2006 11:00 pm
by Davio
Woot! Working!
Yah, it was the sub path inside the camera itself. This was not included in the documentation I got with the camera, but I did get a directory listing on an Axis site which was talking about how to set up PHP and scripting code on the camera itself.
I will try the /jpg/vide.mjpg when I get home, though the jpeg path seems to work. It's a bit grainy, but that's just the settings I'm stuck with on the camera methinks (which I will be customizing when the grant comes through and I can actually buy equipment rather than borrowing it).
Thank you so much for all your assistance!
Dave