Please send your exact monit configuration (snip). Excerpt from monit manual:

--8<--
mail-format {
      from: [EMAIL PROTECTED]
   subject: $SERVICE $EVENT at $DATE
   message: Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION.
            Yours sincerely,
            monit
}
--8<--

=> if you define the subject, body, etc. outside of mail-format statement, the syntax is wrong.

Martin


On Oct 16, 2007, at 10:37 AM, Villem Alari wrote:

I didn't get any answer to that question:

I have such error:

/etc/monit/monitrc:75: Error: syntax error '$EVENT'

and on line 75 I have, like tutorial said, such line:

$EVENT Service $SERVICE

What's wrong?

So I thought I would expand it. Error starts from the first line, something is wrong there, can anyone help, I have configured something wrongly there:

$EVENT Service $SERVICE

Date: $DATE
Action: $ACTION
Host: $HOST # body
Description: $DESCRIPTION

Your faithful,
monit

set mail-format { from: [EMAIL PROTECTED] }


Villem Alari

e-post: [EMAIL PROTECTED]
mobiil: +37253939163



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to