From 50a3c62c28cc6ea9f90bd54532d6f3cbc327bc18 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Thu, 29 Oct 2020 21:39:41 +0000 Subject: [PATCH] add stdout to failing script check email body --- api/tacticalrmm/checks/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/tacticalrmm/checks/models.py b/api/tacticalrmm/checks/models.py index 143d6cc2..14493f19 100644 --- a/api/tacticalrmm/checks/models.py +++ b/api/tacticalrmm/checks/models.py @@ -532,7 +532,10 @@ class Check(BaseAuditModel): elif self.check_type == "script": - body = subject + f" - Return code: {self.retcode}, Error: {self.stderr}" + body = ( + subject + + f" - Return code: {self.retcode}\nStdout:{self.stdout}\nStderr: {self.stderr}" + ) elif self.check_type == "ping":