monit-general
[Top][All Lists]
Advanced

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

if x restarts within y cycles then exec "script"


From: alec
Subject: if x restarts within y cycles then exec "script"
Date: Fri, 9 Feb 2007 11:43:45 +0100
User-agent: KMail/1.8.2

Hi,

first of all I want to say thank you for the great work.

Like some other from the list I need monit to be able to execute a script on a 
timeout.

e.g.
check process something with pidfile /var/run/something.pid
   start program = "/etc/init.d/something start"
   stop program  = "/etc/init.d/something stop"
   if X restarts within Y cycles then exec "some_script.sh"

So I wrote a patch which will apply to current CVS (Feb 08 2007).

Since I am not really into the monit sources I would like you to check this 
please.

It works fine for me with:
uname -a
Linux 2.6.13-15.13-default #1 Tue Nov 28 13:43:50 UTC 2006 x86_64 x86_64 
x86_64 GNU/Linux

if someone can confirm this patch I would be happy to see it in your 
“Contributed” section.

greetings Alec

Attachment: timeout_to_exec.patch
Description: Text Data


reply via email to

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