Puppet Class: icinga::monitor::etcd_mw_config

Defined in:
modules/icinga/manifests/monitor/etcd_mw_config.pp

Overview

Class: icinga::monitor::mw_etcd_config

Monitor the last modified intex in Etcd for MediaWiki config

Parameters:

  • icinga_user (String)


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'modules/icinga/manifests/monitor/etcd_mw_config.pp', line 5

class icinga::monitor::etcd_mw_config (
    String $icinga_user,
){
    file { '/usr/local/bin/update-etcd-mw-config-lastindex':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/icinga/update-etcd-mw-config-lastindex',
    }

    systemd::service { 'update-etcd-mw-config-lastindex':
        ensure         => present,
        content        => systemd_template('update-etcd-mw-config-lastindex'),
        service_params => { 'ensure' => undef },
    }

    systemd::service { 'update-etcd-mw-config-lastindex.timer':
        ensure         => present,
        restart        => true,
        service_params => { 'provider' => 'systemd' },
        content        => systemd_template('update-etcd-mw-config-lastindex.timer'),
    }

    nrpe::monitor_systemd_unit_state { 'update-etcd-mw-config-lastindex':
        expected_state => 'periodic',
        lastrun        => '60',
    }

}