mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-21 16:57:58 +02:00
Get last CheckResult
This commit is contained in:
parent
469d553f15
commit
3b7bb0d9cc
@ -606,12 +606,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
|||||||
MacroProcessor::EscapeCallback(), nullptr, false
|
MacroProcessor::EscapeCallback(), nullptr, false
|
||||||
);
|
);
|
||||||
|
|
||||||
double scheduled_start = checkable->GetNextCheck();
|
CheckResult::Ptr cr = checkable->GetLastCheckResult();
|
||||||
double before_check = Utility::GetTime();
|
|
||||||
|
|
||||||
CheckResult::Ptr cr = new CheckResult();
|
|
||||||
cr->SetScheduleStart(scheduled_start);
|
|
||||||
cr->SetExecutionStart(before_check);
|
|
||||||
|
|
||||||
/* Check if resolved_command exists and it is of type command_type */
|
/* Check if resolved_command exists and it is of type command_type */
|
||||||
Dictionary::Ptr execMacros = new Dictionary();
|
Dictionary::Ptr execMacros = new Dictionary();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user