Apache 虛擬主機每分鐘錯誤數 - 伺服器監視
連絡 Apache 虛擬主機時發生的內部伺服器錯誤數量過高。可能會對 Apache HTTP Server 效能造成負面影響。
Apache 內部伺服器錯誤是在 Apache 虛擬主機內發生的問題。
監視閾值是針對輪詢代理程式時傳回的平均值進行分析,其中 [範例數] 參數用於控制平均計算中所含的範例數。
Apache 內部伺服器錯誤可能是在伺服器上執行格式錯誤的程式碼所造成。這些錯誤也可能是設定檔中的指示詞無效,以及檔案系統和伺服器軟體設定的限制所造成。
若要解決虛擬主機上的 Apache 伺服器錯誤,請選擇下列一個或多個選項:
確定設定檔適當存在,且伺服器上的程式碼可以取得正確的設定指示詞。
調查 Web 應用程式中是否有程式碼問題
確認 Web 應用程式相依的資源 (例如資料庫) 是否可用
預設設定
參數 | 預設值 |
閾值 | 1 |
範例數 | 3 |
您可以使用覆寫,針對所有執行個體或特定執行個體或群組來變更上述定義的參數值
Target | Microsoft.ApacheHTTPServer.VirtualHost.Unix | ||
Parent Monitor | System.Health.PerformanceState | ||
Category | PerformanceHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Oss.WSMan.Performance.Average.Filtered.Threshold.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorsPerMinute500.Monitor" Accessibility="Public" Target="Microsoft.ApacheHTTPServer.VirtualHost.Unix" TypeID="Oss!Microsoft.Oss.WSMan.Performance.Average.Filtered.Threshold.MonitorType" ParentMonitorID="Health!System.Health.PerformanceState" Enabled="onStandardMonitoring">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorsPerMinute500.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Error" MonitorTypeStateID="OverThreshold" ID="OverThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Apache_HTTPDVirtualHostStatistics?__cimnamespace=root/apache</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Apache Virtual Host</ObjectName>
<CounterName>Errors per Minute 500</CounterName>
<InstanceName>$Target/Property[Type="Microsoft.ApacheHTTPServer.VirtualHost"]/InstanceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostStatistics']/*[local-name(.)='InstanceID']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostStatistics']/*[local-name(.)='ErrorsPerMinute500']$</Value>
<Threshold>1</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>