/Zabbix-PgBouncer

Zabbix pgbouncer monitoring

Primary LanguageShell

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. restart zabbix-agent daemon.

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

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

  9. enjoy.

PS

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