5.02021-11-21T22:01:28ZHalley templateHW UPS Legrand CS141HW UPS Legrand CS141## Overview
Template for monitoring UPS Legrand CS 141 (all models) with explanations and advices. The mibs are there: <http://ups.legrand.com/software/>
The content of template:
**5 Applications**: General, Health, Input, Output, Battery
**18 Items:**
Input voltage, Battery Status ,Estimated minutes remaining if no power , Bypass Voltage
Alarms present on {HOST.NAME}, Bypass Current, Bypass Power
Input line bads, Output Power, Output load in percent
Seconds on battery, Output Voltage
Estimated charge remaining, Battery voltage
Battery temperature, Device Version
Device Name, Device Model
13 Triggers and 4 Graphs
The template use SNMP agent v2. Assure that you set the community in template macros.
Assure also that in Administration -> General -> Value mapping you have under APC Battery Status next values
1 ⇒ unknown
2 ⇒ batteryNormal
3 ⇒ batteryLow
4 ⇒ batteryDepleted
[Send me](mailto:priechodsky.dusan@gmail.com) what template you need, or if this template helped you, [you can buy me one coffee](https://ko-fi.com/priechodskydusan) :)
Upgraded template from Tudor Ticau
## Author
Dusan Priechodsky
Halley templateBatteryBypassGeneralHealthInputOutput- Alarms present on {HOST.NAME}SNMP_AGENT.1.3.6.1.2.1.33.1.6.1.0upsAlarmsPresent30The present number of active alarm conditions.Health{last()}<>0UPS Alarm PresentWARNINGOn your {HOST.NAME} are activated {ITEM.VALUE} alarms. Please check UPS - usually UPS must produce some sounds nowYESValue{ITEM.VALUE}
- Battery StatusSNMP_AGENT.1.3.6.1.2.1.33.1.2.1.0upsBatteryStatus30The indication of the capacity remaining in the UPS system's batteries. A value of batteryNormal indicates that the remaining run-time is greater than upsConfigLowBattTime. A value of batteryLow indicates that the remaining battery run-time is less than or equal to upsConfigLowBattTime. A value of batteryDepleted indicates that the UPS will be unable to sustain the present load when and if the utility power is lost (including the possibility that the utility power is currently absent and the UPS is unable to sustain the output).BatteryAPC Battery Status{last()}<>2Battery Status on {HOST.NAME} is {ITEM.VALUE}HIGHBattery Status on {HOST.NAME} is {ITEM.VALUE}YESValue{ITEM.VALUE}
- Battery temperatureSNMP_AGENT.1.3.6.1.2.1.33.1.2.7.0upsBatteryTemperature60°CThe ambient temperature at or near the UPS Battery casing.Battery{last()}>45Battery temperature HighHIGHYESValue{ITEM.VALUE}{last()}>35 and {last()}<45Battery temperature WarningWARNINGYESValue{ITEM.VALUE}
- Battery voltageSNMP_AGENT.1.3.6.1.2.1.33.1.2.5.0upsBatteryVoltage60VThe magnitude of the present battery voltage.BatteryMULTIPLIER0.1
- Estimated charge remainingSNMP_AGENT.1.3.6.1.2.1.33.1.2.4.0upsEstimatedChargeRemaining60%An estimate of the battery charge remaining expressed as a percent of full charge.BatteryJAVASCRIPT days = Math.floor(value / (24*60));
daysvalue=value % (24*60);
hours = Math.floor((daysvalue)/(60));
hoursvalue=value % (60);
minutes = Math.floor(hoursvalue);
minutesvalue=value;
return days+":"+hours+":"+minutes;{last()}<20Battery Charge DepleatedHIGHYESValue{ITEM.VALUE}{last()}<80Battery Charge Less Than 80%WARNINGYESValue{ITEM.VALUE}
- Estimated minutes remaining if no powerSNMP_AGENT.1.3.6.1.2.1.33.1.2.3.0upsEstimatedMinutesRemaining30mAn estimate of the time to battery charge depletion under the present load conditions if the utility power is off and remains off, or if it were to be lost and remain off.Battery{last()}<10Battery Time Remaining Below 10 MinutesWARNINGYESValue{ITEM.VALUE}
- Device VersionSNMP_AGENT.1.3.6.1.2.1.33.1.1.4.0upsIdentAgentSoftwareVersion6000CHARThe UPS agent software version.TAGGeneral
- Device LocationSNMP_AGENT1.3.6.1.2.1.1.6.0upsIdentLocation6000CHARThe name of the UPS manufacturer.LOCATIONGeneral
- Device VendorSNMP_AGENT.1.3.6.1.2.1.33.1.1.1.0upsIdentManufacturer6000CHARThe name of the UPS manufacturer.VENDORGeneral
- Device ModelSNMP_AGENT.1.3.6.1.2.1.33.1.1.2.0upsIdentModel864000CHARThe UPS Model designation.MODELGeneral
- Device NameSNMP_AGENT1.3.6.1.2.1.1.5.0upsIdentName6000CHARThe name of the UPS manufacturer.NAMEGeneral
- Device UptimeSNMP_AGENT1.3.6.1.2.1.1.3.0upsIdentUptimeuptimeThe name of the UPS manufacturer.DEPLOYMENT_STATUSGeneralMULTIPLIER0.01{last()}<300Device rebootedINFOYES
- Input line badsSNMP_AGENT.1.3.6.1.2.1.33.1.3.1.0upsInputLineBads30A count of the number of times the input entered an out-of-tolerance condition as defined by the manufacturer. This count is incremented by one each time the input transitions from zero out-of-tolerance lines to one or more input lines out-of-tolerance. A big number show problems with the electricity power where your UPS is connectedInput{change()}<>0UPS Input Power Line BadHIGHYour UPS in 1 minute switch the input transitions from zero out-of-tolerance
lines to one or more input lines out-of-tolerance. In other words: you have line power problems (bad frequency, bad voltage - someone near you use a lot of electricity power)YESValue{ITEM.VALUE}
- Seconds on batterySNMP_AGENT.1.3.6.1.2.1.33.1.2.2.0upsSecondsOnBattery30sIf the unit is on battery power, the elapsed time since the UPS last switched to battery power, or the time since the network management subsystem was last restarted, whichever is less. Zero shall be returned if the unit is not on battery power.Battery{last()}>30UPS Running On BatteryHIGHThe UPS {HOST.NAME} is running on battery. Please check the battery powerYESValue{ITEM.VALUE}
UPS Bypass PhasesSNMP_AGENTdiscovery[{#SNMPVALUE},1.3.6.1.2.1.33.1.5.3.1.1]upsBypassCurrent1hBypass Current Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.5.3.1.3.{#SNMPINDEX}upsBypassCurrent.[{#SNMPINDEX}]ABypassBypass Power Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.5.3.1.4.{#SNMPINDEX}upsBypassPower.[{#SNMPINDEX}]WBypassBypass Voltage Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.5.3.1.2.{#SNMPINDEX}upsBypassVoltage.[{#SNMPINDEX}]VBypass{HW UPS Legrand CS141:upsBypassCurrent.[{#SNMPINDEX}].last()}<>0 or {HW UPS Legrand CS141:upsBypassPower.[{#SNMPINDEX}].last()}<>0UPS Bypassed phase {#SNMPINDEX}WARNINGValue{ITEM.VALUE}UPS Bypass Phase {#SNMPINDEX}F63100- HW UPS Legrand CS141upsBypassCurrent.[{#SNMPINDEX}]
12774A4- HW UPS Legrand CS141upsBypassPower.[{#SNMPINDEX}]
2F7941D- HW UPS Legrand CS141upsBypassVoltage.[{#SNMPINDEX}]
UPS Input PhasesSNMP_AGENTdiscovery[{#SNMPVALUE},1.3.6.1.2.1.33.1.3.3.1.1]upsInputFrequency1hInput current Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.3.3.1.4.{#SNMPINDEX}upsInputCurrent.[{#SNMPINDEX}]FLOATArmsInputMULTIPLIER0.1Input Frequency phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.3.3.1.2.{#SNMPINDEX}upsInputFrequency.[{#SNMPINDEX}]FLOATHzInputJAVASCRIPTreturn value / 10{last()}>53 or {last()}<47UPS Input frequency outside nominal {#SNMPINDEX}WARNINGValue{ITEM.VALUE}Input power Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.3.3.1.5.{#SNMPINDEX}upsInputPower.[{#SNMPINDEX}]WInputInput voltage Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.3.3.1.3.{#SNMPINDEX}upsInputVoltage.[{#SNMPINDEX}]VInputUPS Input Phase {#SNMPINDEX}199C0D- HW UPS Legrand CS141upsInputFrequency.[{#SNMPINDEX}]
1F63100- HW UPS Legrand CS141upsInputCurrent.[{#SNMPINDEX}]
2F7941D- HW UPS Legrand CS141upsInputPower.[{#SNMPINDEX}]
3FC6EA3- HW UPS Legrand CS141upsInputVoltage.[{#SNMPINDEX}]
UPS Output PhsesSNMP_AGENTdiscovery[{#SNMPVALUE},1.3.6.1.2.1.33.1.4.4.1.1]upsOutputPower1hOutput load in percent Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.4.4.1.5.{#SNMPINDEX}upsOutputPercentLoad.[{#SNMPINDEX}]%Output{last(#2)}>60UPS Overloaded phase {#SNMPINDEX} (>60%)HIGHOutput Power Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.4.4.1.4.{#SNMPINDEX}upsOutputPower.[{#SNMPINDEX}]WOutput{change()}>300UPS Load Changed phase {#SNMPINDEX} (+/-300W)INFOOn {HOST.NAME} we detect a big load change - the power output differential is over 300W{last()}<10UPS Low output power phase {#SNMPINDEX} (<10 W)WARNINGThe output power for {HOST.NAME} is under {ITEM.VALUE}. Take actions to prevent this in futureValue{ITEM.VALUE}Output Voltage Phase {#SNMPINDEX}SNMP_AGENT1.3.6.1.2.1.33.1.4.4.1.2.{#SNMPINDEX}upsOutputVoltage.[{#SNMPINDEX}]VOutput{last(#3)}<200 or {last(#3)}>250UPS Power Voltage outside nominal phase {#SNMPINDEX}HIGHUPS Output Phase {#SNMPINDEX}F63100- HW UPS Legrand CS141upsOutputPercentLoad.[{#SNMPINDEX}]
12774A4- HW UPS Legrand CS141upsOutputPower.[{#SNMPINDEX}]
2F7941D- HW UPS Legrand CS141upsOutputVoltage.[{#SNMPINDEX}]
BatteryNONOSTACKEDDD0000- HW UPS Legrand CS141upsBatteryTemperature
1008800- HW UPS Legrand CS141upsEstimatedChargeRemaining
22774A4- HW UPS Legrand CS141upsEstimatedMinutesRemaining
APC Battery Status1unknown2batteryNormal3batteryLow