Q: Is there a way to include some text into monit's alert message?

Storm <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <CACX6Wxp5emF+f6+VmhphOdou_q82AM+zeC1gks8=+Hysj4x_og@mail.gmail.com>
Hi all! I have a simple question about using monit's program checks.

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
<https://mmonit.com/monit/documentation/monit.html#Message-format>:

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


Thanks in advance for your answers!

-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.