Puppet Class: openstack::nova::fullstack::monitor

Defined in:
modules/openstack/manifests/nova/fullstack/monitor.pp

Overview



1
2
3
4
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
# File 'modules/openstack/manifests/nova/fullstack/monitor.pp', line 1

class openstack::nova::fullstack::monitor {

    nrpe::monitor_service { 'nova-fullstack':
        description   => 'nova instance creation test',
        nrpe_command  => '/usr/lib/nagios/plugins/check_procs -c 1: -C python -a nova-fullstack',
        contact_group => 'wmcs-team,admins',
        retries       => 2,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }

    # Count VMs in admin-monitoring and alert if there are too
    #  many -- each leaked VM is a fullstack failure.
    file { '/usr/local/bin/check_nova_fullstack_leaks.py':
        ensure => 'present',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
        source => 'puppet:///modules/openstack/monitor/fullstack/check_nova_fullstack_leaks.py',
    }

    nrpe::monitor_service { 'check-fullstack-failures':
        ensure        => 'present',
        nrpe_command  => '/usr/local/bin/check_nova_fullstack_leaks.py',
        description   => 'Check for VMs leaked by the nova-fullstack test',
        require       => File['/usr/local/bin/check_nova_fullstack_leaks.py'],
        contact_group => 'wmcs-team,admins',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting#Nova-fullstack',
    }
}