On Saturday 09 September 2017 at 17:11:06, Tobias Köck wrote: > I have seen it in several files. E.g. in > > /usr/share/icinga2/include/command-plugins.conf > > " > template CheckCommand "ipv4-or-ipv6" { > vars.check_address = {{ > var addr_v4 = macro("$address$") > ... > "
Okay, odd that I can't seem to find any documentation about this, however my guess is that... > On Saturday 09 September 2017 at 14:49:14, Tobias Köck wrote: >> Hi, >> >> I am wondering what is the difference between a macro access with >> >> ... = $host.variable$ This is evaluated once at compile-time (ie: whenever you reload or restart Icinga2). >> and >> >> ... = macro($host.variable$)? This is evaluated at run-time (ie: every time the host or service check executes). Regards, Antony. -- "When you talk about Linux versus Windows, you're talking about which operating system is the best value for money and fit for purpose. That's a very basic decision customers can make if they have the information available to them. Quite frankly if we lose to Linux because our customers say it's better value for money, tough luck for us." - Steve Vamos, MD of Microsoft Australia Please reply to the list; please *don't* CC me. _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users