lesovsky/zabbix-extensions

databases discovery strange behavior

ddmo opened this issue · 2 comments

ddmo commented

Hi, I've a strange behavior with databases discovery rule.
This is my {$PG_CONNINFO}: -h 192.168.xxx.xxx -p 5432 -U zabbix

The rule discover only zabbix database but, by command line, with the follow command I get all databases:

zabbix_get -s 192.168.xxx.xxx -k pgsql.db.discovery[-h 192.168.xxx.xxx -p 5432 -U zabbix]

So, why I get this difference from command line and dashboard?
Thanks a lot

ddmo commented

Mmm... I change now the {$PG_DATABASE_DISCOVERY_FILTER} parameter from (zabbix|db_.) to ()...

ddmo commented

Ok, I've resolved setting $PG_DATABASE_DISCOVERY_FILTER to null.