Skip to content

woutergd/zabbix-template-pgbouncer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Zabbix pgbouncer monitoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 97.9%
  • Jinja 2.1%