Apache Virtual Host – Statuscode für Webanforderung

Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.Monitor (UnitMonitor)

Monitor "Apache Virtual Host – Statuscode für Webanforderung"

Knowledge Base article:

Zusammenfassung

Diese Monitor stellt sicher, dass der Operations Manager-Server mit dem Apache Virtual Host über eine Remote-HTTP-Anforderung kommunizieren kann.

Ursachen

Ein fehlerhafter Status für diesen Monitor signalisiert Probleme mit der Apache HTTP Server-Kommunikation.

Die folgenden Probleme könnten den Status dieses Monitors beeinflussen:

Lösungen

Prüfen Sie, ob die Konfiguration des Monitors für den Virtual Host angemessen ist. Prüfen Sie, ob der Apache HTTP Server ausgeführt wird. Vergewissern Sie sich, dass der Zugriff nicht durch eine Firewall blockiert wird und die relevanten Benutzeranmeldeinformationen dem ausführenden Konto zur Verfügung gestellt wurden.

Um die Verbindung zum Apache HTTP Server manuell zu prüfen, öffnen Sie einen Browser, und stellen Sie eine Verbindung zur gehosteten Webseite her.

Konfiguration

Standardkonfiguration

Parameter

Standardwert

URL

http://[Servername des Virtual Host]

Proxy

ProxyUserName

ProxyPassword

ProxyAuthenticationScheme

None

CredentialUserName

CredentialPassword

AuthenticationScheme

None

RetryCount

0

RequestTimeout

120

StatusCodeThreshold

400

Die oben für alle Instanzen oder für eine bestimmte Instanz oder Gruppe definierten Parameterwerte können mithilfe von Außerkraftsetzungen geändert werden.

Hinweis: Dieser Monitor ist standardmäßig deaktiviert. Verwenden Sie eine Außerkraftsetzung, um ihn zu aktivieren, und bestätigen Sie, dass URL, Proxykonfiguration und Authentifizierung korrekt sind, wenn Sie den Monitor aktivieren.

Element properties:

TargetMicrosoft.ApacheHTTPServer.VirtualHost.Unix
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Apache Virtual Host-URL-Status
Der Remote-URL-Test war nicht erfolgreich. Die Remotesite ist möglicherweise offline.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.Monitor" Accessibility="Public" Target="Microsoft.ApacheHTTPServer.VirtualHost.Unix" TypeID="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.MonitorType" Enabled="false" ParentMonitorID="Health!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<!-- <AlertParameter1></AlertParameter1>-->
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="ProbeStatusSuccess" ID="ProbeStatusSuccess"/>
<OperationalState HealthState="Error" MonitorTypeStateID="ProbeStatusFailure" ID="ProbeStatusFailure"/>
</OperationalStates>
<Configuration>
<Interval>300</Interval>
<URL>http://$Target/Property[Type="Microsoft.ApacheHTTPServer.VirtualHost"]/ServerName$</URL>
<Proxy/>
<ProxyUserName/>
<ProxyPassword/>
<ProxyAuthenticationScheme>None</ProxyAuthenticationScheme>
<CredentialUserName/>
<CredentialPassword/>
<AuthenticationScheme>None</AuthenticationScheme>
<RetryCount>0</RetryCount>
<RequestTimeout>120</RequestTimeout>
<StatusCodeThreshold>400</StatusCodeThreshold>
</Configuration>
</UnitMonitor>