[EMAIL PROTECTED] wrote:
Monit suports single action per rule right now - we plan to add support
for multiple actions:

http://www.tildeslash.com/monit/doc/next.php#21

Actually the alert action is default - you don't need to set "... alert
and exec ..." since exec will generate alert as well even if it is
standalone.

Martin


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




Yes, but exec doesn't work with IF and CYCLES...unfortunalety

Exec works with "if" statements in general except one special statement:

  IF <x> RESTARTS WITHIN <y> CYCLES THEN TIMEOUT

which supports *just* timeout as Jovan described and as stated in the monit manual.

As noted, you can for example modify the startup scripts to do what you want. Monit sets several environment variables which provide lot of informations about what happened to the executed program and allows it to modify its behavior based on context :
http://www.tildeslash.com/monit/doc/manual.php#environment


Martin


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

Reply via email to