Puppet Class: raid::mpt

Defined in:
modules/raid/manifests/mpt.pp

Overview

MPT RAID controller



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
29
# File 'modules/raid/manifests/mpt.pp', line 2

class raid::mpt {
  include raid
  package { 'mpt-status':
    ensure => present,
  }

  file { '/etc/default/mpt-statusd':
    ensure  => present,
    owner   => 'root',
    group   => 'root',
    mode    => '0555',
    content => "RUN_DAEMON=no\n",
    before  => Package['mpt-status'],
  }

  nrpe::monitor_service { 'raid_mpt':
    description    => 'MPT RAID',
    nrpe_command   => "${raid::check_raid} mpt",
    check_interval => $raid::check_interval,
    retry_interval => $raid::retry_interval,
    event_handler  => "raid_handler!mpt!${::site}",
    notes_url      => 'https://wikitech.wikimedia.org/wiki/MegaCli#Monitoring',
  }

  nrpe::check { 'get_raid_status_mpt':
    command => "${raid::check_raid} mpt",
  }
}