monit-general
[Top][All Lists]
Advanced

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

Re: How to stop a process permanent


From: viktor
Subject: Re: How to stop a process permanent
Date: Mon, 16 May 2016 12:04:24 +0000
User-agent: Horde Application Framework 5

Please avoid these silly things:
https://github.com/szepeviktor/debian-server-tools/blob/master/monitoring/monit/monit-debian-setup.sh#L178-L203

I use them to re-monitor services.

If you want Monit to monitor a process all the time thus to send you alerts every 2 mintes then edit the service configuration and change "unmonitor" (was "timeout") to "alert".

All the best!


Quoting Lutz Mader <address@hidden>:

Hi all folks,
I start using monit some months ago and got a problem all the time a
"Process" or "Program" was stopped via monit and became "Not monitored"
(the process was gone), but started by someone else manually later
(started outside from monit).

This is sometimes a problem, because independent of a process is running
or stopped, monit gives the information "Not monitored" all the time and
there is no way to stop this "Zombieā€œ via monit.
The service monitoring mode is active all the, this is the default.

My question, how to stop a process via monit permanently.
How to identify such a manually startet process and how to get the right
state for this processes.

Today my understanding of "Not monitored" is, monit ignore the "Process"
or "Program" (the "status" and "monitoring status" is set to "Not
monitored"),
but this is not something like a "Stopped" status.

Any suggestion how to handle this,
Lutz

p.s.
I start using monit in january this year with some AIX, Linux systems to
migrate the application startup, stopping and monitoring to a more
useful tool.
In the past we, I use lots of application specific start, stop, monitor
scripts, but this doesn't fit my understanding of the way how to do this.

I start using monit to get a useful tool to do all the systems
housekeeping in a easy way with a uniform interface to handle all the
actions.

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general






reply via email to

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