* files in this directory are included.
*/
object Host "nsca-ng" {
- import "generic-host",
+ import "generic-host"
- display_name = "nsca-ng test",
+ display_name = "nsca-ng test"
+}
+
+apply Service "PassiveService1" {
+ import "generic-service"
+
+ check_command = "passive"
+
+ assign where host.name == "nsca-ng"
+}
+
+apply Service "PassiveService2" {
+ import "generic-service"
- services["PassiveService1"] = {
- templates = [ "generic-service" ],
- check_command = "passive",
- },
+ check_command = "passive"
- services["PassiveService2"] = {
- templates = [ "generic-service" ],
- check_command = "passive",
- },
+ assign where host.name == "nsca-ng"
}
groups = [ "icingaadmins" ]
macros = {
- "name" = "Icinga 2 Admin"
- "email" = "icinga@localhost"
- "pager" = "icingaadmin@localhost.localdomain"
+ name = "Icinga 2 Admin"
+ email = "icinga@localhost"
+ pager = "icingaadmin@localhost.localdomain"
}
- custom = {
- notes = "This is the Icinga 2 Admin account."
- }
+ custom.notes = "This is the Icinga 2 Admin account."
}