Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18509

Problem with configuration MySQL plugin in configuration file. Invalid parameter Plugins.Mysql.Uri. Doesn't start Zabbix Agent 2 [version 5.0.4]

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Trivial
    • Resolution: Cannot Reproduce
    • 5.0.4
    • 5.0.3
    • Agent2 plugin (N)
    • None
    • CentOS Linux release 8.2.2004 (Core)
      Linux vpn_svc02 4.18.0-193.19.1.el8_2.x86_64 GNU/Linux

      zabbix-agent2 x86_64 5.0.4-1.el8

    Description

      Steps to reproduce:

      Create MySQL user for monitoring.
      Open the Zabbix Agent configuration file (zabbix_agent2.conf) and set the required parameters:

      Plugins.Mysql.Uri=unix:/var/lib/mysql/mysql.sock
      Plugins.Mysql.User=zabbix
      Plugins.Mysql.Password='<password>'
      DebugLevel=5
      

      Start Zabbix Agent:

      systemctl start zabbix-agent2.service
      

      Zabbix Agent do not start. Attempts to start every 10 seconds. Show last Zabbix Agent log:

      [Mysql] Start config validation...

      log:

      cannot create scheduling manager: invalid plugin Mysql configuration: Cannot assign configuration: invalid parameter Plugins.Mysql.Uri at line '<line number>': unknown parameter
      

      Result:

      Screenshot Zabbix Agent log:

       

      P.S.

      If do not use the MySQL plugin in configuration file, but add the monitoring user in macros {$MYSQL.USER} {$MYSQL.PASSWORD}, the template "Template DB MySQL by Zabbix agent 2" works.

       

      Expected:

      Launched Zabbix Agent

      Fix:

      In a downgraded version Zabbix Agent 2 (5.0.3), the plugin MySQL works.

       

      dnf remove zabbix-agent2
      Dependencies resolved.
      Removing: zabbix-agent2 x86_64 5.0.4-1.el8 @zabbix 18 M
       
      dnf install zabbix-agent2-5.0.3
      Installing: zabbix-agent2 x86_64 5.0.3-1.el8 zabbix 4.9 M
      
      yum list installed zabbix-agent2 
      Installed Packages 
      zabbix-agent2.x86_64          5.0.3-1.el8                 @zabbix
      

       

      Attachments

        Activity

          People

            aigars.kadikis Aigars Kadikis
            AlexJJ Aleksejs Jevsejevs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: