Report abuse

1
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
30
31
info: Caching catalog at /var/lib/puppet/state/localconfig.yaml
notice: Starting catalog run
debug: Loaded state in 0.00 seconds
debug: Prefetching naginator resources for nagios_host
line 3: syntax error at '
'

################################################################

class nagios_host {
	package {[nagios3, nagios-plugins, nagios-plugins-basic, nagios-plugins-standard, nagios-snmp-plugins]: ensure => installed }
	file { "/usr/lib/nagios/plugins/check_snmp_apt.pl":
		source => "puppet://puppet.s-team.at/files/nagios3/check_snmp_apt.pl",
		mode => 775,
		group => "root",
		owner => "root",
		require => Package[nagios-plugins]
	}
}
class nagios-monitor {
	Nagios_host <<||>>
}
class nagios-target {
   @@nagios_host { $fqdn:
        ensure => present,
        alias => $hostname,
        address => $ipaddress,
        use => "generic-host",
	target => "/etc/nagios3/nagios_host.cfg"
   }
}