Solutions > AppInsight Applications > Understanding AppInsight for IIS > Understanding Alerts and Reports for AppInsight for IIS

Alerts and reports for AppInsight for IIS

The following three alerts and their macros/variables are included with AppInsight for IIS:

1. Alert Name Restart Failed IIS Application Pool
State Alert disabled by default.
Alert Description This alert restarts any failed IIS application pool that is configured to be "AlwaysRunning." As configured, this alert will not trigger for application pools that are configured to start "OnDemand," as these application pools stop normally when not in use, or when the site that is configured to use the Application Pool has no activity and is dormant.
Alert Trigger IIS application pool = Stopped and application pool startup mode is configured for "AlwaysRunning" and Application Pool is not equal to Unmanaged.
Trigger Action

Start application pool

Application Pool trigger actions should include Stop, Start, and Restart, no differently than the actions available through the Orion web interface for AppInsight for IIS application pools.

Trigger Action 2

Email Notification:
Subject: Application Pool ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is ${N=SwisEntity;M=DisplayState}.

Message Body: The IIS Application Pool ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is currently ${N=SwisEntity;M=DisplayState}. Attempting to restart Application Pool ${N=SwisEntity;M=Name} now. For more information click the URL below.

<br/>
<br/>
${N=SwisEntity;M=DetailsUrl}
Trigger Reset Action

Email Notification:

Subject: Application Pool ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is ${N=SwisEntity;M=DisplayState}

Message Body: The IIS Application Pool ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is now ${N=SwisEntity;M=DisplayState}. For more information click the URL below.

<br/>
<br/>
${N=SwisEntity;M=DetailsUrl}
2. Alert Name Restart Failed IIS Site
State Alert disabled by default.
Alert Description This alert attempts to restart any site that is monitored by AppInsight for IIS that is found to be in a Stopped state.
Alert Trigger IIS site = Stopped and not equal to Unmanaged.
Trigger Action Start IIS site (Note: IIS site trigger actions should include Stop, Start, and Restart, no differently than the actions available through the Orion web interface for AppInsight for IIS sites.
Trigger Action 2

Email Notification:
Subject: IIS Site ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is ${N=SwisEntity;M=DisplayState}.

Message Body: The IIS Site ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is currently ${N=SwisEntity;M=DisplayState}. Attempting to restart Site ${N=SwisEntity;M=Name} now. For more information click the URL below.

<br/>
<br/>
${N=SwisEntity;M=DetailsUrl}
Trigger Reset Action

Email Notification:
Subject: IIS Site ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is ${N=SwisEntity;M=DisplayState}.

Message Body: The IIS Site ${N=SwisEntity;M=Name} on ${N=SwisEntity;M=Application.Node.Caption} is now ${N=SwisEntity;M=DisplayState}. For more information click the URL below.

<br/>
<br/>
${N=SwisEntity;M=DetailsUrl}.
3. Alert Name Alert me when the Average Server Execution Time for any URL exceeds an acceptable limit.
State Alert disabled by default
Alert Description This alert notifies you when the execution time of any URL monitored by AppInsight for IIS exceeds a predefined acceptable limit.
Alert Trigger Average URL Server Execution Time is greater than 5 minutes.
Trigger Action

Email Notification:
Subject: IIS Site Server Execution Time exceeded on ${N=SwisEntity;M=Site.Name}.

Message Body: The Server Average Execution time for ${N=SwisEntity;M=Site.Name} on ${N=SwisEntity;M=Site.Application.Node.Caption} has been exceeded. Details for the URL being accessed are listed below.

Recent Request Date:${N=SwisEntity;M=RecentRequestDate}

URL: ${N=SwisEntity;M=URLStem}

Average Server Execution Time:${N=SwisEntity;M=AverageElapsedTime} ms

Reports installed for use with AppInsight for IIS:

  • IIS SSL Certificate Expiration Report
  • Site Connections Report
  • Site Log Size by File
  • Site Size by File