How to clear alarms using alertid
Posted: Mon Sep 18, 2023 3:19 am
Hi Team
From a database monitoring tool I'm receiving traps for various metrics when they exceed the thresholds.
For example I receiving traps named "Total activity time" when one sql statements exceed the thesholds like this:
New WARNING Alert 5482: Total activity time on xyz : Warning threshold: 300 s Total activity wait time: 44 s Rows returned: 0 Total activity time: 347 s Total CPU time: 1778 ms Rows read: 270429 User: xyz Application name: xyz Client hostname: .... Application handle: ...
and a clear traps when the statement is completed:
Closed WARNING Alert 5470: Total activity time on xyz:
I send these type of alarm to a nagios service called "Total activity time" and my question is about to selectively clear just the alarms with the same alertid that in the example is "Alert 5482".
Does anyone know if this can be done?
From a database monitoring tool I'm receiving traps for various metrics when they exceed the thresholds.
For example I receiving traps named "Total activity time" when one sql statements exceed the thesholds like this:
New WARNING Alert 5482: Total activity time on xyz : Warning threshold: 300 s Total activity wait time: 44 s Rows returned: 0 Total activity time: 347 s Total CPU time: 1778 ms Rows read: 270429 User: xyz Application name: xyz Client hostname: .... Application handle: ...
and a clear traps when the statement is completed:
Closed WARNING Alert 5470: Total activity time on xyz:
I send these type of alarm to a nagios service called "Total activity time" and my question is about to selectively clear just the alarms with the same alertid that in the example is "Alert 5482".
Does anyone know if this can be done?