Automic Workload Automation

  • 1.  How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 20, 2018 12:38 PM

    Dear All,

     

    We got a couple of UC4 workflows started in recurring way. For example they are schduled to run every day for every 30 mins. In Activity Window it is showing as C_PERIOD type. 

     

    I noticed that sometimes job is not starting. It looks like it stuck. I have difficulties to catch this anomalies. I wonder if it possible to setup an alert to send notification if specific job didn't start for example 2 or 3 last hours. In this case UC4 should send email to specific recipients. 

     

    Can You help on this ? 

     

    Regards, Krystian



  • 2.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 20, 2018 01:41 PM

    You can add an SLO and this can monitor the job.   If it does not start, you set an alert.



  • 3.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 20, 2018 02:35 PM

    Hi Richard, Thanks for Your response. What does it mean SLO ? Can You give more light on this ? 

     

    Regards, Krystian



  • 4.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 20, 2018 03:41 PM

    Hi KrystianKochanek629449,


    Richard is referring to to the Service Level Objective, see the below link for more information.
    Link 1 - Service Level Objective (SLO)
     

    Link 2 - Service Level Objective (SLO) 



  • 5.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 21, 2018 03:22 AM

    hi LuuLe, Thanks for Your help. I had no idea about SLO. 

     

    My job that I need to monitor is running in recurring way every 30 mins. I see SLO have an option to check 'Latest End Time'. Anyway I don't know how to setup an action when job stuck and it is not running last 1 or 2 hours. It finished recently correctly and should run next time in next 30 minutes but it stuck .. how to catch this setup and SLO to handle this ? 

     

    Can You help on this ? 

     

    Regards, Krystian



  • 6.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 21, 2018 09:25 AM

    Hi

     

    Just a general hint - prefer an EVNT.TIME or a JSCH object to start recurring jobs than start it in recurrent mode.

     

    If you like scripting you can use a watchdog script to check the executions of your recurring script.

    I posted one or 2 years ago a watchdog script in automic community (but at the moment I am unable to find it)

     

    cheers, Wolfgang



  • 7.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 21, 2018 09:35 AM

    hi Wolfgang,

     

    We are using JSCH mostly but in jobs running daily or few times per day. When we have jobs running so often (every 30 mins) we are doing it in recurreing way (as it is easier and faster instead of adding each entry to JSCH). 

     

    Are You able to find Your watchdog script from the past ?

     

    Regards, Krystian



  • 8.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?
    Best Answer

    Posted Sep 23, 2018 02:33 PM
      |   view attached

    Hi

     

    unfortunately the old Watchdog considered MRT only :-(

     

    So I created a new one for you.

     

    Just include JOBI.WATCHDOG in Prescript or Process Tab of the object to check.

     

    Config:

    Explanation:

    Watchdog checks one minute after activation if JOBP.WATCHDOGTEST runs in state 1550 (ACTIVE)

    Watchdog checks one minute after activation if JOBS.UNIX.WATCHDOGTEST ended with State 1900 (ENDED_OK)

    Watchdog checks one minute after activation if JOBSUNIX.WATCHDOGTEST.2 runs in state 1550 (ACTIVE)

    Watchdog checks one minute after activation if JOBS.WIN.WATCHDOGTEST ended with State 1800 (ENDED_NOT_OK)

     

    Precondition: a TimeZone Object must be defined in Job atrributes!

     

    have fun!

    If you have any questions pls let me know.

     

    cheers, Wolfgang

    Attachment(s)

    zip
    V112_watchdog.zip   4 KB 1 version


  • 9.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 24, 2018 12:23 PM

    Thank You so much!!

     

    Regards, Krystian



  • 10.  Re: How to setup an alert when UC4 workflow doesn't start in recurring way ?

    Posted Sep 24, 2018 02:58 PM

    You're welcome :-)

    cheers, Wolfgang