Page 1 of 1

Deleting unknown service alerts in one shot

Posted: Tue Mar 03, 2015 6:32 am
by venkitesh
hi all,

i have around 400 unknown service alerts. is there any way we can delete all unknown alerts in one shot from backend or something.

Please help.

Re: Deleting unknown service alerts in one shot

Posted: Tue Mar 03, 2015 10:04 am
by jdalrymple
You mean services, correct, not necessarily "service alerts"?

This would require writing a custom database query to do it, and you would have to find some commonality between those services or a list that could be referenced. If you choose to go that route you'll definitely want good backups before you start.

Re: Deleting unknown service alerts in one shot

Posted: Wed Mar 04, 2015 10:35 am
by venkitesh
hi

yes i mean services only.

All alerts are related to wmi access.

UNKNOWN - The WMI query had problems. You might have your username/password wrong or the user's access level is too low. Wmic error text on the next line.

any idea about the query.

Re: Deleting unknown service alerts in one shot

Posted: Wed Mar 04, 2015 2:59 pm
by abrist
Well, if you want to remove the actual service checks, and if they are all named relatively the same, you could just search for them in the ccm and remove them in bulk with the "with checked" option.

If you are just trying to clear the alerts, you can do so with the mass acknowledge component.

Re: Deleting unknown service alerts in one shot

Posted: Wed Mar 04, 2015 2:59 pm
by jdalrymple
Is there a reason you cannot do this from the Services section of the CCM? Just check all of the services you want removed and choose "Delete" from the With Checked box at the bottom?

Munging with the database is highly unrecommended, it is not a simple schema and deleting services that way can cause unpredictable outcomes.