diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-08 21:51:30 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-10 10:26:39 +0200 |
commit | b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4 (patch) | |
tree | 8fb1844be8b9e68d62ee2ede54c1bb39d27d4c30 /modules/profile/manifests/postgresql.pp | |
parent | 6962463657db999c33f1aabe60e0567be218918d (diff) | |
download | Puppet-b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4.tar.gz Puppet-b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4.tar.zst Puppet-b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4.zip |
Add postgresql monitoring
Diffstat (limited to 'modules/profile/manifests/postgresql.pp')
-rw-r--r-- | modules/profile/manifests/postgresql.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/profile/manifests/postgresql.pp b/modules/profile/manifests/postgresql.pp index 97ce572..edd6ea6 100644 --- a/modules/profile/manifests/postgresql.pp +++ b/modules/profile/manifests/postgresql.pp | |||
@@ -28,5 +28,13 @@ class profile::postgresql ( | |||
28 | 28 | ||
29 | profile::postgresql::base_pg_hba_rules { "default": } | 29 | profile::postgresql::base_pg_hba_rules { "default": } |
30 | 30 | ||
31 | @profile::monitoring::local_service { "Databases are present in postgresql": | ||
32 | sudos => { | ||
33 | "naemon-postgresql-database-public" => "naemon ALL=(postgres) NOPASSWD: /usr/bin/psql -c select\ nspname\ from\ pg_catalog.pg_namespace" | ||
34 | }, | ||
35 | local => { | ||
36 | check_command => "check_command_output!psql -c 'select nspname from pg_catalog.pg_namespace'!public!-r postgres", | ||
37 | } | ||
38 | } | ||
31 | } | 39 | } |
32 | 40 | ||