APC UPS: Battery run time remaining Health Monitor

Jalasoft.Xian.SmartManagementPacks.ApcUps.BatteryRunTimeRemaining.1.1 (AggregateMonitor)

This monitor catches Xian events that notifies when the Battery run time remaining has changed its state.

Knowledge Base article:

Summary

Remaining battery run time is under threshold

The remaining battery run time is below the threshold set in Xian rule.

Causes

The battery is in use and the remaining energy output is below established threshold.

Resolutions

Replace for a fully charged battery.

Additional

Monitors the UPS battery remaining run time before battery exhaustion

Element properties:

TargetJalasoft.Xian.Common.Types.ThirdParty.APC.JsXBatteryElementContainer
Parent MonitorSystem.Health.PerformanceState
AlgorithmWorstOf
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityLow
Alert Auto ResolveTrue
RemotableTrue
AccessibilityPublic
Alert Message
Battery run time remaining Alert
{0}

Source Code:

<AggregateMonitor ID="Jalasoft.Xian.SmartManagementPacks.ApcUps.BatteryRunTimeRemaining.1.1" Accessibility="Public" Enabled="true" Target="ThirdParty_APC!Jalasoft.Xian.Common.Types.ThirdParty.APC.JsXBatteryElementContainer" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="BatteryRunTimeRemaining_AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Low</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Params/Param[3]$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<Algorithm>WorstOf</Algorithm>
</AggregateMonitor>