Puppet Class: mariadb::monitor_process

Defined in:
modules/mariadb/manifests/monitor_process.pp

Overview

TODO: Revisit the is_critical part. We probably want pages for DB problems for at least a group of people

Parameters:

  • is_critical (Any) (defaults to: true)
  • contact_group (Any) (defaults to: 'dba')
  • process_name (Any) (defaults to: 'mysqld')
  • process_count (Any) (defaults to: 1)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/mariadb/manifests/monitor_process.pp', line 3

class mariadb::monitor_process(
    $is_critical    = true,
    $contact_group  = 'dba',
    $process_name   = 'mysqld',
    $process_count  = 1,
    ) {
    nrpe::monitor_service { $process_name:
        description   => "${process_name} processes",
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c ${process_count}:${process_count} -C ${process_name}",
        critical      => $is_critical,
        contact_group => $contact_group,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/MariaDB/troubleshooting',
    }
}