Puppet Class: profile::query_service::monitor::categories

Defined in:
modules/profile/manifests/query_service/monitor/categories.pp

Overview

Monitor external blazegraph (categories) settings



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
# File 'modules/profile/manifests/query_service/monitor/categories.pp', line 2

class profile::query_service::monitor::categories {
    require_package('python3-requests')
    file { '/usr/lib/nagios/plugins/check_categories.py':
        source => 'puppet:///modules/query_service/nagios/check_categories.py',
        mode   => '0555',
        owner  => 'root',
        group  => 'root',
    }

    # categories are updated weekly, this is a low frequency check
    nrpe::monitor_service { 'Categories_Ping':
        description    => 'Categories endpoint',
        nrpe_command   => '/usr/lib/nagios/plugins/check_categories.py --ping',
        check_interval => 720, # every 6 hours
        retry_interval => 60,  # retry after 1 hour
        notes_url      => 'https://wikitech.wikimedia.org/wiki/Wikidata_query_service',
    }

    nrpe::monitor_service { 'Categories_Lag':
        description    => 'Categories update lag',
        nrpe_command   => '/usr/lib/nagios/plugins/check_categories.py --lag',
        check_interval => 720, # every 6 hours
        retry_interval => 60,  # retry after 1 hour
        notes_url      => 'https://wikitech.wikimedia.org/wiki/Wikidata_query_service/Runbook#Categories_update_lag',
    }

}