1

I plan to use program check, with it's exit code I can force monit to send alert mail message, ok. But how to include into that message some output produced by checking program?

I could modify program to write it's output in some file but how to tell monit to use this file during message composing?

There is something description field in mail-format, is it suitable for this purpose?

From monit's docs:

The subject and body may contain $NAME variables, which are expanded by Monit. Here is a list of variables that can be used when composing an alert message

$DESCRIPTION The description of the error condition

Storm
  • 123
  • 5
  • did you check here https://serverfault.com/questions/901760/monit-use-content-match-on-check-file-if-match-xxx ? – DevOps Apr 19 '18 at 16:05

0 Answers0