Just to make it clear, parenthesis in monit is just white space and
has no meaning, but can be used as syntactical sugar. It is not
possible to use parenthesis to change the evaluation of an expression.
The "if failed" statement is written in stone as "if failed <boolean
expression> then <action>". Which means in the content check case
below that we have to use double negation which may be
counterintuitive at first sight.
On 19. jan.. 2008, at 16.50, Elijah Wright wrote:
yes, those parentheses are very helpful! thanks a lot :-)
On 1/19/08, Jan-Henrik Haukeland <[EMAIL PROTECTED] > wrote:
On 19. jan.. 2008, at 13.46 , Jan-Henrik Haukeland wrote:
if failed url http:////localhost:9001/status and content !=
"ERROR" then restart
Ps. It may be easier to see the boolean expression if you use
parenthesis, which is legal in monit
if failed (url http:////localhost:9001/status and content !=
"ERROR") then restart
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general