Amount of messages in the delivery queue

MD.TrendMicro.IMSS.DeliveryQueueSize (UnitMonitor)

Element properties:

TargetMD.TrendMicro.IMSS.Application
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Instance NameIMSS
Counter NameTotal messages in the delivery queue
Frequency60
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.WmiBased.Performance.ThresholdMonitorType
RemotableTrue
AccessibilityInternal
Alert Message
Amount of messages in the delivery queue
The amount of messages in the IMSS delivery queue reached a critical threshold, amount of messages in the queue: {0}
RunAsDefault

Source Code:

<UnitMonitor ID="MD.TrendMicro.IMSS.DeliveryQueueSize" Accessibility="Internal" Enabled="true" Target="MD.TrendMicro.IMSS.Application" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.WmiBased.Performance.ThresholdMonitorType" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="MD.TrendMicro.IMSS.DeliveryQueueSize_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderThreshold" MonitorTypeStateID="UnderThreshold" HealthState="Success"/>
<OperationalState ID="OverThreshold" MonitorTypeStateID="OverThreshold" HealthState="Error"/>
</OperationalStates>
<Configuration>
<NameSpace>root\cimv2</NameSpace>
<Query>Select DeliveryQueueSize from Win32_PerfRawData_TmImssMTA_IMSS</Query>
<Frequency>60</Frequency>
<ObjectName>IMSS</ObjectName>
<CounterName>Total messages in the delivery queue</CounterName>
<InstanceName>Default</InstanceName>
<Value>$Data/Property[@Name='DeliveryQueueSize']$</Value>
<Threshold>250</Threshold>
</Configuration>
</UnitMonitor>