Puppet Class: icinga::nsca::daemon

Defined in:
modules/icinga/manifests/nsca/daemon.pp

Overview

Class: icinga::nsca::daemon

Sets up an NSCA daemon for listening to passive check results from hosts

Parameters:

  • icinga_user (Any)
  • icinga_group (Any)


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
30
31
32
# File 'modules/icinga/manifests/nsca/daemon.pp', line 5

class icinga::nsca::daemon (
    $icinga_user,
    $icinga_group,
){

    package { 'nsca':
        ensure => 'present',
    }

    include ::passwords::icinga
    $nsca_decrypt_password = $::passwords::icinga::nsca_decrypt_password

    systemd::service { 'nsca':
        ensure  => 'present',
        content => systemd_template('nsca'),
        require => File['/etc/nsca.cfg'],
    }

    $nsca_chroot = '/var/lib/icinga'
    $command_file = '/rw/icinga.cmd'

    file { '/etc/nsca.cfg':
        content => template('icinga/nsca.cfg.erb'),
        owner   => 'root',
        mode    => '0400',
        require => Package['nsca'],
    }
}