How to build a SCOM monitor to alert for stopped AppPools on a server?

Bixby 101 Reputation points
2021-09-24T18:54:20.203+00:00

We have a group that is requesting for a monitor to be built to alert whenever an AppPool stops on a certain server. Is it possible to build this monitor in SCOM 2019? Would I have to build a monitor to trigger an event from one of the System logs for this type of monitor?
Thank you for any assistance you can provide.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,419 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AlexZhu-MSFT 5,551 Reputation points Microsoft Vendor
    2021-09-27T03:39:54.083+00:00

    Hi,

    If we have imported the IIS management pack, operations manager should generate an alert if a certain application pool is stopped.

    Microsoft System Center Management Pack for Internet Information Service 2016 and 1709 Plus
    https://www.microsoft.com/en-us/download/details.aspx?id=54445

    If the normal management pack is unable to meet our requirement, we can create a monitor based on powershell. The example script is as below:

    'get iis application pool status  
    $api = New-Object -comObject "MOM.ScriptAPI"   
    $PropertyBag = $api.CreatePropertyBag()  
    $fc = (get-iisapppool "operationsmanagerappmonitoring").state  
    $PropertyBag.AddValue("AppPoolState",$fc)  
    $PropertyBag  
    

    application pool is stopped

    135431-scom-application-pool-01.png

    monitor in the management pack

    135280-scom-application-pool.png

    Alex
    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments