Skip to content

Commit bc23b8e

Browse files
committed
ExternalCommandProcessor::ProcessFile(): take CheckResultProducer::Ptr
1 parent 8c58c5f commit bc23b8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/icinga/externalcommandprocessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ void ExternalCommandProcessor::DisableHostgroupPassiveSvcChecks(double, const st
931931
}
932932
}
933933

934-
void ExternalCommandProcessor::ProcessFile(double, const std::vector<String>& arguments)
934+
void ExternalCommandProcessor::ProcessFile(const CheckResultProducer::Ptr& producer, double, const std::vector<String>& arguments)
935935
{
936936
std::deque< std::vector<String> > file_queue;
937937
file_queue.push_back(arguments);
@@ -956,7 +956,7 @@ void ExternalCommandProcessor::ProcessFile(double, const std::vector<String>& ar
956956
Log(LogNotice, "compat")
957957
<< "Executing external command: " << line;
958958

959-
ExecuteFromFile(line, file_queue);
959+
ExecuteFromFile(producer, line, file_queue);
960960
} catch (const std::exception& ex) {
961961
Log(LogWarning, "ExternalCommandProcessor")
962962
<< "External command failed: " << DiagnosticInformation(ex);

lib/icinga/externalcommandprocessor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ExternalCommandProcessor {
6969
static void DisableServicegroupPassiveSvcChecks(double time, const std::vector<String>& arguments);
7070
static void EnableHostgroupPassiveSvcChecks(double time, const std::vector<String>& arguments);
7171
static void DisableHostgroupPassiveSvcChecks(double time, const std::vector<String>& arguments);
72-
static void ProcessFile(double time, const std::vector<String>& arguments);
72+
static void ProcessFile(const CheckResultProducer::Ptr& producer, double time, const std::vector<String>& arguments);
7373
static void ScheduleSvcDowntime(double time, const std::vector<String>& arguments);
7474
static void DelSvcDowntime(double time, const std::vector<String>& arguments);
7575
static void ScheduleHostDowntime(double time, const std::vector<String>& arguments);

0 commit comments

Comments
 (0)