From 9eb909a844c15d17e22577707b1dabe034abe6e8 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Feb 26 2020 20:03:01 +0000 Subject: and we try yet another cargo cult dance to make the nagios gods happy --- diff --git a/inventory/group_vars/nagios b/inventory/group_vars/nagios index 301a669..256c5e2 100644 --- a/inventory/group_vars/nagios +++ b/inventory/group_vars/nagios @@ -155,6 +155,8 @@ phx2_external: # Exclude these ansible host groups in hostgroups/all.cfg exclude_hostgroups: - nixnagios + - aarch64_test + - cloud_aws - copr_aws - copr_back_aws - copr_back_dev_aws @@ -167,21 +169,8 @@ exclude_hostgroups: - copr_keygen_dev_aws - dbgserver_stg - ipsilon_dev + - maintainer_test - retrace_stg - retrace_stg_aws - virt_guest - virt_host - -# Try a way to have a group where we want to define them but we expect them not to ping -no_ping: - - copr_aws - - copr_back_aws - - copr_back_dev_aws - - copr_dev_aws - - copr_dist_git_aws - - copr_dist_git_dev_aws - - copr_front_aws - - copr_front_dev_aws - - copr_keygen_aws - - copr_keygen_dev_aws - - ipsilon_dev diff --git a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 index 6e0264c..1199c1d 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all.cfg.j2 @@ -14,6 +14,14 @@ define hostgroup{ {% endfor %} ## Services with minimal monitoring + +define hostgroup{ + hostgroup_name cloud_aws_group + alias cloud_aws_group + members {% for host in groups['cloud_aws']|sort %}{{host}}, {% endfor %} +} + + define hostgroup{ hostgroup_name mincheckgrp alias mincheckgrp