you can use a hook script between your SAM and AMPM : this hook script will use the MemberOf relationship of the ElementInstance in order to put in an UserDefined attribute the group containing the element in alarm. Then you can build a filter based on this UserDefined attribute.
HTH,
--Fred
== Monitor your Smarts environment using APG ReportPack for Smarts health == Frederic Meunier Solutions Watch4Net Inc APG & Smarts InCharge integration http://www.watch4net.com
We already have a Hook implemented which assigned a specific value to a UserDefined given the domain we are receiving the event from. So i understand the part about the hook.
However im still looking into documentation about how to get the right object .Since im new to the tool i dont have a list of all the classes i can use and dont know yet how to get the object im interested into.
Would you happen to have some code sample about how to do that ? (Ideally how to fetch the right object and which attribute to compare to the S-HGRP group im interested in ? )
if (systemInFault == "") { return; } now you have captured the device
systemInFaultObj = self->object("UnitaryComputerSystem", systemInFault)?IGNORE; if (!systemInFaultObj->isNull()) { foreach group (systemInFaultObj->MemberOf) { now you can loop through the list of group and search for the right regex you are using, then based on the group, assign the UserDefined.
HTH,
--Fred
== Monitor your Smarts environment using APG ReportPack for Smarts health == Frederic Meunier Solutions Watch4Net Inc APG & Smarts InCharge integration http://www.watch4net.com
FredericMeunier_0588be
143 Posts
351
0
Posted December 8th, 2009 06:00
Hi,
you can use a hook script between your SAM and AMPM : this hook script will use the MemberOf relationship of the ElementInstance in order to put in an UserDefined attribute the group containing the element in alarm. Then you can build a filter based on this UserDefined attribute.
HTH,
--Fred
== Monitor your Smarts environment using APG ReportPack for Smarts health ==
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com