Puppet Class: labstore::monitoring::ldap

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

Overview

Parameters:

  • critical (Any) (defaults to: false)
  • contact_groups (Any) (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
24
# File 'modules/labstore/manifests/monitoring/ldap.pp', line 1

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

    file { '/usr/local/bin/getent_check':
        ensure => present,
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        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/bin/getent_check',
        description   => 'Getent speed check',
        require       => File['/usr/local/bin/getent_check'],
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Data_Services/Admin/Labstore',
    }
}