Ad Widget

Collapse

Discovery PostgreSQL schemes in different databases

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Destinety
    Junior Member
    • Sep 2022
    • 1

    #1

    Discovery PostgreSQL schemes in different databases

    Hi all!

    There are some issues when I try to set up discovery schemas across different databases in PostgreSQL.
    I have many instances with different database names.
    Zabbix successfully discovered databases from another discovery rule into macro {#DBNAME}. And I'm trying to use this macro in another discovery rule key, for example - pgsql.discovery.schemes["{#DBNAME}"] and use in UserParameter a macro like "$1" to select the database to connect to.
    But Zabbix says that special characters cannot be used in the key field (and apparently macros in general in this form).
    How to set up this discovery? Or is it not possible without installing extensions like 'dblink', 'postgres_fwd' etc.​
Working...