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. Regards Vincent Watremez Platform Administrator IJENKO SA www.ijenko.com 2015-02-06 0:28 GMT+01:00 Rory Toma <[email protected]>: > 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: > https://lists.nongnu.org/mailman/listinfo/monit-general >
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
