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

db.odbc - Access denied for user when using Macros

XMLWordPrintable

      Steps to reproduce:

      1. Create an item with this a macro in Key, like this:
      db.odbc.select[get_status_variables2,,"Driver=MySQL;Database=zabbix;Server=teste.local;UID=svc_zabbix;PWD=\{$MYSQL.PASSWORD}"]

      Error:
      Cannot connect to ODBC DSN: [SQL_ERROR]:[HY000][1045][[MySQL][ODBC 8.0(w) Driver]Access denied for user 'svc_zabbix'@'teste.local' (using password: YES)]

      1. I tried to use 'User name' and 'Password', but happened other error
        db.odbc.select[get_status_variables2,,"Driver=MySQL;Database=zabbix;Server=teste.local;"]

                **          Error:

                Cannot connect to ODBC DSN: [SQL_ERROR]:[HY000][1045][[MySQL][ODBC 8.0(w) Driver]Access denied for user 'svc_zabbix'@'teste.local' (using password: NO)]

      Expected:
      db.odbc.select[get_status_variables2,,"Driver=MySQL;Database=zabbix;Server=test.local;UID=svc_zabbix;PWD=password"]

      With Oracle I didn't have this problem and I use the same user and password

      db.odbc.select[ora_ses_act,,"Driver=Oracle;DBQ=//\{HOST.CONN}:1521/\{$ORACLE_ODBC_DSN};"]

        1. image-2024-03-22-11-39-59-683.png
          17 kB
          Matheus Nunes
        2. image-2024-03-22-11-41-24-583.png
          10 kB
          Matheus Nunes
        3. image-2024-03-22-11-44-53-888.png
          19 kB
          Matheus Nunes
        4. image-2024-03-22-11-48-03-113.png
          13 kB
          Matheus Nunes
        5. image-2024-03-22-11-53-06-369.png
          12 kB
          Matheus Nunes
        6. image-2024-03-22-11-54-03-440.png
          9 kB
          Matheus Nunes
        7. image-2024-03-22-11-54-57-781.png
          10 kB
          Matheus Nunes
        8. image-2024-03-22-11-55-05-824.png
          13 kB
          Matheus Nunes
        9. image-2024-03-22-11-55-12-683.png
          13 kB
          Matheus Nunes

            pwegrzyn Piotr Wegrzyn
            matheusnunes Matheus Nunes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: