diff --git a/lib/methods/dummychecktask.cpp b/lib/methods/dummychecktask.cpp index 09398debe..ce72ca233 100644 --- a/lib/methods/dummychecktask.cpp +++ b/lib/methods/dummychecktask.cpp @@ -53,7 +53,7 @@ void DummyCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckResu if (Checkable::ExecuteCommandProcessFinishedHandler) { ProcessResult pr; pr.PID = -1; - pr.Output = co.first; + pr.Output = dummyText; pr.ExecutionStart = now; pr.ExecutionEnd = now; pr.ExitStatus = dummyState; diff --git a/lib/methods/exceptionchecktask.cpp b/lib/methods/exceptionchecktask.cpp index 6efbd51b3..47707f26f 100644 --- a/lib/methods/exceptionchecktask.cpp +++ b/lib/methods/exceptionchecktask.cpp @@ -32,7 +32,7 @@ void ExceptionCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const Check pr.Output = scriptError.what(); pr.ExecutionStart = now; pr.ExecutionEnd = now; - pr.ExitStatus = 0; + pr.ExitStatus = 3; Checkable::ExecuteCommandProcessFinishedHandler("", pr); } else { diff --git a/lib/methods/sleepchecktask.cpp b/lib/methods/sleepchecktask.cpp index b5f3d8891..55f9f8fa1 100644 --- a/lib/methods/sleepchecktask.cpp +++ b/lib/methods/sleepchecktask.cpp @@ -49,7 +49,7 @@ void SleepCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckResu ProcessResult pr; pr.PID = -1; pr.Output = output; - pr.ExecutionStart = now; + pr.ExecutionStart = now - sleepTime; pr.ExecutionEnd = now; pr.ExitStatus = 0;