Puppet Class: gdnsd::monitor_conf

Defined in:
modules/gdnsd/manifests/monitor_conf.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/gdnsd/manifests/monitor_conf.pp', line 1

class gdnsd::monitor_conf {
    # This is a local NRPE check to validate that the gdnsd server's config
    # and zonefiles still load.  This is an important gaurd against e.g.
    # puppet-deploying an invalid configuration, which might otherwise only
    # cause a single failed puppet run (until someone tries to deploy DNS
    # changes and gets blocked).
    file { '/usr/local/lib/nagios/plugins/check_gdnsd_checkconf':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/gdnsd/check_gdnsd_checkconf',
    }

    nrpe::monitor_service { 'gdnsd_checkconf':
        description  => 'gdnsd checkconf',
        nrpe_command => '/usr/local/lib/nagios/plugins/check_gdnsd_checkconf',
        require      => File['/usr/local/lib/nagios/plugins/check_gdnsd_checkconf'],
        notes_url    => 'https://wikitech.wikimedia.org/wiki/gdnsd',
    }
}