Bug #39463 Agent requires PROCESS for monitoring >5.1.24
Submitted: 15 Sep 2008 21:19 Modified: 5 Nov 2008 11:07
Reporter: Adam Dixon Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Documentation Severity:S3 (Non-critical)
Version:1.2,1.3,2.0 OS:Any
Assigned to: MC Brown CPU Architecture:Any

[15 Sep 2008 21:19] Adam Dixon
Description:
https://enterprise.mysql.com/docs/monitor/1.2/en/mem-install-agent.html#mem-agent-rights

Monitoring server version >5.1.24 - it now needs the PROCESS privilege to run SHOW ENGINE INNODB STATUS;

Can the docs be updated to reflect this difference?

http://dev.mysql.com/doc/refman/5.1/en/innodb-monitor.html
"As of MySQL 5.1.24, the |PROCESS| privilege is required to start or stop the |InnoDB| monitor tables."

The docs state that its a requirement to 'stop or start the innodb monitor tables' but it also look like its a requirement for SHOW ENGINE INNODB STATUS command too.

How to repeat:
[root@dixon mysql51]# mysql -u root
Server version: 5.1.28-debug Source distribution

mysqlGRANT SELECT, REPLICATION CLIENT, SHOW DATABASES, SUPER
   -  ON *.*
   -  TO  'mysqluser'@'localhost'
   -  IDENTIFIED BY 'agent_password';
Query OK, 0 rows affected (0.00 sec)

mysqlquit
Bye
[root@dixon mysql51]# mysql -u mysqluser -pagent_password
mysqlshow engine innodb status;
ERROR 1227 (42000): Access denied; you need the PROCESS privilege for this operation
mysqlquit
Bye
[root@dixon mysql51]# mysql -u root
mysqlGRANT SELECT, REPLICATION CLIENT, SHOW DATABASES, SUPER, PROCESS   ON *.*    TO  'mysqluser'@'localhost'    IDENTIFIED BY 'agent_password';
Query OK, 0 rows affected (0.00 sec)

mysqlquit
[root@dixon mysql51]# mysql -u mysqluser -pagent_password
mysqlshow engine innodb status;
.......(it worked)

Suggested fix:
Fix docs so that people using MEM on newer MySQL servers do not run into problems.
[5 Nov 2008 11:07] MC Brown
The documentation has been updated with this information.