[hobbit] Checking process longevity

Henrik Stoerner henrik at hswn.dk
Tue Feb 5 12:58:06 CET 2008


On Tue, Feb 05, 2008 at 01:47:07PM +0900, Coe, Colin C. (Unix Engineer) wrote:
> I do think that there are other cases
> where monitoring how long a process exists is useful.
> 
> I was thinking that this could be done by adding a new flag to 'PROC' in
> hobbit-clients.cfg.  Something like:
> 
> PROC processname minimumcount maximumcount color [TRACK=id] [TEXT=text]
> [RUNTIME=seconds]
> 
> Example, alert if a 'df' has existed for more 60 seconds
> 
> HOST foo
> 	PROC df RUNTIME=60

Sure. Only problem is: How do you determine how long a process has
existed ?

Some systems report the start-time of a process in a separate column
(START in Linux, STIME in Solaris, ...) Not very accurate, since if they
were started more than 24 hours ago it shows only the date. I guess we
could use that.



Regards,
Henrik




More information about the Xymon mailing list