Page MenuHomeSoftware Heritage
Paste P1446

icinga not happy about missing 'host'
ActivePublic

Authored by ardumont on Sep 8 2022, 5:55 PM.
```
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 = "<title>Software Heritage</title>"
}
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 = "<title>GraphQL Playground</title>"
}
```
```
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.
```

Event Timeline

ardumont edited the content of this paste. (Show Details)
ardumont changed the title of this paste from whatever icinga dude! be awesome with each other! to whatever icinga dude! be awesome to each other!.
ardumont changed the title of this paste from whatever icinga dude! be awesome to each other! to icinga not happy about missing 'host'.Sep 8 2022, 6:08 PM