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
© ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center