Automic Workload Automation

 View Only
  • 1.  Restrict notification

    Posted Jun 15, 2020 03:35 AM
    Hello Expert , 

    We have configured notification alert for different object eg agent down , failed job etc. How can we restrict repetitive alert which is generating for same object. 

    If period job failed at 05 mins frequency then every hour there are 12 alerts generated, how can we restrict these same alerts ? We have same issue in agent down notification alert.During unplanned outage we are getting agent down notification every second which we want to restrict for 5-10 alert for same agent. We have checked notification attribute but could not find suitable option for the same. 

    We are using AWI 12.03   

    Appreciate any input/guidance on this. 

    Regards,
    Viral  
     


  • 2.  RE: Restrict notification

    Posted Jun 15, 2020 11:03 AM
    Hi Viral,

    the Notification object does not have this capability BUT what I have implemented for a lot of customers worldwide is a counter to limit the amount of information messages.

    regards,
    Peter


  • 3.  RE: Restrict notification

    Posted Jun 15, 2020 11:42 AM
    Hello Peter , 

    Is it possible to share ? or could you please guide so we can try from our side. 

    What we have currently configured in our system for agent notification is ,  

    :read &uc_ex_host,,,
    !
    :set &lang# = SYS_USER_LANGUAGE
    :if &lang# = 'E'
    : put_att SUBJECT = "WLA: &$SYSTEM#: agent &uc_ex_host offline"
    : set &tt = "WLA Notification: Agent offline"
    : set &ht = "WLA: &$SYSTEM# Agent offline!"
    : set &c1#="System name"
    : set &c2#="Agent"
    : set &c3#="Time"
    :endif

    Now I am not sure how can I restrict "uc_ex_host" agent value ( agent name ) because in unplanned outage WLA will keep checking any down agent and we have multiple agent configured. Every second value is keeping changing for "uc_ex_host" parameter. I also read somewhere value will not store in "uc_ex_host" and we cannot try with Maximum Runtime (MRT)

    Appreciate, If you could put some light or share your version for smart alerting. 

    Regards,
    Viral


  • 4.  RE: Restrict notification
    Best Answer

    Posted Jun 16, 2020 02:57 AM
    Hi Viral,

    please find an enhanced routine below. I'm checking the global "AE on/AE off" status by using the status of a SYNC object and count the nomber of notifications sent for an agent. It's (currently) not considering in which interval the notification is sent out nor resetting the counter after a specific time.

    :read &uc_ex_host, , ,
    !
    ! *** check for planned AE outage ***
    :if get_sync("AE.STATUS", "STATE")= "OFF"
    : stop nomsg, 50, "AE planned outage"
    :else
    ! *** check for max. notification count ***
    : set &agent_count# = get_var("VARA.AGENTS.COUNT", &uc_ex_host)
    : if &agent_count# le 10
    ! *** max. count not yet reached
    : set &agent_count# = add(&agent_count#, 1)
    : put_var "VARA.AGENTS.COUNT", &uc_ex_host, &agent_count#
    ! *** create message text and inform ***
    : set &lang# = SYS_USER_LANGUAGE
    : if &lang# = 'E'
    : put_att SUBJECT = "WLA: &$SYSTEM#: agent &uc_ex_host offline"
    : set &tt = "WLA Notification: Agent offline"
    : set &ht = "WLA: &$SYSTEM# Agent offline!"
    : set &c1#="System name"
    : set &c2#="Agent"
    : set &c3#="Time"
    : endif
    : endif
    :endif

    regards,
    Peter


  • 5.  RE: Restrict notification

    Posted Jun 22, 2020 06:38 AM
    Hello Peter , 

    We have tried to implement suggested logic but we can see notification could not start and ended with error "" Start impossible ".  I have also noticed in some of the execution report value for "uc_ex_host was null. 

    Please find the attached screeenshot for the same. Could you please help/guide. 

    Thank you. 
     
    Regards ,
    Viral 



  • 6.  RE: Restrict notification

    Posted Jun 22, 2020 11:55 AM
    Hi Viral,

    beside the Notification object: have you created the Sync (AE.STATUS) and Vara (VARA.AGENTS.COUNT) objects?

    regards,
    Peter


  • 7.  RE: Restrict notification

    Posted Jul 08, 2020 06:35 AM
    Hello Peter , 

    Thank you its working as expectation. 

    Regards,
    Viral