Puppet Class: openstack::monitor::neutron::l3_agent_conntrack

Defined in:
modules/openstack/manifests/monitor/neutron/l3_agent_conntrack.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
# File 'modules/openstack/manifests/monitor/neutron/l3_agent_conntrack.pp', line 1

class openstack::monitor::neutron::l3_agent_conntrack (
) {
    $script = '/usr/local/sbin/nrpe-neutron-conntrack'
    file { $script:
        ensure => 'present',
        mode   => '0755',
        source => 'puppet:///modules/openstack/monitor/neutron/nrpe-neutron-conntrack.py',
    }

    sudo::user { 'nagios_neutron_l3_agent_conntrack':
        user       => 'nagios',
        privileges => ["ALL = NOPASSWD: ${script}"],
    }

    nrpe::monitor_service { 'check-neutron-conntrack':
        ensure        => 'present',
        nrpe_command  => "/usr/bin/sudo ${script}",
        description   => 'Check nf_conntrack usage in neutron netns',
        require       => File[$script],
        contact_group => 'wmcs-team,admins',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }
}