GithubHelp home page GithubHelp logo

zabbix-pgbouncer's Introduction

Pgbouncer monitoring with zabbix
Install
  1. Compile go build
  2. On monitored host:
    • Copy program to /etc/zabbix/scripts/zabbix-pgbouncer
    • Include userparameter_pgbouncer.conf in zabbix agent configuration
    • Add monitoring user to pgbouncer configuration. (see [pgbouncer] stats_users)
    • To apply new config without pgbouncer restart, connect to it management interface and type RELOAD (see pgbouncer documentation).
    • Restart zabbix agent
  3. On zabbix server:
    • Import template. You need adjust to your version of zabbix-server.
    • Set variables in template macros.
    • Link template to your hosts.
Test

Try to get lld data from your host:

Example: ./zabbix-pgbouncer "zabbix.example.com" "pgbouncer.example.com" "pgbouncer.example.com" 5433 zabbix supersecretpassword pgbouncer lld

If it complains about extra_float_digits param You could remove this param in github.com/lib/pq and recompile. Or add ignore_startup_parameters = extra_float_digits to [pgbouncer] section in pgbouncer config (don't forget to reload configuration)

Try to pass lld,getAll,getConfig,getVer,getClients all should return either lld json for zabbix or OK.

Various versions of pgbouncer

Monitoring metrics is vary between different versions of pgbouncer. Columns with additional counters were added in newer versions, and some of them could be renamed. Program will handle all versions of pgbouncer and returning items based on their names for this particular version. So you maybe need to adjust template item Prototypes names according to your version.

zabbix-pgbouncer's People

Contributors

jjjbushjjj avatar

Watchers

 avatar

Forkers

adampielak

zabbix-pgbouncer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.