mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 12:44:58 +02:00
Re-enable host macros.
This commit is contained in:
parent
6707bfeb26
commit
0016c7b79d
@ -40,10 +40,7 @@ void NagiosCheckTask::ScriptFunc(const ScriptTask::Ptr& task, const vector<Varia
|
|||||||
|
|
||||||
vector<Dictionary::Ptr> macroDicts;
|
vector<Dictionary::Ptr> macroDicts;
|
||||||
macroDicts.push_back(service.GetMacros());
|
macroDicts.push_back(service.GetMacros());
|
||||||
/* TODO: figure out whether we should replicate hosts to checkers,
|
macroDicts.push_back(service.GetHost().GetMacros());
|
||||||
* 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());
|
macroDicts.push_back(IcingaApplication::GetInstance()->GetMacros());
|
||||||
string command = MacroProcessor::ResolveMacros(checkCommand, macroDicts);
|
string command = MacroProcessor::ResolveMacros(checkCommand, macroDicts);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user