Hi,

i've a problem with resolving macros in dictionary definitions. I'll
resolve $address$ in 'vars.dns["dns server"]' but the front-end shows
$address$ instead the IP.

Anybody knows if

- my config is wrong
- my macro call is wrong
- the icinga2 parser doesn't resolve macros at this place


icinga-2.3.3:

object Host "name" {
  import "generic-host"
  address = "111.222.333.444"

  vars.dns["dns server"] = {
        dns_lookup = "$address$"
        dns_server = "www.fem.tu-ilmenau.de"
  }
}

apply Service "dns" for (dns_name => config in host.vars.dns) {
  import "generic-service"
  vars += config

  display_name = dns_name
  check_command = "dns"

  assign where host.vars.dns
}

Thanks in advance,
  nuts

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to