mirror of https://github.com/Icinga/icinga2.git
parent
62ee130a2f
commit
72f529875f
|
@ -50,6 +50,7 @@ Icinga 1.x:
|
||||||
Icinga 2:
|
Icinga 2:
|
||||||
|
|
||||||
object Service "service1" {
|
object Service "service1" {
|
||||||
|
import "generic-service"
|
||||||
host_name = "localhost1"
|
host_name = "localhost1"
|
||||||
check_command = "test_customvar"
|
check_command = "test_customvar"
|
||||||
check_interval = 5m
|
check_interval = 5m
|
||||||
|
@ -76,8 +77,7 @@ Icinga 2:
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
check_command = "test_check"
|
check_command = "test_check"
|
||||||
|
|
||||||
assign where host.name == "localhost1"
|
assign where host.name in [ "localhost1", "localhost2" ]
|
||||||
assign where host.name == "localhost2"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
In Icinga 1.x you would have organized your services with hostgroups using the `hostgroup_name` attribute
|
In Icinga 1.x you would have organized your services with hostgroups using the `hostgroup_name` attribute
|
||||||
|
|
Loading…
Reference in New Issue