Added all hosts hostgroup for nagios
This commit is contained in:
parent
94eb2c3d9b
commit
f0e70a1cd9
1 changed files with 14 additions and 0 deletions
|
@ -153,6 +153,20 @@ class nagios::server {
|
|||
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":
|
||||
ensure => present,
|
||||
mode => "0640",
|
||||
|
|
Loading…
Add table
Reference in a new issue