Blog Post

Tech Talk
1 MIN READ

API Method to CLEAR an Alert (toggle off=on Alert Enable)

Darren_Dudgeon's avatar
9 months ago

Hello,

We have a need to via API, CLEAR an alert. I don’t see any API Methods to clear an alert. I only see methods to GET or POST a Note/ACK.

Can you assist me with what API method we can use to clear (toggle on/off) an alert?

Thanks,

Darren Dudgeon

Published 9 months ago
Version 1.0

13 Comments

  • Basically: if you want the alert cleared, you have to either fix the problem or remove the threshold so LM doesn’t think it’s a problem anymore. I do believe alerts clearing on object deletion is a resolved issue.

  • This is maybe similar to me wanting all staff to be able to toggle alerting when SDT is set. This will clear the alert in the ticketing system.

  • That’s an interesting one. I had something like that setup for my Device by Collector Auto Grouping DS which would create a group structure with a group for each collector with its assigned devices in its group. There was an option called cascadeSDT. At the time, group SDT wasn’t working right, so i built it so that whenever the collector went into SDT, the group would get alerting disabled.

    The problem was that long standing alerts, or alerts that had already been acked would get closed and reopened. If you’re already disabling/enabling to clear alerts (it’s already part of your workflow) then go for it. I’d rather have the ability to selectively clear an alert to see if it comes back. Sometimes someone will close a ticket even though the alert is still open. Being able to just clear the alert manually and let it come back would be good because it would open a new ticket stating that the problem is still happening.