[ZBX-25439] MySQL by Zabbix Agent 2 - incorrect grants, Error 1227 in a result Created: 2024 Oct 23  Updated: 2025 Apr 25

Status: Doc. sign-off
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G), Documentation (D)
Affects Version/s: None
Fix Version/s: 6.0.41rc1, 7.0.13rc1, 7.2.7rc1, 7.4.0rc1 (master)

Type: Documentation task Priority: Trivial
Reporter: Tomasz Grzechulski Assignee: Stanislavs Jurgensons (Inactive)
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Oracle 8.10, Zabbix 7.0.4 (agent2 + server), MariaDB 10.5.22 on RockyLinux9.4


Attachments: File MySQL plugin_6.0_Edit.md    
Issue Links:
Duplicate
Sprint: Support backlog
Story Points: 1

 Description   

Steps to reproduce:

0. configure clean instance of Zabbix 7.0.4, install agent2, install MariaDB 10.5.22
1. create user in DB engine with use of this: https://www.zabbix.com/integrations/mysql#mysql_agent2
2. after creation of user, add new host:

  • hostname: your choice
  • template: MySQL by zabbix agent2
  • agent: 127.0.0.1:10050 (I've been using agent2 installed on server machine)
    go to macros choose "Inherited and host macros", and set:
    {$MYSQL.DSN} value: (in my case) tcp://192.168.99.21:3306
    {$MYSQL.PASSWORD} value: password
    {$MYSQL.USER} value: zbx_monitor

3. click add and go to host --> discovery rules and run discovery rules

Result:
In result in agent2.logs we would see this entry:

2024/10/23 15:31:57.823833 [Mysql] Cannot fetch data: Error 1227 (42000): Access denied; you need (at least one of) the SUPER, SLAVE MONITOR privilege(s) for this operation.


 Comments   
Comment by Stanislavs Jurgensons (Inactive) [ 2025 Jan 16 ]

Available in versions:
            6.0.38rc1 - 55681915f99
            7.0.9rc1 - e41a179c08e
            7.2.3rc1 - e2ea932a2f0
            7.4.0alpha1 (master) - d2ee800f4fd

Generated at Fri May 02 10:29:11 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.