> It's in a NotificationCommand object.
Ah, I see. I've never done complicated things in those.

> I can use things like $host.name$ and $host.display_name$ perfectly okay to 
> get properties of the machine the notification is about.
It's probably a problem of evaluation order, which is, to speak politely, 
heavily under-documented, especially wrt. run-time macros.

I don't know a definitive answer, but I would try (combined with logging)
-- get_host(macro("$host.vars.neighbour$"))
-- call a function (declared with parameter x) on "$host.vars.neighbour$" or 
macro() that returns get_host(x).whatever

Even better, someone could speak up who really knows.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to