monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Aborting monit on failure


From: Martin Pala
Subject: Re: [monit] Aborting monit on failure
Date: Thu, 06 Aug 2009 21:05:54 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

to stop monit you can either call "monit quit" ("monit stop" stop only the services, not terminate monit) or send it SIGTERM like this: "killall -15 monit"

Martin


Stephan-Frank Henry wrote:
Hello all,

I have a requirement to have a monitoring system that will monitor a file and a 
remote server (+ more later maybe) and if one of both fails, the system should 
execute a scrip and then stop dead (i.e. monit stop).

A friend of mine pointed out monit as a great tool and I do say it is very 
impressive, but I am having problems getting my requirements done.
I have been playing around with monit all day but am unable to get this solved.

On one side I tried execs that would do the required tasks and then try to stop 
monit from inside the script.
But the tasks would only happen if I externally stopped monit.

Then I tried with stop programs, but that seems to be something completely 
different.

Can I do this with monit?

Even if monit would not do it directly, can I get monit to terminate (monit not 
running in daemon mode) when a requirement is fulfilled?

Thanks

Frank





reply via email to

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