nagios: Fixed notify parameter
This commit is contained in:
parent
c3ffcb8fae
commit
0a1a363ab1
1 changed files with 1 additions and 2 deletions
|
@ -286,11 +286,9 @@ class nagios::server inherits nagios::server::manual {
|
||||||
|
|
||||||
Nagios::Host <<||>> {
|
Nagios::Host <<||>> {
|
||||||
confdir => $confdir,
|
confdir => $confdir,
|
||||||
notify => Service["nagios"],
|
|
||||||
}
|
}
|
||||||
Nagios::Service <<||>> {
|
Nagios::Service <<||>> {
|
||||||
confdir => $confdir,
|
confdir => $confdir,
|
||||||
notify => Service["nagios"],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -550,6 +548,7 @@ define nagios::service($host, $command, $description, $group="NONE",
|
||||||
use => "default",
|
use => "default",
|
||||||
target => "${confdir}/service_${name}.cfg",
|
target => "${confdir}/service_${name}.cfg",
|
||||||
require => Nagios_Host[$host],
|
require => Nagios_Host[$host],
|
||||||
|
notify => Service["nagios"],
|
||||||
}
|
}
|
||||||
|
|
||||||
if $group != "NONE" {
|
if $group != "NONE" {
|
||||||
|
|
Loading…
Add table
Reference in a new issue