Puppet Class: elasticsearch::nagios::plugin

Defined in:
modules/elasticsearch/manifests/nagios/plugin.pp

Overview

Class elasticsearch::nagios::plugin

Includes the nagios checks for elasticsearch. include this class on your Nagios/Icinga node.



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
# File 'modules/elasticsearch/manifests/nagios/plugin.pp', line 5

class elasticsearch::nagios::plugin {
    @file { '/usr/lib/nagios/plugins/check_elasticsearch':
      source => 'puppet:///modules/elasticsearch/nagios/check_elasticsearch',
      owner  => 'root',
      group  => 'root',
      mode   => '0755',
      tag    => 'nagiosplugin',
    }

    # new version, can do more fine-grained checks
    @file { '/usr/lib/nagios/plugins/check_elasticsearch.py':
        source => 'puppet:///modules/elasticsearch/nagios/check_elasticsearch.py',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
        tag    => 'nagiosplugin',
    }

    @file { '/usr/lib/nagios/plugins/check_cirrus_frozen_writes.py':
        source => 'puppet:///modules/elasticsearch/nagios/check_cirrus_frozen_writes.py',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
        tag    => 'nagiosplugin',
    }

    @file { '/usr/lib/nagios/plugins/check_elasticsearch_shard_size.py':
        source => 'puppet:///modules/elasticsearch/nagios/check_elasticsearch_shard_size.py',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
        tag    => 'nagiosplugin',
    }

    @file { '/usr/lib/nagios/plugins/check_elasticsearch_unassigned_shards.py':
        source => 'puppet:///modules/elasticsearch/nagios/check_elasticsearch_unassigned_shards.py',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
        tag    => 'nagiosplugin',
    }

    require_package('python-requests', 'python3-requests', 'python3-dateutil')
}