UPS Alert trap Rule - A UPS critical condition was detected

SCUtils.APC.UPS.Trap.Rule.upsCriticalCondition (Rule)

Knowledge Base article:

Summary

SNMP Trap from APC UPS

Causes

A UPS critical condition was detected. The first variable is the error condition text message. The second variable is the error number.

Resolutions

Please use the APC web interface for more detailed information.

Element properties:

TargetSCUtils.APC.UPS
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
UPS Alert trap Rule - A UPS critical condition was detected

A UPS critical condition was detected.

Source {0}
Location is {1}
IP {2}
Primary owner is {3}
Error condition text message {4}
Error number {5}

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource System.NetworkManagement.SnmpTrapEventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="SCUtils.APC.UPS.Trap.Rule.upsCriticalCondition" Enabled="true" Target="SCUtils.APC.UPS" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="NetworkLibrary!System.NetworkManagement.SnmpTrapEventProvider">
<IP>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/SNMPAddress$</IP>
<OIDProps>
<OIDProp>.1.3.6.1.4.1.318.0.734</OIDProp>
</OIDProps>
<EventOriginId>$Target/Id$</EventOriginId>
<PublisherId>$Target/Id$</PublisherId>
<PublisherName>Snmp Event</PublisherName>
<Channel>SnmpEvent</Channel>
<LoggingComputer/>
<EventNumber>1501</EventNumber>
<EventCategory>5</EventCategory>
<EventLevel>10</EventLevel>
<UserName/>
<Params/>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="SCUtils.APC.UPS.Trap.Rule.upsCriticalCondition.AlertMessage"]$</AlertMessageId>
<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"]/SNMPAddress$</AlertParameter3>
<AlertParameter4>$Target/Property[Type="NetworkLibrary!System.NetworkManagement.Node"]/PrimaryOwnerContact$</AlertParameter4>
<AlertParameter5>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[3]/Value$</AlertParameter5>
<AlertParameter6>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[4]/Value$</AlertParameter6>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[4]/Value$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>