monit-general
[Top][All Lists]
Advanced

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

Re: Check the age of a process


From: David Jones
Subject: Re: Check the age of a process
Date: Thu, 22 Aug 2019 20:13:17 +0000

check program filter_grep_age with path "/usr/lib64/nagios/plugins/check_proc_age.sh -p filter_grep -w 28800 -c 36000" every 10 cycles
    if status == 2 for 3 cycles then alert
    if status == 1 for 3 cycles then alert


From: monit-general <monit-general-bounces+djones=address@hidden> on behalf of SZÉPE Viktor <address@hidden>
Sent: Thursday, August 22, 2019 12:35 PM
To: address@hidden <address@hidden>
Subject: Re: Check the age of a process
 
Monit has more and more features.
Other things should be implemented as shell scripts.
This is my take on long running cron jobs
https://github.com/szepeviktor/debian-server-tools/blob/master/monitoring/cron-long.sh
installed on all production servers.


Idézem/Quoting David Jones via This is the general mailing list for 
monit <address@hidden>:

> What if I wanted to check for something running too long?  I tried 
> this and it's alerting for not being present or for having less 
> uptime.  Is it possible to negate the alerting logic so it's OK when 
> something is not running or it's less that a certain age?
>
> check process filter_grep_age matching filter_grep
>     if uptime > 7 hours then alert
>
> This filter_grep command shouldn't run for more than a few hours or 
> a user has forgotten to stop it.


SZÉPE Viktor, webes alkalmazás üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
~~~
ügyelet/hotline: +36-20-4242498  address@hidden  skype: szepe.viktor
Budapest, III. kerület







reply via email to

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