Puppet Class: labstore::monitoring::ldap

Defined in:
modules/labstore/manifests/monitoring/ldap.pp

Overview

Parameters:

  • critical (Boolean) (defaults to: false)
  • contact_groups (String) (defaults to: 'wmcs-team')


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

class labstore::monitoring::ldap(
    Boolean $critical       = false,
    String  $contact_groups = 'wmcs-team',
){

    file { '/usr/local/bin/getent_check':
        ensure => absent,
    }

    nrpe::plugin { 'check_getent':
        source => 'puppet:///modules/labstore/getent_check.sh',
    }

    # Monitor that getent passwd over LDAP resolves in reasonable time
    # (this being the mechanism that NFS uses to fetch groups)
    nrpe::monitor_service { 'getent_check':
        critical      => $critical,
        nrpe_command  => '/usr/local/lib/nagios/plugins/check_getent',
        description   => 'Getent speed check',
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Data_Services/Admin/Labstore',
    }
}