add stdout to failing script check email body

This commit is contained in:
wh1te909 2020-10-29 21:39:41 +00:00
parent abd767deff
commit 50a3c62c28
1 changed files with 4 additions and 1 deletions

View File

@ -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":