What I recommend is to create a custom event for both the hwEntityInvalid and hwEntityResume traps. Attach an Event Condition rule to these new events looking for either FAN or POWER in varbind 6 which is entPhysicalName. If found, generate another new custom event for both the hwEntityInvalid and hwEntityResume traps. Then set the default to the out of the box events 0x05c20017 and 0x05c20018.
Here is what I did in my lab:
1. Log into OneClick as an ADMIN user
2. Launch the Event Configuration editor
3. Find and selected the 0x5c20017 event and created two copies: 0xfff00006 and 0xfff00008
4. Find and selected the 0x5c20018 event and created two copies: 0xfff00007 and 0xfff00009
5. I removed the alarming on the 0xfff00006 event
6. I removed the alarm clear on the 0xfff00007 event
7. I changed the severity of the alarm on the 0xfff00008 event to Critical
8. I left the alarm clearing on the 0xfff00009 event
9. I configured an Event Condition rule on the 0xfff00006 event to generate event 0xfff00008 if varbind 6 is equal to either "FAN" or "POWER" and also set event 0x5c20017 to be the default event.
10. I configured an Event Condition rule ont he 0xfff00007 event to generate event 0xfff00009 if varbind 6 is equal to either "FAN" or "POWER" and also set event 0x5c20018 to be the default event.
The following are my configurations as they apear in my $SPECROOT/custom/Events/EventDisp file:
0xfff00006 E 20 R CA.EventCondition, "(regexp({v 6}, {S \"FAN\"}))" , "0xfff00008 -:-","(regexp({v 6}, {S \"POWER\"}))" , "0xfff00008 -:-","default" , "0x5c20017 -:-"
0xfff00007 E 20 R CA.EventCondition, "(regexp({v 6}, {S \"FAN\"}))" , "0xfff00009 -:-","(regexp({v 6}, {S \"POWER\"}))" , "0xfff00009 -:-","default" , "0x5c20018 -:-"
0xfff00008 E 20 A 3,0x05c20017,5
0xfff00009 E 20 C 0x05c20017,5
Notice the 0xfff00008 and 0xfff00009 events also use varbind 5 as an Event Discriminator same as the 0x5c20017 and 0x5c20018 events.
You will need to override the out of the box AlertMap file entry to use the 0xfff00006 and 0xffff7 events for the hwEntityInvalid and hwEntityResume traps.
The following are the enentries I added to $SPECROOT/custom/Events/AlertMap file:
# hwEntityInvalid hwBaseTrapSeverity
1.3.6.1.4.1.2011.5.25.129.2.1.6.9 0xfff00006 1.3.6.1.4.1.2011.5.25.129.1.1(1,0)\
# hwBaseTrapProbableCause
1.3.6.1.4.1.2011.5.25.129.1.2(2,0)\
# hwBaseTrapEventType
1.3.6.1.4.1.2011.5.25.129.1.3(3,0)\
# entPhysicalContainedIn
1.3.6.1.2.1.47.1.1.1.1.4(4,5)\
# entPhysicalName
1.3.6.1.2.1.47.1.1.1.1.7(6,0)\
# hwBaseTrapRelativeResource
1.3.6.1.4.1.2011.5.25.129.1.4(7,0)\
# hwBaseTrapReasonDescr
1.3.6.1.4.1.2011.5.25.129.1.5(8,0)
# hwEntityResume hwBaseTrapSeverity
1.3.6.1.4.1.2011.5.25.129.2.1.6.10 0xfff00007 1.3.6.1.4.1.2011.5.25.129.1.1(1,0)\
# hwBaseTrapProbableCause
1.3.6.1.4.1.2011.5.25.129.1.2(2,0)\
# hwBaseTrapEventType
1.3.6.1.4.1.2011.5.25.129.1.3(3,0)\
# entPhysicalContainedIn
1.3.6.1.2.1.47.1.1.1.1.4(4,5)\
# entPhysicalName
1.3.6.1.2.1.47.1.1.1.1.7(6,0)\
# hwBaseTrapRelativeResource
1.3.6.1.4.1.2011.5.25.129.1.4(7,0)\
# hwBaseTrapReasonDescr
1.3.6.1.4.1.2011.5.25.129.1.5(8,0)
After making these changes, update the event configuration and you should be good to go.
Joe