Forge Home

pg_monz

Installs and configures pg_monz.

10,066 downloads

6,580 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

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:
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'fatdragon-pg_monz', '0.1.6'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add fatdragon-pg_monz
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install fatdragon-pg_monz --version 0.1.6

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

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.