Added all hosts hostgroup for nagios

This commit is contained in:
Ossi Salmi 2012-11-20 13:39:20 +02:00
parent 94eb2c3d9b
commit f0e70a1cd9

View file

@ -153,6 +153,20 @@ class nagios::server {
notify => Service["nagios"], notify => Service["nagios"],
} }
file { "${confdir}/hostgroup_all.cfg":
ensure => present,
mode => "0640",
owner => "root",
group => "nagios",
before => Nagios_Hostgroup["all"],
require => File["/etc/nagios/conf.d"],
}
nagios_hostgroup { "all":
target => "${confdir}/hostgroup_all.cfg",
members => "*",
notify => Service["nagios"],
}
file { "${confdir}/host_default.cfg": file { "${confdir}/host_default.cfg":
ensure => present, ensure => present,
mode => "0640", mode => "0640",