After enabling the Forward Alarms as SNMP Traps rule, we noticed that the trap was actually sent twice, once when the alarm was cleared and once when it was raised again.
Is there a way to suppress sending the SNMP Trap for a cleared alarm?
The Forward Alarms as SNMP Traps doesn't filter any AlarmSystemEvents. Foglight generates an event when an Alarm fires but also when it's cleared or acknowledged.
To suppress sending an SNMP Trap for an alarm cleared event, modify the condition statement from:
true
to:
!@event.get("isCleared")
To suppress sending an SNMP Trap for alarm cleared and alarm acknowledged events, update the condition statement to:
!@event.get("isCleared") && !@event.get("isAcknowledged")
Notes:
Additional information about the Forward Alarms as SNMP Traps action and available parameters can be found under the Manage Rules section of the Foglight documentation.
Other related solutions:
Unable to use Send SNMP Trap Action from Event Driven rules
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center