5.02021-11-21T21:51:46ZTemplatesAPC PDUAPC PDU## Overview
I have created a very detailed template for a Rack Mounted APC PDU. I spent a considerable amount of time digging through the MIB to obtain all the correct OID numbers pertaining to each Item for the PDU to use with SNMP. The template includes:
* 7 Applications:
+ Enviornment
+ Information
+ Outlets
+ Peaks
+ Phases
+ Power
+ Thresholds
* 39 Items for monitoring that range from:
+ 7 Items for each phase totaling 21 items
- Load
- Overload Thresholds
- Current
- Power
- Voltage
+ Firmware Rev
+ Total Power
+ Peak Power
+ Load State
+ Rack Temp/Humidity (if the sensors are present)
* 13 Triggers
+ Individual triggers for each phase
- Voltage High and Low
+ Load State Changes
+ Power Trigger
+ Near overload and Overload Triggers
* 3 Default Graphs
+ Current Usage
+ Phase Power Status
+ Temp/Humid (If sensors are present)
I hope you enjoy using this template as much as I have. You can tweak the Interval and History settings within each item per your needs. I have also included HOSTNAME calls in each Trigger to Identify the host that is causing the Trigger.
## Author
Chad Hoye
TemplatesEnvironmentInformationPeaksPhasesPowerThresholds- Power Near Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.1.1.8.1rPDU2DeviceConfigNearOverloadPowerThreshold.112h30dFLOATkWUser-defined near power overload threshold,
measured in tenths of kilowatts. Models that do
not support this feature will respond to this OID
with a value of -1.ThresholdsMULTIPLIER.1
- Power Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.1.1.9.1rPDU2DeviceConfigOverloadPowerThreshold.112h30dFLOATkWUser-defined near power overload threshold,
measured in tenths of kilowatts. Models that do
not support this feature will respond to this OID
with a value of -1.ThresholdsMULTIPLIER.1
- Max Phase Current RatingSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.2.1.12.1rPDU2DevicePropertiesMaxPhaseCurrentRating.11h30dAThe maximum current rating, measured in Amps, for
the Rack PDUPeaks
- Total EnergySNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.3.1.9.1rPDU2DeviceStatusEnergy.11h30dFLOATkWhA user re-settable energy meter measuring Rack PDU load
energy consumption in tenths of kilowatt-hours.InformationMULTIPLIER0.1{change()}>400APC PDU Load ChangeINFO
- Load StateSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.3.1.4.1rPDU2DeviceStatusLoadState.110s30dIndicates the present load status of the Rack PDU.InformationAPC Status Load State{last()}<>2RECOVERY_EXPRESSION{last()}=2APC PDU Load State {HOST.NAME}HIGHYES
- Peak PowerSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.3.1.6.1rPDU2DeviceStatusPeakPower.110s30dFLOATkwThe peak power consumption of the Rack PDU load in hundredths of kilowatts.PowerMULTIPLIER.01
- Peak Power TimestampSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.3.1.7.1rPDU2DeviceStatusPeakPowerTimestamp.11h30d0CHARPower
- Power ConsumptionSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.3.1.5.1rPDU2DeviceStatusPower.110s30dFLOATkwThe power consumption of the Rack PDU load in hundredths of kilowatts.
Models that do not support this feature will respond to this OID
with a value of -1.PowerMULTIPLIER0.01
- Power Supply AlarmSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.4.3.1.12.1rPDU2DeviceStatusPowerSupplyAlarm.110s30dIndicates a power supply alarm is active when value
equals alarm (2)InformationAPC Device Status Alarm{last()}<>1RECOVERY_EXPRESSION{last()}=1APC PDU Power Alarm {HOST.NAME}HIGHYES
- Firmware RevSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.2.1.6.1rPDU2IdentFirmwareRev.112h30d0CHARInformation
- LocationSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.2.1.4.1rPDU2IdentLocation.11h30d0CHARInformation
- Model NumberSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.2.1.8.1rPDU2IdentModelNumber.112h30d0CHARInformation
- Identification NameSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.2.1.3.1rPDU2IdentName.11h30d0CHARInformation
- Serial NumberSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.2.1.9.1rPDU2IdentSerialNumber.112h30d0CHARInformation
- Phase 1 Peak CurrentSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.10.1rPDU2PhaseStatusPeakCurrent.112h30dFLOATAPeaksMULTIPLIER0.1
- Phase 2 Peak CurrentSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.10.2rPDU2PhaseStatusPeakCurrent.210s30dFLOATAPeaksMULTIPLIER0.1
- Phase 3 Peak CurrentSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.10.3rPDU2PhaseStatusPeakCurrent.310s30dFLOATAPeaksMULTIPLIER0.1
- Phase Status Peak Current TimestampSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.11.1rPDU2PhaseStatusPeakCurrentTimestamp.11h30d0CHARPeaks
- Phase 1 PowerSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.7.1rPDU2PhaseStatusPower.110s30dFLOATkWPowerMULTIPLIER0.1
- Phase 2 PowerSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.7.2rPDU2PhaseStatusPower.210s30dFLOATkWPowerMULTIPLIER0.1
- Phase 3 PowerSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.7.3rPDU2PhaseStatusPower.310s30dFLOATkWPowerMULTIPLIER0.1
- Phase 1 VoltageSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.6.1rPDU2PhaseStatusVoltage.110s30dVPhases{avg(3m)}>=125RECOVERY_EXPRESSION{avg(1m)}<125APC PDU Phase 1 Voltage High {HOST.NAME}WARNINGIf the Phase 1 voltage rises above 125V for an avg of 3 minutesYES{avg(3m)}<=115RECOVERY_EXPRESSION{avg(1m)}>115APC PDU Phase 1 Voltage Low {HOST.NAME}WARNINGIf the Phase 1 voltage falls below 115V for an avg of 3 minutesYES
- Phase 2 VoltageSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.6.2rPDU2PhaseStatusVoltage.210s30dVPhases{avg(3m)}>=125RECOVERY_EXPRESSION{avg(1m)}<125APC PDU Phase 2 Voltage High {HOST.NAME}WARNINGIf the Phase 2 voltage rises above 125V for an avg of 3 minutesYES{avg(3m)}<=115RECOVERY_EXPRESSION{avg(1m)}>115APC PDU Phase 2 Voltage Low {HOST.NAME}WARNINGIf the Phase 2 voltage falls below 115V for an avg of 3 minutesYES
- Phase 3 VoltageSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.6.3.1.6.3rPDU2PhaseStatusVoltage.310s30dVPhases{avg(3m)}>=125RECOVERY_EXPRESSION{avg(1m)}<125APC PDU Phase 3 Voltage High {HOST.NAME}WARNINGIf the Phase 3 voltage rises above 125V for an avg of 3 minutesYES{avg(3m)}<=115RECOVERY_EXPRESSION{avg(1m)}>115APC PDU Phase 3 Voltage Low {HOST.NAME}WARNINGIf the Phase 3 voltage falls below 115V for an avg of 3 minutesYES
- Rack Inlet HumiditySNMP_AGENT.1.3.6.1.4.1.318.1.1.26.10.2.2.1.10.1rPDU2SensorTempHumidityStatusRelativeHumidity.110s30dFLOAT%RhThe Relative Humidity entering the rackEnvironment
- Rack Inlet TempSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.10.2.2.1.7.1rPDU2SensorTempHumidityStatusTempF.110s30dFLOATFTemperature of Air entering RackEnvironmentMULTIPLIER0.1
- Phase 1 Low Load ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.2.1rPDULoadPhaseConfigLowLoadThreshold.112h30dAThresholds
- Phase 2 Low Load ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.2.2rPDULoadPhaseConfigLowLoadThreshold.212h30dAThresholds
- Phase 3 Low Load ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.2.3rPDULoadPhaseConfigLowLoadThreshold.312h30dAThresholds
- Phase 1 Near Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.3.1rPDULoadPhaseConfigNearOverloadThreshold.112h30dAThresholds
- Phase 2 Near Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.3.2rPDULoadPhaseConfigNearOverloadThreshold.212h30dAThresholds
- Phase 3 Near Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.3.3rPDULoadPhaseConfigNearOverloadThreshold.312h30dAThresholds
- Phase 1 Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.4.1rPDULoadPhaseConfigOverloadThreshold.112h30dAThresholds
- Phase 2 Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.4.2rPDULoadPhaseConfigOverloadThreshold.212h30dAThresholds
- Phase 3 Overload ThresholdSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.2.1.1.4.3rPDULoadPhaseConfigOverloadThreshold.312h30dAThresholds
- Phase 1 LoadSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1rPDULoadStatusLoad.110s30dFLOATAPhasesMULTIPLIER.1
- Phase 2 LoadSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.2rPDULoadStatusLoad.210s30dFLOATAPhasesMULTIPLIER0.1
- Phase 3 LoadSNMP_AGENT.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.3rPDULoadStatusLoad.310s30dFLOATAPhasesMULTIPLIER0.1
- System Up TimeSNMP_AGENT.1.3.6.1.2.1.1.3.0sysUpTime.01h30dFLOATuptimeInformationMULTIPLIER0.01
OutletsSNMP_AGENTdiscovery[{#SNMPVALUE},.1.3.6.1.4.1.318.1.1.26.9.2.1.1.1]rPDU2Outlet3600Outlet $1 NameSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.9.2.1.1.3.{#SNMPINDEX}rPDU2OutletSwitchedConfigName[{#SNMPINDEX}]36000CHAROutlet $1 BankSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.9.2.2.1.6.{#SNMPINDEX}rPDU2OutletSwitchedPropertiesBank[{#SNMPINDEX}]86400Outlet $1 StateSNMP_AGENT.1.3.6.1.4.1.318.1.1.26.9.2.3.1.5.{#SNMPINDEX}rPDU2OutletSwitchedStatusState[{#SNMPINDEX}]60APC Outlet State{diff()}=1Outlet {#SNMPVALUE} State ChangeINFO{$SNMP_COMMUNITY}public{APC PDU:rPDU2DeviceStatusPower.1.last()}>={APC PDU:rPDU2DeviceConfigNearOverloadPowerThreshold.1.last()}RECOVERY_EXPRESSION{APC PDU:rPDU2DeviceStatusPower.1.last()}<{APC PDU:rPDU2DeviceConfigNearOverloadPowerThreshold.1.last()}APC PDU {HOST.NAME} Power Near OverloadWARNINGWhen Power is near overload. Set to the value predetermined by the device presetsYES{APC PDU:rPDU2DeviceStatusPower.1.last()}>={APC PDU:rPDU2DeviceConfigOverloadPowerThreshold.1.last()}RECOVERY_EXPRESSION{APC PDU:rPDU2DeviceStatusPower.1.last()}<{APC PDU:rPDU2DeviceConfigOverloadPowerThreshold.1.last()}APC PDU {HOST.NAME} Power OverloadHIGHWhen Power is at overload. Set to the value predetermined by the device presetsYESAPC Current Usage1A7C11- APC PDUrPDU2DeviceStatusEnergy.1
APC Phase Power Status1DASHED_LINEDD0000- APC PDUrPDU2DevicePropertiesMaxPhaseCurrentRating.1
2DASHED_LINEEEEE00- APC PDUrPDU2PhaseStatusPeakCurrent.1
APC Device Status Alarm1normal2alarmAPC Outlet State1off2onAPC Status Load State1lowLoad2normal3nearOverload4overload