From: Gunnar Beutner Date: Tue, 17 Jul 2012 11:03:44 +0000 (+0200) Subject: Re-enable host macros. X-Git-Tag: v0.0.1~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0016c7b79d1cd1875990334163e56ed67c97f3d9;p=icinga2 Re-enable host macros. --- diff --git a/cib/nagioschecktask.cpp b/cib/nagioschecktask.cpp index 6be960c70..3a9688c25 100644 --- a/cib/nagioschecktask.cpp +++ b/cib/nagioschecktask.cpp @@ -40,10 +40,7 @@ void NagiosCheckTask::ScriptFunc(const ScriptTask::Ptr& task, const vector macroDicts; macroDicts.push_back(service.GetMacros()); - /* TODO: figure out whether we should replicate hosts to checkers, - * for now we just rely on the convenience module to fill in host macros - * for inline service definitions. */ - //macroDicts.push_back(service.GetHost().GetMacros()); + macroDicts.push_back(service.GetHost().GetMacros()); macroDicts.push_back(IcingaApplication::GetInstance()->GetMacros()); string command = MacroProcessor::ResolveMacros(checkCommand, macroDicts);