-
1. Re: Warn if Average Run time exceeded
Rolf Pfister Apr 22, 2014 2:21 AM (in response to Haku Matata)Hi,
set up a new Shout Destination target for mailing and code "exectime +20% shout to <newdest>" in PostProc.
Or - if you forward/handle your alerts already with a script you could code a "exectime +20% shout to EM" from there.
Rg, Rolf
-
2. Re: Warn if Average Run time exceeded
Haku Matata Apr 22, 2014 12:54 PM (in response to Rolf Pfister)Thanks for your reply Rolf , The solution that you send is a bit diffucult for me.I'm new at control-m.
I found an option at jobs properties.We can add notification from this tab. > Actions> Notifications before job Complete >when jobs Average Execution Time> ... ..
But at this tab we can send notifications only to the Alert Windows / Server Log File / And User Console
Is there any way to add send notification to the as a Mail , same as On Do Actions tab.
Thanks for you time
-
3. Re: Warn if Average Run time exceeded
Rolf Pfister Apr 23, 2014 2:18 AM (in response to Haku Matata)Yes you are right unfortunately CTM does not have a direct "shout Mail" option on the PostProc Panel.
The normal solution here is to setup a new Shout Destination ("ctmsys" from shell or Config Manager).
In general on the Shout Dest Panel you could set it up as type Mail or Program. With type mail you are limited regarding the customizations - you just add the needed email adr.
fe "ctmsys":
4 M S MAILDEST your.mail@domain.xy On the Job:
This gives you a mail:
Subject: Control-M Server: Shout by orderno: 00000iz9 testmsg
Body:
Mail message from CONTROL-M:
testmsg
If you need more customization (fe, if you need to feed some Autoedits to the mail) then you need to setup the Shout Dest as type "P" - here you specify the location to a script (which you have to write on your own). In the script you are free to do whatever you need - you get all the values from the "Message" part of the Jobdef as script paras.
Rg, Rolf
-
4. Re: Warn if Average Run time exceeded
Haku Matata Apr 23, 2014 11:46 AM (in response to Haku Matata)1 of 1 people found this helpfulThanks for reply ,
I have successfully create Shout Destination with ctmsys tool. But i am not able to find the screenshot that you send about job.Where can i access this menu below ?.
Where can i define shout for specific job
On the Job:
-
5. Re: Warn if Average Run time exceeded
Mike Landis Apr 23, 2014 12:24 PM (in response to Haku Matata)Haku,
What version are you running?
-
6. Re: Warn if Average Run time exceeded
Haku Matata Apr 23, 2014 2:23 PM (in response to Haku Matata)We are running as a server 8.0.00.000.100 and as EM 8.0.00.00.200
thx
-
7. Re: Warn if Average Run time exceeded
Rolf Pfister Apr 24, 2014 12:13 AM (in response to Haku Matata) -
8. Re: Warn if Average Run time exceeded
Mike Landis Apr 24, 2014 10:21 AM (in response to Rolf Pfister)
Haku,Just a note....you can add the variables to the message.
CONTROL-M job %%JOBNAME in folder: %%SCHEDTAB Application: %%APPLIC, subapplication: %%APPLGROUP is running late.
-
9. Re: Warn if Average Run time exceeded
John Lee May 1, 2014 8:53 AM (in response to Haku Matata)Hi Haku,
First i should point out that Job's average execution time is not actually what you think it means. Job's average execution time = Jobs execution time. Where it says Exceeds average time it does mean Average Time. The screenshot below shows you how to get it setup to shout when the current Execution time exceeds the jobs average execution time by 20 percent. The Destination TEAM below is defined in a Shout Destination Table setup on the CTM server using the ctm_menu using option 5 -> 3 -> 1 Or you can use the CCM select Tools -> Alerts -> Shout Destinations Manager. There is good information in the manual regarding shout destination tables.
-
10. Re: Warn if Average Run time exceeded
Nicholas Starinsky May 1, 2014 2:10 PM (in response to Haku Matata)Why use average time instead of hard-coded value in PostProcessing tab with Exectime >
For example, If Exectime > 120 (minutes), shout to DBA or Operations team. Using average will eventually cause problems if run time grows slowly over time but your SLA does not.
-
11. Re: Warn if Average Run time exceeded
John Lee May 1, 2014 3:02 PM (in response to Nicholas Starinsky)Nicholas,
You are correct, Probably 90+ % of the time i hard code an exectime > xxx. There are some cases where you know that the job will be growing incrementally throughout the year and you know that a hard coded time isnt going to cut it. the > than a % gives a clean alternative option to allow intentional "run creep" to happen but still catch the extreme executions that literally stop your schedule. Since Haku asked about % i gave him %
-
12. Re: Warn if Average Run time exceeded
Rahim Gilani Jul 24, 2016 12:41 PM (in response to Haku Matata) -
13. Re: Warn if Average Run time exceeded
Julie Miller Jul 25, 2016 1:40 AM (in response to Rahim Gilani)Hi Rahim, Just a thought, 90% less than 38secs is 2.3 secs. The job ran for 2 secs... probably didn't meet requirements. Can you specify instead a lower percentage?
-
14. Re: Warn if Average Run time exceeded
Joseph Garito Mar 15, 2018 1:24 PM (in response to Rahim Gilani)Hi,
Was this ever resolved? We have success with shouts for minutes, but not percentage over/under.
Thanks!