How to get alert if a Service has been running for more than x hours on JTS or RTC?
![]()
I can see the running services on JTS/RTC admn console but not sure how to automate the alert if the service has been running for more than x hours. I'm thinking about writing a java program to pool the services, determine their run time and automatically send out an email if something has been running for too long. Is this a good idea? And what Java API should I be using? Thanks.
|
Accepted answer
![]()
I copped the perl from this article https://jazz.net/library/article/1017
Clement Liu selected this answer as the correct answer
Comments Kevin, thank you. I read the perl script and I'd like to understand what REST call I should use to get Active Services. Do you happen to know where I can find the REST API Doc? I got Hari's answer on his article: https://jazz.net/library/article/1017
Hari Vetsa wrote on August 26, 2013 07:17:03:
hi Clement |
Comments
Clement,
Look about for "active services" and Perl. Somewhere there is a perl script that can gather the Active Services, from that it would relatively easy to get the elapsed time and make some decisions.
If you can't find I could share what I use.