[icinga-users] resolve macro question

Tobias Koeck tobias.koeck at gmail.com
Thu Nov 23 14:39:15 CET 2017


Hi,

I am playing around with runtime macros. Now I have a test construct to
check out which address variable is taken

object Host "test" {
  address = "localhostx"
  vars.address = "vars_localhost"
  check_command = "dummy"
}

object Service "test_a" {
  host_name = "test"
  check_command = "dummy"
  var a = "$address$"
  log(LogCritical,"Console",a)
}

The /var/log/syslog just prints out

icinga2[17617]: [2017-11-23 14:37:47 +0100] critical/Console: $address$

--
Shouldn't it resolve one of the address variables?

Greetings
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20171123/1240ee27/attachment.html>


More information about the icinga-users mailing list