|
From: | Martin Pala |
Subject: | Re: Question about monitrc file. |
Date: | Mon, 27 Aug 2007 20:57:51 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 Iceape/1.1.4 (Debian-1.1.4-1) |
address@hidden 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-generalYes, 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 TIMEOUTwhich 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
[Prev in Thread] | Current Thread | [Next in Thread] |