From 847d4dfbca6c2c51a2eeccc44ee57ecf612edb3b Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Sat, 23 Nov 2013 12:08:49 -0500 Subject: [PATCH] puppet: Specify hosts for the postgres autovac_freeze check via a hostgroup (imported from commit d0afc1b78015740fa9638563a5672d3400dd5002) --- puppet/zulip_internal/files/nagios3/conf.d/hostgroups.cfg | 7 ++++++- puppet/zulip_internal/files/nagios3/conf.d/hosts.cfg | 2 +- puppet/zulip_internal/files/nagios3/conf.d/services.cfg | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/puppet/zulip_internal/files/nagios3/conf.d/hostgroups.cfg b/puppet/zulip_internal/files/nagios3/conf.d/hostgroups.cfg index 4b7f75b874..b6cab55cc0 100644 --- a/puppet/zulip_internal/files/nagios3/conf.d/hostgroups.cfg +++ b/puppet/zulip_internal/files/nagios3/conf.d/hostgroups.cfg @@ -33,4 +33,9 @@ define hostgroup { define hostgroup { hostgroup_name postgres alias PostgreSQL Servers - } \ No newline at end of file + } + +define hostgroup { + hostgroup_name postgres_primary + alias PostgreSQL Servers + } diff --git a/puppet/zulip_internal/files/nagios3/conf.d/hosts.cfg b/puppet/zulip_internal/files/nagios3/conf.d/hosts.cfg index e38c46bcab..9cb037d773 100644 --- a/puppet/zulip_internal/files/nagios3/conf.d/hosts.cfg +++ b/puppet/zulip_internal/files/nagios3/conf.d/hosts.cfg @@ -75,7 +75,7 @@ define host{ host_name postgres2 alias postgres2 address postgres2.zulip.net - hostgroups all,postgres,pageable_servers + hostgroups all,postgres,postgres_primary,pageable_servers } define host{ diff --git a/puppet/zulip_internal/files/nagios3/conf.d/services.cfg b/puppet/zulip_internal/files/nagios3/conf.d/services.cfg index 37db9ebfd1..8a67669707 100644 --- a/puppet/zulip_internal/files/nagios3/conf.d/services.cfg +++ b/puppet/zulip_internal/files/nagios3/conf.d/services.cfg @@ -113,7 +113,7 @@ define service { use generic-service service_description Check postgres autovac_freeze check_command check_postgres!22!autovac_freeze - host postgres2 + hostgroup postgres_primary contact_groups admins }