Puppet Class: nagios::nrpe::service

Defined in:
manifests/nrpe/service.pp

Overview

Class: nagios::nrpe::service

This will ensure the nrpe service is running and add an nagios_alias ‘nrpe’ for ease of restart scripting.

Authors

Ben Field <ben.field@concreteplatform.com



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/nrpe/service.pp', line 9

class nagios::nrpe::service {
  require nagios::nrpe::config

  case $::operatingsystem {
    'Ubuntu'         : {
      $service = ['nagios-nrpe-server']
    }
    'RHEL', 'CentOS' : {
      require epel

      $service = ['nrpe']
    }
    default          : {
      err('Unsupported OS')
    }
  }

  service { $service:
    ensure => running,
    alias  => 'nrpe',
    enable => true,
  }

}