Tags - Fetch tags in Rule Based on Tag Need to Set Email ID


in my system we have different regions of agents configured. presently we don't have any naming standards for the monitoring servers. we have only option to classify using "TAGS".

my requirement is depending on the tag need to set Email ID and for that specific region to send alerts.


Server1 - Tag [Australia]

Server2 - Tag {Japan]

WE have registry entry emaild.

if TAG ='Australia' set Registyr valible email id ='australia_support@abc.com'

help me script  to write in Alarm. Fetch the tag value and depending on the value set email id.