Puppet Class: icinga::monitor::gsb

Defined in:
modules/icinga/manifests/monitor/gsb.pp

Overview

sets up monitoring for Google Safe Browsing phabricator.wikimedia.org/T30898

Parameters:

  • client_id (Any)
  • api_key (Any)


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
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
# File 'modules/icinga/manifests/monitor/gsb.pp', line 3

class icinga::monitor::gsb($client_id, $api_key){
    @monitoring::host { 'google':
        host_fqdn => 'google.com',
    }

    @monitoring::service { 'GSB_mediawiki':
        description   => 'check google safe browsing for mediawiki.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://mediawiki.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wikibooks':
        description   => 'check google safe browsing for wikibooks.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wikibooks.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wikimedia':
        description   => 'check google safe browsing for wikimedia.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wikimedia.org.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wikinews':
        description   => 'check google safe browsing for wikinews.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wikinews.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wikipedia':
        description   => 'check google safe browsing for wikipedia.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wikipedia.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wikiquote':
        description   => 'check google safe browsing for wikiquote.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wikiquote.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wikisource':
        description   => 'check google safe browsing for wikisource.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wikisource.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wikiversity':
        description   => 'check google safe browsing for wikiversity.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wikiversity.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
    @monitoring::service { 'GSB_wiktionary':
        description   => 'check google safe browsing for wiktionary.org',
        check_command => "check_google_safebrowsing!${client_id}!${api_key}!https://wiktionary.org",
        host          => 'google',
        notes_url     => 'https://phabricator.wikimedia.org/T216985',
    }
}