ExternalCommandProcessor::ExecuteFromFile(): take CheckResultProducer::Ptr

This commit is contained in:
Alexander A. Klimov 2025-04-03 11:02:03 +02:00
parent 4ea07bd880
commit 931c1fab6b
2 changed files with 3 additions and 3 deletions

View File

@ -247,7 +247,7 @@ void ExternalCommandProcessor::RegisterCommands()
RegisterCommand("DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS", &ExternalCommandProcessor::DisableServicegroupSvcNotifications, 1);
}
void ExternalCommandProcessor::ExecuteFromFile(const String& line, std::deque< std::vector<String> >& file_queue)
void ExternalCommandProcessor::ExecuteFromFile(const CheckResultProducer::Ptr& producer, const String& line, std::deque<std::vector<String>>& file_queue)
{
if (line.IsEmpty())
return;
@ -280,7 +280,7 @@ void ExternalCommandProcessor::ExecuteFromFile(const String& line, std::deque< s
<< "Enqueing external command file " << argvExtra[0];
file_queue.push_back(argvExtra);
} else {
Execute(ts, argv[0], argvExtra);
Execute(producer, ts, argv[0], argvExtra);
}
}

View File

@ -33,7 +33,7 @@ public:
private:
ExternalCommandProcessor();
static void ExecuteFromFile(const String& line, std::deque< std::vector<String> >& file_queue);
static void ExecuteFromFile(const CheckResultProducer::Ptr& producer, const String& line, std::deque<std::vector<String>>& file_queue);
static void ProcessHostCheckResult(const CheckResultProducer::Ptr& producer, double time, const std::vector<String>& arguments);
static void ProcessServiceCheckResult(const CheckResultProducer::Ptr& producer, double time, const std::vector<String>& arguments);