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
Does your backup process write its PID to a file while it's active? Or can you script it to do so?
Then you can alert on the age of the dile.
Regards,
Carl
Carl Inglis AMBCS Systems Administrator
Rakon UK Limited Dowsett House, Sadler Road, Lincoln LN6 3RS, United Kingdom Tel: +44 1522 812630 | Fax: +44 1522 812664 | Mob: +44 7786 552915 Carl.Inglis at rakon.com | www.rakon.com
THE QUEENS AWARDS FOR ENTERPRISE 2012 Rakon UK Ltd
This message together with any attachments contains confidential information and may be subject to privilege. If you are not the intended recipient you may not distribute it in any way, you must notify the sender immediately and delete any copies of the message along with its attachments.
Rakon UK Ltd is a limited company registered in England and Wales. Registered Office: Antell House, Windsor Place, Harlow, Essex, England, CM20 2GQ Company Registration Number: 5128090.
Please be aware that Rakon UK Limited may monitor email traffic data including the date, time, subject line, sender and recipients for the purposes of security and usage monitoring. Automated monitoring systems may also be applied to ascertain whether incoming/outgoing emails are likely to contain viruses, other destructive devices or inappropriate content.
From: Xymon [xymon-bounces at xymon.com] on behalf of martin.flemming at desy.de [martin.flemming at desy.de] Sent: 24 October 2014 13:01 To: xymon at xymon.com Subject: [Xymon] monitor runtime of processes
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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, martin.flemming at desy.de 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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, martin.flemming at desy.de 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_______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
I have a script that does that, I'll upload it
On Mon, Oct 27, 2014 at 5:03 AM, Martin Flemming <martin.flemming at desy.de> wrote:
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, martin.flemming at desy.de 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_______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Upps, that sounds promising,
then i will wait a littel before i start with my sadly programming knowledge :-)
cheers martin
On Mon, 27 Oct 2014, Betsy Schwartz wrote:
I have a script that does that, I'll upload it
On Mon, Oct 27, 2014 at 5:03 AM, Martin Flemming <martin.flemming at desy.de> wrote:
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, martin.flemming at desy.de 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 _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Gruss
Martin Flemming
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
On Mon, 27 Oct 2014, Betsy Schwartz wrote:
I have a script that does that, I'll upload it
by the way, where you will upload it,
https://wiki.xymonton.org/doku.php/monitors ?
thanks & cheers,
martin
On Mon, Oct 27, 2014 at 5:03 AM, Martin Flemming <martin.flemming at desy.de> wrote:
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, martin.flemming at desy.de 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 _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (4)
-
betsy.schwartz@gmail.com
-
Carl.Inglis@rakon.com
-
jeremy.ruffer@gmail.com
-
martin.flemming@desy.de