Page 1 of 1

"Add New Monitor" greyed out

Posted: Wed Feb 10, 2010 11:27 pm
by j1mw3b
I have Debian 5 with Zoneminder 1.24.2-2.
Four monitors defined and working. I now am trying to add another monitor and cannot because the "Add New Monitor" is not functional. Also cannot "Mark" any monitor and "edit" it.

I can change the existing monitors by dlicking on the /dev/video0 tabs.

Turned on full ZM debugging and saw nothing in the logs to indicate a problem.
Suspect something to do with MySQL, but see nothing in any /var/log files.

I will turn on mysql logging soon as I find out how, and hopefully see something.

Anyone have an idea why this is happening this way.

Everything else seems to work fine re ZM.

Thanks,

Jim

Posted: Thu Feb 11, 2010 3:44 am
by whatboy
Unless you created a user with low privileges and you are using it now???

Posted: Thu Feb 11, 2010 3:19 pm
by j1mw3b
nope. using admin and checked that it has all privileges.

Thanks,

Jim

Posted: Sat Feb 13, 2010 1:24 am
by j1mw3b
I am still hunting this problem

Am not a http or web guru, but when I view the ZM main console window source, I see this line:
<input>

and also this one:
<td><input><input></td>

and this:
<td><input></td>


The disabled="disabled" looks suspicious.

Is this disabled thing causing my grief, and if so, where is this file, or is it built dynamically somehow?
And.........how did it get this way?

Thanks,

Jim

Posted: Sat Feb 13, 2010 2:13 pm
by j1mw3b
This was one of the lines - dunno why it did not show in previous post:

<input>

Thanks,

Jim

Posted: Sat Feb 13, 2010 2:21 pm
by j1mw3b
Once more stripping off some of the tags

input type="button" value="Add New Monitor" onclick="createPopup( '?view=monitor', 'zmMonitor0', 'monitor' ); return( false );" disabled="disabled"

Jim

Posted: Sat Feb 13, 2010 4:17 pm
by mastertheknife
After looking at the source code, "Add New Monitor" button can be disabled for 2 reasons.
1) You don't have "Edit" privilege for monitors.
2) You are restricted to certain monitors. Make sure in user options that no monitor is selected! (Ctrl button removes selection)

I made a test user and gave him Edit privilege on monitors and restricted him to few monitors, Add New Monitor was disabled. As soon as i removed the monitor restrictions (Unselected all monitors) Add New Monitor was enabled again.
Not a bug.

However, not being to mark a monitor you are not restricted to while having the Edit monitors privilege is a bug! I did some testing and found it to be indeed bugged.
EDIT: I made a thread about this bug with a fix:
http://www.zoneminder.com/forums/viewtopic.php?p=59563

Posted: Sat Feb 13, 2010 8:06 pm
by j1mw3b
Thanks. That did it. So simple, I am an idiot for not seeing it.
Always funny how one can go down so many wrong paths looking for solutions.

Not sure how to delete with control key, so just went to webmin/mysql/zm database and edited the user admin to remove it.

Agani, thanks. Now to try to add my IP camera.

Jim