Puppet Class: nagios::server::plugins::nrpe

Defined in:
manifests/server/plugins/nrpe.pp

Overview

Class: nagios::server::nrpe

This is going to install the necessary nrpe plugin for nagios

Authors

Ben Field <ben.field@concreteplatform.com>



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/server/plugins/nrpe.pp', line 8

class nagios::server::plugins::nrpe {
  require nagios::server::config
  include nagios::server::service

  package { 'nagios-nrpe-plugin':
    ensure => installed,
    notify => Service['nagios3'],
  }

  nagios_command { 'Check Nrpe Longtimeout':
    ensure       => 'present',
    command_name => 'check_nrpe_1arg_longtimeout',
    command_line => '/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 30',
    target       => '/etc/nagios3/conf.d/puppet/command_nagios.cfg',
    notify       => Exec['rechmod'],
  }
}