Služba MSMQ: Celkový počet zpráv ve všech frontách

Microsoft.MSMQ.10.0.Monitor.TotalMessages (UnitMonitor)

Monitoruje hodnotu čítače „Celkový počet zpráv ve všech frontách“. Pokud je hodnota větší než prahová, zobrazí výstrahu.

Knowledge Base article:

Souhrn

Počet zpráv ve všech frontách překračuje běžné hodnoty.

Řešení

Zajistěte, aby měl server služby MSMQ k dispozici dostatečné prostředky. Pokud server jinak funguje normálně, prošetřete velikost a fungování zpráv s cílem porozumět tomu, zda nedošlo k nějakým nedávným nebo náhlým zvýšením.

Element properties:

TargetMicrosoft.MSMQ.10.0.Servers
Parent MonitorSystem.Health.PerformanceState
CategoryCustom
EnabledTrue
Instance NameMSMQ Service
Counter NameTotal messages in all queues
Frequency900
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSystem.Performance.ConsecutiveSamplesThreshold
RemotableTrue
AccessibilityPublic
Alert Message
Celkový počet zpráv
Podrobnosti zjistíte v kontextu výstrahy.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.MSMQ.10.0.Monitor.TotalMessages" Accessibility="Public" Enabled="true" Target="Microsoft.MSMQ.10.0.Servers" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="SystemPerf!System.Performance.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.MSMQ.10.0.Monitor.TotalMessages.AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters/>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderThreshold" MonitorTypeStateID="ConditionFalse" HealthState="Success"/>
<OperationalState ID="OverThreshold" MonitorTypeStateID="ConditionTrue" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Total messages in all queues</CounterName>
<ObjectName>MSMQ Service</ObjectName>
<InstanceName/>
<AllInstances>false</AllInstances>
<Frequency>900</Frequency>
<Threshold>10000</Threshold>
<Direction>greater</Direction>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>