|
From: | Jorge Bastos |
Subject: | RE: Question about restart/stop |
Date: | Mon, 14 Oct 2013 22:11:33 +0100 |
There’s always one last question J Is it possible to have alert and stop in the same statement? Like: if failed port 123 then alert stop is it? From: address@hidden [mailto:address@hidden On Behalf Of Jorge Bastos Well perfect, didn’t saw it! By default debian has /etc/monit/monitrc.d/ with some scripts, and I thought it was reading it, but no, the default is /etc/monit/conf.d/ Solved, thanks a lot! From: address@hidden [mailto:address@hidden] On Behalf Of Martin Pala Make sure your monit configuration file has "include" statement set for this directory. If you add some include file, you have to reload Monit to load it (CLI: "monit reload"). On Oct 14, 2013, at 10:47 PM, "Jorge Bastos" <address@hidden> wrote: Sorry but another question. I created a script in monitrc.d, but it seems that is not being read, how can I know if the script is really being read ? From: address@hidden [mailto:monit-address@hidden] On Behalf Of Jorge Bastos Thank you J From: address@hidden [mailto:address@hidden] On Behalf Of Martin Pala Hi, yes you can use stop, for example: if failed port 123 then stop Regards, Martin On Oct 14, 2013, at 10:00 PM, "Jorge Bastos" <address@hidden> wrote: Hi guys, I’d like to know, it I can use or its supported, “stop” instead of “restart”, is it? Thanks in advanced, Jorge Bastos, -- -- |
[Prev in Thread] | Current Thread | [Next in Thread] |