As far as I know, you cannot use the ASP.NET Health Monitoring for "classic" ASP sites.
This page, asp Element - IIS 7 Settings Schema on the MSDN website details all of the different attributes to the <asp>
node within the <system.webServer>
node, and unfortunately, there does not seem to be a mechanism for switching on health monitoring.
This makes sense as the <system.webServer>
node is processed by, and defines configuration for IIS7 itself rather than the ASP.NET runtime, whereas the Health Monitoring functionality is ASP.NET specific, and it is even implemented by classes within the .NET framework's System.Web.Management Namespace.
That said, if you're looking to be alerted, via email, whenever an error occurs within your classic ASP application, you could achieve this by setting the errorsToNTLog
attribute of the <asp>
node to True
:
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" errorsToNTLog="True" />
</system.webServer>
This will ensure that ASP errors occurring within your application will be logged to the Windows Event Log. You can then monitor these errors using a separate utility which will fire off an email notification to you when an event log entry is written.
A detailed explanation of how this can be achieved, and the various options for tools (open-source, commercial or even a custom VBScript) needed to perform this, can be found within this ServerFault posting:
Windows Event Log - email notification