]> granicus.if.org Git - icinga2/commitdiff
Disabled resolving host macros for now.
authorGunnar Beutner <gunnar@beutner.name>
Sat, 14 Jul 2012 18:06:32 +0000 (20:06 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 14 Jul 2012 18:06:32 +0000 (20:06 +0200)
cib/nagioschecktask.cpp

index 74b154a61bf5b8632698acf2129d076153140fc4..deda3a816c4ee94f416c48757194740659f89326 100644 (file)
@@ -36,7 +36,10 @@ void NagiosCheckTask::ScriptFunc(const ScriptTask::Ptr& task, const vector<Varia
 
        vector<Dictionary::Ptr> macroDicts;
        macroDicts.push_back(service.GetMacros());
-       macroDicts.push_back(service.GetHost().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(IcingaApplication::GetInstance()->GetMacros());
        string command = MacroProcessor::ResolveMacros(checkCommand, macroDicts);