monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] Is content match result a variable ?


From: Eric Pailleau
Subject: [monit-dev] Is content match result a variable ?
Date: Fri, 01 Jul 2011 15:32:45 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110620 Thunderbird/5.0b2

Hi,

I can't find any answer to this question in the documentation.

I'm using content match rule to detect entries in a log, this work perfectly,
but instead sending alert, it is possible to do an exec with
content match as variable given as argument to a script ?

[...]
if match /etc/monit/test.regex then exec  "/path/to/my/script \"$CONTENT\" "

???
Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]