From b21bd64663817ccab021e317285ba2c613091f92 Mon Sep 17 00:00:00 2001 From: redanthrax Date: Fri, 24 Jun 2022 13:26:40 -0700 Subject: [PATCH] fixed agent id not being passed --- agent/checks.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/checks.go b/agent/checks.go index e4b0b08..5a043c3 100644 --- a/agent/checks.go +++ b/agent/checks.go @@ -159,6 +159,7 @@ func (a *Agent) RunChecks(force bool) error { type ScriptCheckResult struct { ID int `json:"id"` + AgentID string `json:"agent_id"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` Retcode int `json:"retcode"` @@ -176,6 +177,7 @@ func (a *Agent) ScriptCheck(data rmm.Check, r *resty.Client) { Stderr: stderr, Retcode: retcode, Runtime: time.Since(start).Seconds(), + AgentID: a.AgentID, } _, err := r.R().SetBody(payload).Patch("/api/v3/checkrunner/")