monit-general
[Top][All Lists]
Advanced

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

Re: monit help


From: Jan-Henrik Haukeland
Subject: Re: monit help
Date: Fri, 12 Dec 2003 15:48:30 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux)

Aleksandr Ivanov <address@hidden> writes:

> I want monitor my squid tcp port 3128
> and when tcp port "died" (squid died) then execute script which 
> shutdown dansguardian daemon.
> This I can do by:
> ---------------------------------------------------------------
> check host myserver with address 192.168.0.1
>       if failed port 3128 then exec "/etc/init.d/dansguardian stop"
> ---------------------------------------------------------------
> And when tcp port "alived" (squid "alived") then monit will execute
> "/etc/init.d/dansguardian start"...
> How I can make this?

Unfortunately, this is not supported. I.e. you can perform an action
when a service goes down, but not when it gets up again. We should
really add this, especially since it should be a fairly easy thing to
do. 

I suggest that we add this to our todo list, here's my +1.

-- 
Jan-Henrik Haukeland




reply via email to

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