Puppet Class: profile::dns::auth::monitoring::global

Defined in:
modules/profile/manifests/dns/auth/monitoring/global.pp

Overview

This is for the alerting host to monitor the shared public addrs

Parameters:

  • authdns_addrs (Hash[String, Hash[String, Any]]) (defaults to: lookup('authdns_addrs'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/dns/auth/monitoring/global.pp', line 2

class profile::dns::auth::monitoring::global (
    Hash[String, Hash[String, Any]] $authdns_addrs = lookup('authdns_addrs'),
) {
    $authdns_addrs.each |$label,$data| {
        @monitoring::host { $label:
            ip_address => $data['address'],
        }
        @monitoring::service { $label:
            host          => $label,
            description   => 'Auth DNS',
            check_command => 'check_dns_query_auth!www.wikipedia.org',
            critical      => true,
            notes_url     => 'https://wikitech.wikimedia.org/wiki/DNS',
        }
    }
}