Defined Type: redis::monitoring::nrpe_instance

Defined in:
modules/redis/manifests/monitoring/nrpe_instance.pp

Overview

Parameters:

  • replica_warning (Any) (defaults to: 60)
  • replica_critical (Any) (defaults to: 600)


1
2
3
4
5
6
7
8
9
10
11
12
13
# File 'modules/redis/manifests/monitoring/nrpe_instance.pp', line 1

define redis::monitoring::nrpe_instance($replica_warning=60, $replica_critical=600){
    require redis::monitoring::nrpe
    $port = $title
    $cmd = $::redis::monitoring::nrpe::nrpe_command
    nrpe::monitor_service { "redis_status_on_port_${port}":
        ensure         => present,
        description    => "Check health of redis instance on ${port}",
        nrpe_command   => "/usr/bin/sudo ${cmd} ${port} ${replica_warning} ${replica_critical}",
        contact_group  => 'admins',
        retry_interval => 2,
        notes_url      => 'https://wikitech.wikimedia.org/wiki/Redis',
    }
}