MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ExecuteRemoteCheck

Method ExecuteRemoteCheck

lib/icinga/checkable-check.cpp:547–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void Checkable::ExecuteRemoteCheck(const WaitGroup::Ptr& producer, const Dictionary::Ptr& resolvedMacros)
548{
549 CONTEXT("Executing remote check for object '" << GetName() << "'");
550
551 double scheduled_start = GetNextCheck();
552 double before_check = Utility::GetTime();
553
554 CheckResult::Ptr cr = new CheckResult();
555 cr->SetScheduleStart(scheduled_start);
556 cr->SetExecutionStart(before_check);
557
558 GetCheckCommand()->Execute(this, cr, producer, resolvedMacros, true);
559}
560
561void Checkable::ExecuteCheck(const WaitGroup::Ptr& producer)
562{

Callers 1

ExecuteCheckFromQueueMethod · 0.80

Calls 1

ExecuteMethod · 0.45

Tested by

no test coverage detected