Puppet Class: keyholder::monitoring

Defined in:
modules/keyholder/manifests/monitoring.pp

Overview

Class: keyholder::monitoring

Provisions an Icinga check that ensures the keyholder is armed with all configured identities.

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: present)


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/keyholder/manifests/monitoring.pp', line 6

class keyholder::monitoring(
    Wmflib::Ensure $ensure = present,
) {
    file { '/usr/lib/nagios/plugins/check_keyholder':
        ensure => absent,
    }

    nrpe::plugin { 'check_keyholder':
        ensure => $ensure,
        source => 'puppet:///modules/keyholder/check_keyholder',
    }

    sudo::user { 'nagios_check_keyholder':
        ensure => absent,
    }

    nrpe::monitor_service { 'keyholder':
        ensure       => $ensure,
        description  => 'Keyholder SSH agent',
        nrpe_command => '/usr/local/lib/nagios/plugins/check_keyholder',
        sudo_user    => 'root',
        notes_url    => 'https://wikitech.wikimedia.org/wiki/Keyholder',
    }
}