Bug #59220 MEM - start menu shortcuts to start/stop the agent not working
Submitted: 29 Dec 2010 18:45 Modified: 28 Jan 2011 22:29
Reporter: Santo Leto Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S3 (Non-critical)
Version:2.3.1.2044 OS:Windows (Vista 32-bit)
Assigned to: BitRock Merlin CPU Architecture:Any
Tags: Agent, agentctl.bat, shortcuts

[29 Dec 2010 18:45] Santo Leto
Description:
Start menu shortcuts to file agentctl.bat used to start/stop the agent are not working fine on Windows.

I think this is caused by lack of administration privileges. When I run manually the file agentctl.bat from a windows prompt with administration privileges, agent is started/stopped correctly.

How to repeat:
Click on start menu shortcuts "Start MySQL Enterprise Monitor Agent service" and "Stop MySQL Enterprise Monitor Agent service".

Suggested fix:
When I click on the shortcuts to start/stop the enterprise monitor service, windows asks me immediately to confirm the action because it tries to run start/stop commands with administration privileges. I think we should implement something similar when starting/stopping the agent.
[6 Jan 2011 10:57] Enterprise Tools JIRA Robot
Carsten Segieth writes: 
reproduced on 'vista-x86-b' (a 32 bit system) while logged in as a user with admin privileges:
- direct clicking on both agent start menu entries neither start nor stop the agent
- when starting the shortcut with right-click and "run as admin" it works as expected once i had confirmed the Vista security question
- starting and stopping the services also work fine from the Windoes service manager
[10 Jan 2011 10:21] BitRock Merlin
Patch sent to Andy.
[11 Jan 2011 16:50] Enterprise Tools JIRA Robot
Andy Bang writes: 
Fix is in build 2.3.2.2050.
[26 Jan 2011 10:17] Enterprise Tools JIRA Robot
Carsten Segieth writes: 
tested OK with 2.3.2.2052 that now also a (double) click on the start menu entry does start or stop the Windows service (after answering the usual Vista security question)
[28 Jan 2011 22:29] John Russell
Added to 2.3.2 change log:

The Start Menu shortcuts that run the agentctl.bat script to start
and stop the &merlin_agent; did not prompt for administrator
credentials when run by a non-administrative user.