Xymon Mailing List Archive search

monitor runtime of processes

list Martin Flemming
Mon, 27 Oct 2014 10:03:11 +0100 (CET)
Message-Id: <user-03c5db2903a8@xymon.invalid>

Thanks, Jeremy & Carl for the hints !

That's will be the way (external process- or logfile/pidfile-monitorscript)

Anyway, i thought there is eventually a built-in function for this ;-)

thanks & cheers

    martin

On Sat, 25 Oct 2014, Jeremy Ruffer wrote:
What platform are you on?

On Linux you can do
ps -p<pid> -oetime
or
ps -C<backupname> -oetime

You just need an external script to report green if it's not found.  If it's 
been going over 24 hours then the format is D-HH:MM:SS so you just need to 
check for the dash then check the number of days.

Jeremy

On 24/10/2014 13:01, user-f286aaa49a76@xymon.invalid wrote:
 Hi !

 Unfortunatley i didn't found a solution for my problem except these
 threads, which are not really a soluton :-(

http: //lists.xymon.com/archive/2008-February/017554.html
http: //lists.xymon.com/archive/2013-July/037868.html

 The question is, if anybody has a idea,
 how i can monitor the runtime for certain processes,
 preferably with his pid ?

 My real problem is, that my backup-system runs at beginning of the months
 maybe more than 2 days ... but in the normal way it's runs 2-4 hours ...

 So, i want to have a yellow alert after 24 hours and a red alert after 48
 hours .. is this possible ?

 Thanks & Cheers

        Martin