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

Postgresql Agent 2 Template: some items miss credential macros

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      PostgreSQL Agent 2 has 2 items that have missing credentials in the key parameters.

      Result:

      • Item PostgreSQL: Cache hit become Not supported failing with: Connection failed: failed to connect to `host=localhost user=postgres database=postgres`: failed SASL auth (FATAL: password authentication failed for user "postgres" (SQLSTATE 28P01)).
      • Item PostgreSQL: Age of oldest xid become Not supported failing with: Connection failed: failed to connect to `host=localhost user=zbx_monitor database=postgres`: failed SASL auth (FATAL: password authentication failed for user "zbx_monitor" (SQLSTATE 28P01)).

      Expected:

      Both items should return values without failing.

      To solve just be sure the macros PG.USER and PG.PASSWORD are present on both item's keys like the one enabled in following screenshot:

       

      Attachments

        Issue Links

          Activity

            People

              abakaldin Alexander Bakaldin
              mprenditore Stefano Stella
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: