Puppet Class: eventlogging::monitoring::jobs

Defined in:
modules/eventlogging/manifests/monitoring/jobs.pp

Overview

Class: eventlogging::monitoring::jobs

Installs an icinga check to make sure all defined eventlogging services are running.

Parameters:

  • ensure (Any) (defaults to: 'present')


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/eventlogging/manifests/monitoring/jobs.pp', line 6

class eventlogging::monitoring::jobs($ensure = 'present') {
    file { '/usr/lib/nagios/plugins/check_eventlogging_jobs':
        ensure => absent,
    }

    nrpe::plugin { 'check_eventlogging_jobs':
        ensure => $ensure,
        source => 'puppet:///modules/eventlogging/check_eventlogging_jobs.systemd',
    }

    nrpe::monitor_service { 'eventlogging-jobs':
        ensure        => $ensure,
        description   => 'Check status of defined EventLogging jobs',
        nrpe_command  => '/usr/local/lib/nagios/plugins/check_eventlogging_jobs',
        contact_group => 'admins,analytics',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Analytics/Systems/EventLogging',
    }
}