1 class nagios::client inherits nagios {
2 package { 'dsa-nagios-nrpe-config':
5 package { 'dsa-nagios-checks':
10 service { 'nagios-nrpe-server':
16 Ferm::Rule::Simple <<| tag == 'nagios-nrpe::server' |>>
18 file { '/etc/default/nagios-nrpe-server':
19 source => 'puppet:///modules/nagios/common/default',
20 require => Package['nagios-nrpe-server'],
21 notify => Service['nagios-nrpe-server'],
23 file { '/etc/default/nagios-nrpe':
25 notify => Service['nagios-nrpe-server'],
27 file { '/etc/nagios/':
30 source => 'puppet:///files/empty/',
31 require => Package['nagios-nrpe-server'],
32 notify => Service['nagios-nrpe-server'],
34 file { '/etc/nagios/nrpe.cfg':
35 content => template('nagios/nrpe.cfg.erb'),
36 notify => Service['nagios-nrpe-server'],
38 file { '/etc/nagios/nrpe.d':
41 source => 'puppet:///files/empty/',
42 notify => Service['nagios-nrpe-server'],
44 file { '/etc/nagios/nrpe.d/debianorg.cfg':
45 content => template('nagios/inc-debian.org.erb'),
46 notify => Service['nagios-nrpe-server'],
48 file { '/etc/nagios/nrpe.d/nrpe_dsa.cfg':
49 source => 'puppet:///modules/nagios/dsa-nagios/generated/nrpe_dsa.cfg',
50 notify => Service['nagios-nrpe-server'],
52 file { '/etc/nagios/obsolete-packages-ignore':
53 source => 'puppet:///modules/nagios/common/obsolete-packages-ignore',
54 require => Package['dsa-nagios-checks'],
56 file { '/etc/nagios/check-libs.conf':
57 source => 'puppet:///modules/nagios/common/check-libs.conf',
58 require => Package['dsa-nagios-checks'],
60 file { '/etc/nagios/obsolete-packages-ignore.d/hostspecific':
61 content => template('nagios/obsolete-packages-ignore.d-hostspecific.erb'),
62 require => Package['dsa-nagios-checks'],
64 file { '/usr/local/sbin/dsa-check-libs':
68 file { '/etc/cron.d/puppet-nagios-wraps': ensure => absent, }
69 concat::fragment { 'puppet-crontab--nagios--dsa-check-puppet-agent':
70 target => '/etc/cron.d/puppet-crontab',
73 47 * * * * root dsa-wrap-nagios-check -s puppet-agent dsa-check-puppet_agent -d0 -c 28800 -w 18000