Puppet Class: icinga::monitor::planet

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

Overview

monitor en.planet.wikimedia.org certificate and check it's being updated regularly T203208, T203208 warn / crit: time in hours before content is considered stale

Parameters:

  • url (Stdlib::Httpsurl)
  • warn (Integer)
  • crit (Integer)


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/icinga/manifests/monitor/planet.pp', line 5

class icinga::monitor::planet(
    Stdlib::Httpsurl $url,
    Integer $warn,
    Integer $crit,
){

    @monitoring::host { 'en.planet.wikimedia.org':
        host_fqdn     => 'en.planet.wikimedia.org',
    }

    monitoring::service { 'https_planet':
        description   => 'HTTPS-planet',
        check_command => 'check_ssl_http!en.planet.wikimedia.org',
        host          => 'en.planet.wikimedia.org',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Planet.wikimedia.org',
    }

    monitoring::service { 'Planet_content_updates':
        description   => 'check updates on en.planet.wikimedia.org',
        check_command => "check_lastmod!${url}!${warn}!${crit}",
        host          => 'en.planet.wikimedia.org',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Planet.wikimedia.org',
    }
}