``` object Service "Software Heritage Homepage" { import "generic-service" host_name = "www.softwareheritage.org" check_command = "http" vars.http_vhost = "www.softwareheritage.org" vars.http_uri = "/" vars.http_ssl = true vars.http_sni = true vars.http_string = "Software Heritage" } object Service "Software Heritage Staging Graphql Instance" { import "generic-service" host_name = "graphql.staging.swh.network" check_command = "http" vars.http_vhost = "graphql.staging.swh.network" vars.http_uri = "/" vars.http_ssl = true vars.http_sni = true vars.http_string = "GraphQL Playground" } ``` ``` root@pergamon:~# icinga2 daemon -C [2022-09-08 15:55:11 +0000] information/cli: Icinga application loader (version: r2.13.5-1) [2022-09-08 15:55:11 +0000] information/cli: Loading configuration file(s). [2022-09-08 15:55:11 +0000] information/ConfigItem: Committing config item(s). [2022-09-08 15:55:11 +0000] information/ApiListener: My API identity: pergamon.softwareheritage.org [2022-09-08 15:55:11 +0000] critical/config: Error: Validation failed for object 'graphql.staging.swh.network!Software Heritage Staging Graphql Instance' of type 'Service'; Attribute 'host_name': Object 'graphql.staging.swh.network' of type 'Host' does not exist. Location: in /etc/icinga2/conf.d/static-checks.conf: 86:3-86:43 /etc/icinga2/conf.d/static-checks.conf(84): import "generic-service" /etc/icinga2/conf.d/static-checks.conf(85): /etc/icinga2/conf.d/static-checks.conf(86): host_name = "graphql.staging.swh.network" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /etc/icinga2/conf.d/static-checks.conf(87): check_command = "http" /etc/icinga2/conf.d/static-checks.conf(88): vars.http_vhost = "graphql.staging.swh.network" [2022-09-08 15:55:11 +0000] critical/config: 1 error [2022-09-08 15:55:11 +0000] critical/cli: Config validation failed. Re-run with 'icinga2 daemon -C' after fixing the config. ```