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.