Script Engine Package is receiving messages

Microsoft.Amalga.UIS.2009.Monitoring.PackageReceivingMessages.Monitor (UnitMonitor)

This monitor alerts when at least 1 message has not been received/processed within X minutes (X may be fixed or schedule dependent).

Knowledge Base article:

Summary

Script Engine Package is not receiving messages

This monitor checks the Messages Received performance counter. If an alert has occurred for a specific package, the counter has not changed for that package within the time window specified.

Configuration

Details of Overrideable Parameters:

[Default Interval Minutes]

This monitor alerts when at least 1 message has not been received/processed in X minutes. The Default Interval Minutes parameter is used for X when no matching schedule (specified by the Schedules parameter) is found for the current time.

[Schedules]

Use this field to configure (via an override) 0 or more schedules to choose from. Each schedule specifies a threshold value that the monitor should use during a specific time window. If the current time does not fall within one of the specified schedules then the Default Value parameter will be selected for the threshold.

Use semicolons between schedules when specifying multiple schedules.

Schedule Format:

<Days Of Week Mask, Selected Threshold Value, Start Time, End Time>

Days Of Week Mask

When configuring the Days Of Week Mask in the monitor, you can determine the appropriate value for this parameter by using the following values for each day of the week: Su=1, M=2, T=4, W=8, Th=16, F=32, Sa=64.

Add the values for the days you want the monitor to run.

If you want all days of the week, they will add up to 127.

If you just want Sunday, the value is 1. Just Tuesday and Thursday would be 20. M-F is 62.

Selected Threshold Value (X minutes)

This monitor checks that at least 1 message has been received/processed in X minutes. Modify Selected Threshold Value for a schedule to specify a higher interval for services that receive low traffic, such as 1 message in 4 hours (specify 240).

"Start Time"/"End Time"

Specify a time in AM/PM or 24-hr format. Start and End times must exist in the same day. If times span midnight, multiple schedules should be specified.

Causes

A feed may not be receiving messages, or the package may have script coding issues or configuration issues or it may be experiencing issues communicating with the queue.

This alert is triggered when at least 1 message was not received within the configured Interval Minutes window. Tuning via override is typically needed for this alert per feed as this is a site specific metric.

Resolutions

Override the time interval as needed for all packages or per package.

Ensure the DADE services are functioning as expected. If data ingestion is functioning as expected, confirm there are no issues with the parser script or the queue itself. If all are operating as expected and the alert is a false positive due to low message volume, adjust the time interval for all packages or the individual package as appropriate.

Element properties:

TargetMicrosoft.Amalga.UIS.2009.ScriptEnginePackage
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Amalga.UIS.2009.Monitoring.ReceivingMessages.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Script Engine Package is not receiving messages
The package has not received a message within the specified time interval.
Environment: {0}
Computer: {1}
Package: {2}
Service: {3}

Current Message Count: {4}
Interval Minutes: {5}
RunAsMicrosoft.Amalga.Library.Monitoring.RunAsAccount

Source Code:

<UnitMonitor ID="Microsoft.Amalga.UIS.2009.Monitoring.PackageReceivingMessages.Monitor" Accessibility="Public" Enabled="false" Target="Amalga2009Discovery!Microsoft.Amalga.UIS.2009.ScriptEnginePackage" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RunAs="AmalgaLib!Microsoft.Amalga.Library.Monitoring.RunAsAccount" TypeID="Microsoft.Amalga.UIS.2009.Monitoring.ReceivingMessages.MonitorType" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Amalga.UIS.2009.Monitoring.PackageReceivingMessages.Monitor_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Amalga2009Discovery!Microsoft.Amalga.UIS.2009.ScriptEnginePackage"]/Environment$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="Amalga2009Discovery!Microsoft.Amalga.UIS.2009.ScriptEnginePackage"]/PrincipalName$</AlertParameter2>
<AlertParameter3>$Target/Property[Type="Amalga2009Discovery!Microsoft.Amalga.UIS.2009.ScriptEnginePackage"]/PackageName$</AlertParameter3>
<AlertParameter4>$Target/Property[Type="Amalga2009Discovery!Microsoft.Amalga.UIS.2009.ScriptEnginePackage"]/ServiceInstanceName$</AlertParameter4>
<AlertParameter5>$Data/Context/Property[@Name='CurrentCount']$</AlertParameter5>
<AlertParameter6>$Data/Context/Property[@Name='IntervalMinutes']$</AlertParameter6>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateIdbae73a4ba9ff47fbb16cfb1b74202355" MonitorTypeStateID="unhealthy" HealthState="Error"/>
<OperationalState ID="UIGeneratedOpStateId05dc13f5786b412ea96586121e9ee00d" MonitorTypeStateID="degraded" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateId3d878e42be5f48108c03c8698c34f5e5" MonitorTypeStateID="healthy" HealthState="Success"/>
</OperationalStates>
<Configuration>
<SyncTime/>
<IntervalSeconds>1017</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<DebugEnabled>false</DebugEnabled>
<ServiceInstanceName>$Target/Property[Type='Amalga2009Discovery!Microsoft.Amalga.UIS.2009.ScriptEnginePackage']/ServiceInstanceName$</ServiceInstanceName>
<Schedules/>
<DefaultIntervalMinutes>60</DefaultIntervalMinutes>
<TargetType>PACKAGE</TargetType>
<PackageName>$Target/Property[Type='Amalga2009Discovery!Microsoft.Amalga.UIS.2009.ScriptEnginePackage']/PackageName$</PackageName>
<DebugEventSource>Amalga2009ScriptEnginePackageIsReceivingMessages</DebugEventSource>
</Configuration>
</UnitMonitor>