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
monitor in the management pack
Alex
If the response is helpful, please click "Accept Answer" and upvote it.