[hobbit] Checking process longevity

Coe, Colin C. (Unix Engineer) Colin.Coe at woodside.com.au
Fri Feb 8 03:36:19 CET 2008


 

> -----Original Message-----
> From: Henrik Stoerner [mailto:henrik at hswn.dk] 
> Sent: Tuesday, 5 February 2008 8:58 PM
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Checking process longevity
> 
> 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
> 

That sounds great.  Typically, I'm looking for processes existing for 5
minutes.

Thanks

CC

NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.




More information about the Xymon mailing list