Puppet Class: openstack::designate::monitor

Defined in:
modules/openstack/manifests/designate/monitor.pp

Overview

Parameters:

  • active (Any)
  • critical (Any) (defaults to: false)
  • contact_groups (Any) (defaults to: 'wmcs-bots,admins')


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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'modules/openstack/manifests/designate/monitor.pp', line 4

class openstack::designate::monitor (
    $active,
    $critical=false,
    $contact_groups='wmcs-bots,admins',
    ) {

    # monitoring::service doesn't take a bool
    if $active {
        $ensure = 'present'
    }
    else {
        $ensure = 'absent'
    }

    # Page if designate processes die and 'critical' is true.  We only have one of each of these,
    #  and new instance creation will be very broken if services die.
    nrpe::monitor_service { 'check_designate_sink_process':
        ensure        => $ensure,
        critical      => $critical,
        description   => 'designate-sink process',
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1: --ereg-argument-array '^/usr/bin/python.* /usr/bin/designate-sink'",
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }

    nrpe::monitor_service { 'check_designate_api_process':
        ensure        => $ensure,
        critical      => $critical,
        description   => 'designate-api process',
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1: --ereg-argument-array '^/usr/bin/python.* /usr/bin/designate-api'",
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }

    nrpe::monitor_service { 'check_designate_central_process':
        ensure        => $ensure,
        critical      => $critical,
        description   => 'designate-central process',
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1: --ereg-argument-array '^/usr/bin/python.* /usr/bin/designate-central'",
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }

    nrpe::monitor_service { 'check_designate_mdns':
        ensure        => $ensure,
        critical      => $critical,
        description   => 'designate-mdns process',
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1: --ereg-argument-array '^/usr/bin/python.* /usr/bin/designate-mdns'",
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }

    nrpe::monitor_service { 'check_designate_worker':
        ensure        => $ensure,
        critical      => $critical,
        description   => 'designate-worker process',
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1: --ereg-argument-array '^/usr/bin/python.* /usr/bin/designate-worker'",
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }

    nrpe::monitor_service { 'check_designate_producer':
        ensure        => $ensure,
        critical      => $critical,
        description   => 'designate-producer process',
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1: --ereg-argument-array '^/usr/bin/python.* /usr/bin/designate-producer'",
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }

    monitoring::service { 'designate-api-http':
        ensure        => $ensure,
        description   => 'designate-api http',
        check_command => 'check_http_on_port!9001',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }
}