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
# File 'modules/eventlogging/manifests/monitoring/jobs.pp', line 6

class eventlogging::monitoring::jobs($ensure = 'present') {

    file { '/usr/lib/nagios/plugins/check_eventlogging_jobs':
        source => 'puppet:///modules/eventlogging/check_eventlogging_jobs.systemd',
        mode   => '0755',
    }

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