[Top][All Lists]

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

Re: Before I fix this

From: Vincent WATREMEZ
Subject: Re: Before I fix this
Date: Fri, 6 Feb 2015 11:11:00 +0100

Hi Rory,

The ps command lets you define an output format.
The 'time' in it is the CPU time used by the process.
More interrestingly, there is 'etime' and 'etimes' formats, which help you with what you want to do.

ps -o etimes `pgrep apache2 -u root`
Will give you the apache2 root process "age" (though the status mod allows you to do the same, concerning apache...).

No time to go further into details, you may build a probe to track this.


Vincent Watremez

Platform Administrator

2015-02-06 0:28 GMT+01:00 Rory Toma <address@hidden>:
Is there a good way for monit to report actual uptime on processes and itself that is not based on the date, but rather the actual passage of time?

To unsubscribe:

reply via email to

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