question

Bixby-1953 avatar image
0 Votes"
Bixby-1953 asked AlexZhu-MSFT answered

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

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.

msc-operations-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlexZhu-MSFT avatar image
0 Votes"
AlexZhu-MSFT answered

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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.