Health Monitoring Does Not Work

I am trying to set up health monitoring in IIS 6 / ASP.NET 2 running Windows Server 2003.

What I want to do for the first step is to receive application life events in addition to the default events (as specified in C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \ web.config).

On my dev machine, running on IIS 7 as NetworkService on Windows 7, works fine.

On an IIS 6 machine, by default, events are still logged in the event log, but there are no additional life-time events. In addition, no events related to incorrect configuration are logged or displayed . In addition, using SimpleMailProvider instead of registering events does not produce results .

It seems like it's just ignoring my settings. I tried many configuration options - I even copied all the global health monitoring settings into the web.config application - but no luck.

Thanks in advance!

Here are the settings I added to web.config:

<healthMonitoring enabled="true">
    <rules>
        <clear />
        <add name="All Errors Default" eventName="All Errors" provider="EventLogProvider" profile="Critical" />
        <add name="Application Lifetime Events Default" eventName="Application Lifetime Events" provider="EventLogProvider" profile="Critical" />
        <add name="Failure Audits Default" eventName="Failure Audits" provider="EventLogProvider" profile="Critical" />
    </rules>
</healthMonitoring>
+3
source share
1 answer

Your account NetworkServicemay not have access to the registry, which is required by logging.

Grant read / write access to:

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application

and see if that helps.

0
source

Source: https://habr.com/ru/post/1754584/


All Articles