pg_monz

Installs and configures pg_monz.

Fat Dragon

fatdragon

8,521 downloads

5,177 latest version

4.6 quality score

Version information

  • 0.1.6 (latest)
  • 0.1.5
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Sep 1st 2017
This version is compatible with:
  • Ubuntu
    ,
    Debian
    ,
    CentOS
    ,
    RedHat

Start using this module

Documentation

fatdragon/pg_monz — version 0.1.6 Sep 1st 2017

pg_monz

The module installs and configures pg_monz monitoring Zabbix template.

The complete tutorial can be found at Puppet, Zabbix, PostgreSQL and pgpool-II Together - pg_monz Module.

Server Side

At the server side (at Zabbix server), the module only installs the following Zabbix templates:

  • Template App PostgreSQL
  • Template App PostgreSQL SR
  • Template App PostgreSQL SR Cluster
  • Template App pgpool-II
  • Template App pgpool-II watchdog

Note: Although all the templates are installed, which will be used for a particular client depends on the client's configuration. See Creating Host section in the original documentation.

Server Side Requirements

The module requires 'zabbix' class at the server side. See puppet/zabbix module at puppet forge).

pg_monz Server Side Example

class { 'pg_monz::server': }

Note: The class will automatically install the templates only if you're using puppet/zabbix module with manage_resources set to true. For details check Puppet, Zabbix, PostgreSQL and pgpool-II Together - pg_monz Module.

Client Side

At the client side (monitored PostgreSQL / pgpool-II server) the module installs pg_monz scripts and configuration files.

Client Side Requirements

The module requires 'zabbix-agent' and 'zabbix-sender' classes at the client side. Again, see puppet/zabbix module at puppet forge).

pg_monz Client Side Examples

Basic example (with default values) is pretty simple:

class { 'pg_monz': }

In reality however, chances are that you'll have to specify some parameters. An example with parameters that are often different than default values:

class { 'pg_monz':
  pgrolepassword => 'my_postgres_password', 
  pgpoolconf     => '/etc/pgpool2/3.5.2/pgpool.conf', 
  pglogfile      => 'postgresql-9.4-main.log', 
}

Release History

v0.1.6

Date: September 1. 2016

Release Info:

  • Code cosmetics (thanks to puppet-lint).

v0.1.5

Date: Jun 9. 2016

Release Info:

  • zabbix_user parameter added to pg_monz::server class;
  • Hard-codded templates_dir resource replaced with ensure_resource();
  • Confirmed compatibility with CentOS.

v0.1.4

Date: Jun 3. 2016

Release Info:

  • Metadata cosmetics, to satisfy puppet forge criteria.

v0.1.3

Date: Jun 3. 2016

Release Info:

  • Using '/bin/true' instead of 'true' to avoid negative quality points.

v0.1.2

Date: Jun 3. 2016

Release Info:

  • A bug caused by puppet-lint auto fix (removing quotes from 'true') fixed.

v0.1.1

Date: Jun 3. 2016

Release Info:

  • Code cosmetics (thanks to puppet-lint).

v0.1.0

Date: Jun 3. 2016

Release Info:

  • Initial release.