Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.1 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.1 KB

Description

Check PgBouncer status and LLD pools.
Check pools metrics.

pgbouncer

Dependencies

psql, bash, zabbix-agent.

Installation

  1. configure pgbouncer monitoring user (https://www.pgbouncer.org/usage.html)

  2. create directory and copy pgbouncer.sh to /var/lib/zabbix/externalscripts/ change homedir for zabbix user usermod -d /var/lib/zabbix zabbix

  3. copy zabbix_agentd.d/pgbouncer.conf to /etc/zabbix/zabbix_agentd.d/

  4. chmod 755 /var/lib/zabbix/externalscripts/pgbouncer.sh and chown zabbix.zabbix /var/lib/zabbix/externalscripts/pgbouncer.sh

  5. copy file .pgpass.j2 to ~zabbix/.pgpass and edit monitoring user and password, if needed, port too.

  6. chmod 0600 ~zabbix/.pgpass and chown zabbix.zabbix ~zabbix/.pgpass

  7. restart zabbix-agent daemon.

  8. import "zbx_templates/Template App PgBouncer.xml" into your templates.

  9. apply template "Template App PgBouncer" to pgbouncer node.

  10. enjoy.

PS

You can easily change the settings for monitoring a remote pgbouncer node.