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