Test Battery Result Monitor

SCUtils.MGE.UPS.Monitor.upsmgTestBatteryResult (UnitMonitor)

The test battery result

Element properties:

TargetSCUtils.MGE.UPS
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSCUtils.MGE.UPS.MonitorType.StatusProbe
RemotableTrue
AccessibilityPublic
Alert Message
Test Battery Result Monitor

Name: {0}
Location: {1}
Primary Owner: {2}
IP : {3}
Value : {4}

Legend:
(1) is for manual battery test success,
(3) is for scheduled battery test success,
(2) is for manual battery test failed,
(4) is for scheduled battery test failed.

The test battery result.
RunAsDefault

Source Code:

<UnitMonitor ID="SCUtils.MGE.UPS.Monitor.upsmgTestBatteryResult" Accessibility="Public" Enabled="true" Target="SCUtils.MGE.UPS" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="SCUtils.MGE.UPS.MonitorType.StatusProbe" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="SCUtils.MGE.UPS.Monitor.upsmgTestBatteryResult_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/sysName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/Location$</AlertParameter2>
<AlertParameter3>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/PrimaryOwnerContact$</AlertParameter3>
<AlertParameter4>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/SNMPAddress$</AlertParameter4>
<AlertParameter5>$Data/Context/SnmpVarBinds/SnmpVarBind[1]/Value$</AlertParameter5>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="SCUtils.MGE.UPS.Monitor.upsmgTestBatteryResult.Success" MonitorTypeStateID="StatusOK" HealthState="Success"/>
<OperationalState ID="SCUtils.MGE.UPS.Monitor.upsmgTestBatteryResult.Error" MonitorTypeStateID="StatusNotOK" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<IPAddress>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/SNMPAddress$</IPAddress>
<CommunityString>$RunAs[Name="NetworkLibrary!System.NetworkManagement.Snmp.MonitoringAccount"]/CommunityString$</CommunityString>
<SnmpVersion>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/SNMPVersion$</SnmpVersion>
<OID>.1.3.6.1.4.1.705.1.10.11.0</OID>
<ErrorValueRegEx>^(2|4)$</ErrorValueRegEx>
</Configuration>
</UnitMonitor>