Hi all,
I've a little problem monitoring PostgreSQL with Zabbix Agent 2 (both server and agent version 6.0 LTS).
Everything is working fine, the Agent auto-discover new databases and start to collect stats on new DBs also.
Since my application creates and drop databases during normal operations, problems begin to happen when the application tries to DROP a db in which Zabbix agent is still connected.
If the connection was opened and closed every time it collect stats, the problem could be reduced a lot, since the probabilities to have both the software working on DB and the agent collecting stats are few.
Unfortunately, I've seen connections to DB up and running up to 15 days...
There is any way to tell Zabbix to not discover some database, maybe using a regex for db-name matching?
Another solution could be to force-closing the connections using "pg_kill" queries, but I don't know if it could affect the stats collection or could creates any problem to Zabbix Agent.
Any other suggestion?
Best
I've a little problem monitoring PostgreSQL with Zabbix Agent 2 (both server and agent version 6.0 LTS).
Everything is working fine, the Agent auto-discover new databases and start to collect stats on new DBs also.
Since my application creates and drop databases during normal operations, problems begin to happen when the application tries to DROP a db in which Zabbix agent is still connected.
If the connection was opened and closed every time it collect stats, the problem could be reduced a lot, since the probabilities to have both the software working on DB and the agent collecting stats are few.
Unfortunately, I've seen connections to DB up and running up to 15 days...
There is any way to tell Zabbix to not discover some database, maybe using a regex for db-name matching?
Another solution could be to force-closing the connections using "pg_kill" queries, but I don't know if it could affect the stats collection or could creates any problem to Zabbix Agent.
Any other suggestion?
Best
Comment