Wymagane ponowne uruchomienie usług IIS

Microsoft.SystemCenter.Apm.Infrastructure.Monitoring.ApmAgent.IISRestart.Monitor (UnitMonitor)

Ten monitor śledzi potrzebę ponownego uruchomienia usług IIS spowodowaną przez zmianę w ustawieniach monitorowania dla aplikacji działających na serwerze sieci Web.

Knowledge Base article:

Podsumowanie

Ten monitor śledzi potrzebę ponownego uruchomienia usług IIS spowodowaną przez zmianę w ustawieniach monitorowania dla aplikacji działających na serwerze sieci Web. Gdy potrzebne jest odtworzenie usług IIS, monitor ten przechodzi w stan złej kondycji.

Przyczyny

Po zmodyfikowaniu ustawień monitorowania aplikacji przy użyciu szablonu monitorowania wydajności aplikacji .NET potrzebne może być ponowne uruchomienie usług IIS, aby nowe ustawienia zaczęły obowiązywać. Jako przykładowy scenariusz, w którym wymagane jest ponowne uruchomienie usług IIS, można wymienić konfigurowanie monitorowania aplikacji .NET dla pierwszej aplikacji na serwerze sieci Web.

Rozwiązania

Element properties:

TargetMicrosoft.SystemCenter.Apm.ApmAgent
Parent MonitorSystem.Health.ConfigurationState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.Apm.Infrastructure.Monitoring.IISRestart.MonitorType
RemotableFalse
AccessibilityPublic
Alert Message
Wymagane ponowne uruchomienie usług IIS
Ustawienia monitorowania aplikacji na serwerze {0} zostały zmodyfikowane. W celu zastosowania nowych ustawień należy ponownie uruchomić usługi IIS na tym serwerze. Nowe ustawienia monitorowania nie zostaną zastosowane do czasu ponownego uruchomienia usług IIS. Monitorowane aplikacje będą jednak nadal działać prawidłowo.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.Apm.Infrastructure.Monitoring.ApmAgent.IISRestart.Monitor" Accessibility="Public" Enabled="true" Target="AI!Microsoft.SystemCenter.Apm.ApmAgent" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="false" Priority="Normal" TypeID="Microsoft.SystemCenter.Apm.Infrastructure.Monitoring.IISRestart.MonitorType" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.Apm.Infrastructure.Monitoring.ApmAgent.IISRestart.Monitor.AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="ApplicationStateOK" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="ApplicationStateWarning" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
</Configuration>
</UnitMonitor>