Bug #53943 agent installation asks for credentials to create agent account
Submitted: 24 May 2010 13:13 Modified: 17 Aug 2010 10:37
Reporter: Roger David Nay Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S3 (Non-critical)
Version:2.2.0.1709 OS:MacOS
Assigned to: BitRock Merlin CPU Architecture:Any

[24 May 2010 13:13] Roger David Nay
Description:
The installer asks for root credentials, even if you say you have already created the account.

'Re-enter :' prompt looks like it has problems as well.

See the output below.

These steps are not covered in the 2.2 installation in the manual either. I think there have been some other text changes as well.

--

Monitored Database Information

IMPORTANT: The agent user account specified below requires special MySQL privileges.

Visit the following URL for more information:
https://enterprise.mysql.com/docs/monitor/2.2/en/mem-install.html#mem-agent-rights

MySQL hostname or IP address [127.0.0.1]: 

Validate MySQL hostname or IP address [Y/n]: 

MySQL Port [3306]: 

MySQL Username [agent]:  

MySQL Password :
Re-enter :
----------------------------------------------------------------------------
Agent User Account Creation

To monitor your MySQL server, the Agent needs a user account with special privileges. If you provide the login credentials for the root account below, we will use those to create your Agent's user account for you based on the user account credentials you entered on the previous screen.

Note that the root login credentialls will only be used to create the Agent's user account, they will not be saved.

[1] Yes, use the credentials below to create the Agent's user account
[2] No, I've already created the account and I'm sure it's correct
Please choose an option [1] : 2

Root Username [root]: blah

Root Password :
 :
----------------------------------------------------------------------------
Query Analyzer Configuration - Proxy

The MySQL Proxy enables the Query Analyzer by listening on specified ports for connections from client applications, collecting data from those connections, and passing that data on to the Service Manager.

Visit the following URL for more information:
https://enterprise.mysql.com/docs/monitor/2.2/en/mem-qanal-using.html

MySQL Proxy:

How to repeat:
Do a 2.2 agent installation from scratch (not an upgrade) in --mode text on Max OS X (probably linux as well).

Suggested fix:
Fix the installer script to not ask for the root credentials if not needed (or explain why it is needed).

Update the agent installation in the manual with the new text and added step.
[5 Jul 2010 15:29] BitRock Merlin
Patch sent to Andy.
[6 Jul 2010 17:12] Enterprise Tools JIRA Robot
Andy Bang writes: 
Author: merlin
Date: 2010-07-06 18:56:07 +0200 (Tue, 06 Jul 2010)
New Revision: 1593

Modified:
   branches/2.2/bitrock/xmls/mysql-monitor-agent.xml

Author: merlin
Date: 2010-07-06 19:05:15 +0200 (Tue, 06 Jul 2010)
New Revision: 1594

Modified:
   branches/2.3/bitrock/language/mysql-monitor-agent-update-en.lng
   branches/2.3/bitrock/xmls/mysql-monitor-agent-update-module.xml
   branches/2.3/bitrock/xmls/mysql-monitor-agent.xml
[17 Aug 2010 10:37] MC Brown
A note has been added to the 2.2.3 and 2.3.0 changelogs: 

        The &merlin_agent; installer would ask for agent credentials,                                                                                      
        even if you had indicated that the correct user credentials                                                                                        
        had already been created.