In our environment we have a combination of Search Service Applications and FAST Search Service Applications for various purposes. Occassionally the crawls on either type of Service Application will run indefinately. Usually this is caused when the database becomes unavailable or some other maintenance item.
I am wanting to monitor those crawls in an automated fashion to alert us when a crawl has taken longer than a specific amount of time.
I'd like to go one of two routes: 1) setup a SCOM monitor, -or- 2) create a timer job that checks periodically.
For route #1: is it possible to setup a SCOM monitor for such a thing?
For route #2: how can I obtain the status of a search crawl from .NET code?
Thanks