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
Original Message:
Sent: 06-15-2020 11:41 AM
From: viral pabari
Subject: Restrict notification
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
Original Message:
Sent: 06-15-2020 11:02 AM
From: Peter Grundler
Subject: Restrict notification
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
Original Message:
Sent: 06-15-2020 03:35 AM
From: viral pabari
Subject: Restrict notification
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