Capturing output from an exec
Issue #977
duplicate
I’ve seen this subject come up on the web but not sure if there has been a formal request for this functionality. I’d like to be able to capture the output of the exec’ed script such that it could be referenced in the mail-format (or appended to $DESCRIPTION). I know I could have the script send a separate email but it would be desirable to have included in the monit email. This would make it easier to view more details of what the script did without having to examine a log on the $HOST.
Comments (2)
-
repo owner -
repo owner - changed status to duplicate
Duplicate of
#973. - Log in to comment
we have just implemented a content match test for program output, which sends the program output on match.
Syntax:
Example: