monit-general
[Top][All Lists]
Advanced

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

Re: exec-action


From: Christian Kowarzik
Subject: Re: exec-action
Date: Tue, 24 Jan 2006 10:25:12 +0100
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)



Jan-Henrik Haukeland wrote:


On 23. jan. 2006, at 21.35, Martin Pala wrote:

Maybe we can add generic 'retry' argument to the action to set the count of actions performed when the service remains in the same state. Something like:

  if failed then <action1> [retry <x> [times]]
  [else if passed then <action2> [retry <y> [times]]]


Nice suggestion! +1

- add the 'retry' option to the <action> (value of -1 means no limits)


Or if not [retry] is used, defaults to no limits.

- try the action only once by default (even in the case of failed state)


Retry is better, for a process you may want monit to try and (re) start it on each poll-cycle until timeout. I just saw that with retry we do not need the timeout statement. Hmm :) Retry is a new paradigm which means we can refactor away timeout(?)

would'nt there be a difference in the way retry and timeout behave?
- if you use retry, the service would still be monitored while down (after x retry times)
 (this is what i need :-)
- if you use timeout, the service would not be monitored after timeout

so retry and timeout are usefull

christian

--
Jan-Henrik Haukeland
Mobil +47 97141255



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

Attachment: ckowarzik.vcf
Description: Vcard


reply via email to

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