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.
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.
The module requires 'zabbix' class at the server side. See puppet/zabbix module at puppet forge).
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.
At the client side (monitored PostgreSQL / pgpool-II server) the module installs pg_monz scripts and configuration files.
The module requires 'zabbix-agent' and 'zabbix-sender' classes at the client side. Again, see puppet/zabbix module at puppet forge).
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',
}
Date: September 1. 2017
Release Info:
- Code cosmetics (thanks to puppet-lint).
Date: Jun 9. 2016
Release Info:
zabbix_user
parameter added topg_monz::server
class;- Hard-codded
templates_dir
resource replaced withensure_resource()
; - Confirmed compatibility with CentOS.
Date: Jun 3. 2016
Release Info:
- Metadata cosmetics, to satisfy puppet forge criteria.
Date: Jun 3. 2016
Release Info:
- Using
'/bin/true'
instead of'true'
to avoid negative quality points.
Date: Jun 3. 2016
Release Info:
- A bug caused by puppet-lint auto fix (removing quotes from 'true') fixed.
Date: Jun 3. 2016
Release Info:
- Code cosmetics (thanks to puppet-lint).
Date: Jun 3. 2016
Release Info:
- Initial release.