[Top][All Lists]

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

Re: Monit ignore PID -> M/Monit

From: Martin Pala
Subject: Re: Monit ignore PID -> M/Monit
Date: Thu, 8 Mar 2012 16:30:50 +0100


the PID change event is generated automatically - there is currently no way to 
suppress it.

The PID changes the process which is monitored by Monit is restarted externally 
(e.g. manually) … in general when the process is monitored, the restart should 
be either done via monit or the monitoring should be disabled+enabled during 
the restart, otherwise if monit detects that the process is not running, it 
will try to restart it, whereas the manual restart could be pending. How the 
system will deal with the parallel restart attempts depends on the start 

=> i recommend one of following ways to restart the monitored process (which 
also prevents the 'pid changed' event):
1.) either do:
        monit restart <servicename>
2.) or do:
        monit unmonitor <servicename>
        <do manual maintanence of the service as needed>
        monit monitor <servicename>


On Mar 6, 2012, at 12:38 PM, Rui Lapa wrote:

> Hello,
>    How do I ignore all ntp PID changes and NOT SEND them to M/Monit server.
>    if changed pid then exec "/bin/echo" ???
> Thanks,
>    Rui Lapa
> --
> To unsubscribe:

reply via email to

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