Add DBName parameter to Agent 2 configuration file for Database plugins sessions

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.24
    • Component/s: Agent2 (G)
    • None

      Add the possibility in the Named sessions for database plugins to specify the database name. At the moment it is not possible, since there is no parameter like that in Zabbix Agent 2 configuration file:

      [root@trainer ~]# zabbix_agent2 -t mysql.db.size[MySQL1,,,zabbix]
      mysql.db.size[MySQL1,,,zabbix]                [s|111198208]
      [root@trainer ~]# zabbix_agent2 -t mysql.db.size[MySQL1,,,]
      mysql.db.size[MySQL1,,,]                      [m|ZBX_NOTSUPPORTED] [Invalid parameters: Fourth parameter "Database" is required: Too few parameters.]
      [root@trainer ~]# zabbix_agent2 -t mysql.db.size[MySQL1,,,]

      Tested on both MySQL and Postgresql plugins.
      Parameter could be:

      Plugins.Mysql.Sessions.MySQL1.DBName=zabbix_test

            Assignee:
            Zabbix Development Team
            Reporter:
            Aleksandrs Petrovs-Gavrilovs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: