zabbix_export: version: '6.0' date: '2021-11-21T21:51:48Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: a98ba5950d024f1a830618b9d593b2a2 template: 'APC PDU' name: 'APC PDU' description: | ## 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 groups: - name: Templates items: - uuid: a795c0211b56408d8e0bbc87fe943b08 name: 'Power Near Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.1.1.8.1 key: rPDU2DeviceConfigNearOverloadPowerThreshold.1 delay: 12h history: 30d value_type: FLOAT units: kW description: | User-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. preprocessing: - type: MULTIPLIER parameters: - '.1' tags: - tag: Application value: Thresholds - uuid: dc1e6e44659b4b7ab4ce255b62918b5e name: 'Power Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.1.1.9.1 key: rPDU2DeviceConfigOverloadPowerThreshold.1 delay: 12h history: 30d value_type: FLOAT units: kW description: | User-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. preprocessing: - type: MULTIPLIER parameters: - '.1' tags: - tag: Application value: Thresholds - uuid: ed8705a53abe44e0bdc0705e79cbcf07 name: 'Max Phase Current Rating' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.2.1.12.1 key: rPDU2DevicePropertiesMaxPhaseCurrentRating.1 delay: 1h history: 30d units: A description: | The maximum current rating, measured in Amps, for the Rack PDU tags: - tag: Application value: Peaks - uuid: a74e025d7c4348f398bf85f9d04b487b name: 'Total Energy' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.3.1.9.1 key: rPDU2DeviceStatusEnergy.1 delay: 1h history: 30d value_type: FLOAT units: kWh description: | A user re-settable energy meter measuring Rack PDU load energy consumption in tenths of kilowatt-hours. preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Information triggers: - uuid: b8a8e47c19a4433a8629515a62b695a3 expression: 'change(/APC PDU/rPDU2DeviceStatusEnergy.1)>400' name: 'APC PDU Load Change' priority: INFO - uuid: 147561351eb74ff893fe5c0bdde412f7 name: 'Load State' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.3.1.4.1 key: rPDU2DeviceStatusLoadState.1 delay: 10s history: 30d description: 'Indicates the present load status of the Rack PDU.' valuemap: name: 'APC Status Load State' tags: - tag: Application value: Information triggers: - uuid: 6ad6102b3a79437fbe6df3c116ad8d86 expression: 'last(/APC PDU/rPDU2DeviceStatusLoadState.1)<>2' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC PDU/rPDU2DeviceStatusLoadState.1)=2' name: 'APC PDU Load State {HOST.NAME}' priority: HIGH manual_close: 'YES' - uuid: 349c72b4ddd24a6b8c072f626bfdb521 name: 'Peak Power' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.3.1.6.1 key: rPDU2DeviceStatusPeakPower.1 delay: 10s history: 30d value_type: FLOAT units: kw description: 'The peak power consumption of the Rack PDU load in hundredths of kilowatts.' preprocessing: - type: MULTIPLIER parameters: - '.01' tags: - tag: Application value: Power - uuid: 681e758f3a3040c6ac707d782513bda8 name: 'Peak Power Timestamp' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.3.1.7.1 key: rPDU2DeviceStatusPeakPowerTimestamp.1 delay: 1h history: 30d trends: '0' value_type: CHAR tags: - tag: Application value: Power - uuid: 6ad9382ee53f4462b3998a34cd106584 name: 'Power Consumption' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.3.1.5.1 key: rPDU2DeviceStatusPower.1 delay: 10s history: 30d value_type: FLOAT units: kw description: | The 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. preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: Power - uuid: 0701e9ffb0de4fb189df6269251bcbdf name: 'Power Supply Alarm' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.4.3.1.12.1 key: rPDU2DeviceStatusPowerSupplyAlarm.1 delay: 10s history: 30d description: | Indicates a power supply alarm is active when value equals alarm (2) valuemap: name: 'APC Device Status Alarm' tags: - tag: Application value: Information triggers: - uuid: 981df278fcd44740b84ac8a0d7051a8f expression: 'last(/APC PDU/rPDU2DeviceStatusPowerSupplyAlarm.1)<>1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC PDU/rPDU2DeviceStatusPowerSupplyAlarm.1)=1' name: 'APC PDU Power Alarm {HOST.NAME}' priority: HIGH manual_close: 'YES' - uuid: 5c341cffcd9c45adbba3ce2ac4b0b74f name: 'Firmware Rev' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.2.1.6.1 key: rPDU2IdentFirmwareRev.1 delay: 12h history: 30d trends: '0' value_type: CHAR tags: - tag: Application value: Information - uuid: b9ed2515fea443a59f14bb2c2557246a name: Location type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.2.1.4.1 key: rPDU2IdentLocation.1 delay: 1h history: 30d trends: '0' value_type: CHAR tags: - tag: Application value: Information - uuid: 62942bdd4ed74018bf3d69fdd100963c name: 'Model Number' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.2.1.8.1 key: rPDU2IdentModelNumber.1 delay: 12h history: 30d trends: '0' value_type: CHAR tags: - tag: Application value: Information - uuid: 62c1bedc3ebb4824b84e8879e20cf2d2 name: 'Identification Name' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.2.1.3.1 key: rPDU2IdentName.1 delay: 1h history: 30d trends: '0' value_type: CHAR tags: - tag: Application value: Information - uuid: 58add5b9e8ae4e9095866f31f5bcbd8c name: 'Serial Number' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.2.1.9.1 key: rPDU2IdentSerialNumber.1 delay: 12h history: 30d trends: '0' value_type: CHAR tags: - tag: Application value: Information - uuid: d6f05c3d9e6544679e2b41b50433c85e name: 'Phase 1 Peak Current' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.10.1 key: rPDU2PhaseStatusPeakCurrent.1 delay: 12h history: 30d value_type: FLOAT units: A preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Peaks - uuid: cd16b439a94f4bd4b94c6971286ac7da name: 'Phase 2 Peak Current' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.10.2 key: rPDU2PhaseStatusPeakCurrent.2 delay: 10s history: 30d value_type: FLOAT units: A preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Peaks - uuid: fe84e0a441464531a867f98703e17f1b name: 'Phase 3 Peak Current' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.10.3 key: rPDU2PhaseStatusPeakCurrent.3 delay: 10s history: 30d value_type: FLOAT units: A preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Peaks - uuid: 7bced9e9c12e41af9e7c3f74aca0008a name: 'Phase Status Peak Current Timestamp' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.11.1 key: rPDU2PhaseStatusPeakCurrentTimestamp.1 delay: 1h history: 30d trends: '0' value_type: CHAR tags: - tag: Application value: Peaks - uuid: 36454d8b8e174845b646154b33e221f3 name: 'Phase 1 Power' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.7.1 key: rPDU2PhaseStatusPower.1 delay: 10s history: 30d value_type: FLOAT units: kW preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Power - uuid: 1741e0ec671f4049b2813c96167faf59 name: 'Phase 2 Power' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.7.2 key: rPDU2PhaseStatusPower.2 delay: 10s history: 30d value_type: FLOAT units: kW preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Power - uuid: 7cc1bed363c64e44a13c8358d3883da2 name: 'Phase 3 Power' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.7.3 key: rPDU2PhaseStatusPower.3 delay: 10s history: 30d value_type: FLOAT units: kW preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Power - uuid: 13e55c6722f043f49cb8abc642208503 name: 'Phase 1 Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.6.1 key: rPDU2PhaseStatusVoltage.1 delay: 10s history: 30d units: V tags: - tag: Application value: Phases triggers: - uuid: 926bd04fea11486584fcfbc9f85d8e42 expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.1,3m)>=125' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.1,1m)<125' name: 'APC PDU Phase 1 Voltage High {HOST.NAME}' priority: WARNING description: 'If the Phase 1 voltage rises above 125V for an avg of 3 minutes' manual_close: 'YES' - uuid: 5937b7da28cb4c698504cb0362b2cdc0 expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.1,3m)<=115' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.1,1m)>115' name: 'APC PDU Phase 1 Voltage Low {HOST.NAME}' priority: WARNING description: 'If the Phase 1 voltage falls below 115V for an avg of 3 minutes' manual_close: 'YES' - uuid: 275f17692ac74fe6aa14b1fd72cefa8d name: 'Phase 2 Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.6.2 key: rPDU2PhaseStatusVoltage.2 delay: 10s history: 30d units: V tags: - tag: Application value: Phases triggers: - uuid: f74f5b8816334e2fa15d3b5b08f7a82d expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.2,3m)>=125' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.2,1m)<125' name: 'APC PDU Phase 2 Voltage High {HOST.NAME}' priority: WARNING description: 'If the Phase 2 voltage rises above 125V for an avg of 3 minutes' manual_close: 'YES' - uuid: d2896b9cc3f94290866fb8322aa6d874 expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.2,3m)<=115' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.2,1m)>115' name: 'APC PDU Phase 2 Voltage Low {HOST.NAME}' priority: WARNING description: 'If the Phase 2 voltage falls below 115V for an avg of 3 minutes' manual_close: 'YES' - uuid: 21c468ed43f1428fa9df503aa0cd3017 name: 'Phase 3 Voltage' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.6.3.1.6.3 key: rPDU2PhaseStatusVoltage.3 delay: 10s history: 30d units: V tags: - tag: Application value: Phases triggers: - uuid: 2257d8e7fec74673a36197194b64d013 expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.3,3m)>=125' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.3,1m)<125' name: 'APC PDU Phase 3 Voltage High {HOST.NAME}' priority: WARNING description: 'If the Phase 3 voltage rises above 125V for an avg of 3 minutes' manual_close: 'YES' - uuid: 35b8619a662a4dab8ca0dddce56ca7fc expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.3,3m)<=115' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'avg(/APC PDU/rPDU2PhaseStatusVoltage.3,1m)>115' name: 'APC PDU Phase 3 Voltage Low {HOST.NAME}' priority: WARNING description: 'If the Phase 3 voltage falls below 115V for an avg of 3 minutes' manual_close: 'YES' - uuid: d3e2f8638d84486f8942ad111ac8d9b2 name: 'Rack Inlet Humidity' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.10.2.2.1.10.1 key: rPDU2SensorTempHumidityStatusRelativeHumidity.1 delay: 10s history: 30d value_type: FLOAT units: '%Rh' description: 'The Relative Humidity entering the rack' tags: - tag: Application value: Environment - uuid: c00ffad59a7f4c6b8a76ab6493a6f3dc name: 'Rack Inlet Temp' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.26.10.2.2.1.7.1 key: rPDU2SensorTempHumidityStatusTempF.1 delay: 10s history: 30d value_type: FLOAT units: F description: 'Temperature of Air entering Rack' preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Environment - uuid: 369aee9c07f04d8f9f8f9e9a7174ac51 name: 'Phase 1 Low Load Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.2.1 key: rPDULoadPhaseConfigLowLoadThreshold.1 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 0f2f819f02e34245b9a32ae8250e5580 name: 'Phase 2 Low Load Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.2.2 key: rPDULoadPhaseConfigLowLoadThreshold.2 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 6d0d4ab49ccc42648488e8f33cbd99cf name: 'Phase 3 Low Load Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.2.3 key: rPDULoadPhaseConfigLowLoadThreshold.3 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: b7926902c8dd4d279db4f234da4ab5f3 name: 'Phase 1 Near Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.3.1 key: rPDULoadPhaseConfigNearOverloadThreshold.1 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 9de7477bd53c493b9cebe19b331900f6 name: 'Phase 2 Near Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.3.2 key: rPDULoadPhaseConfigNearOverloadThreshold.2 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 333dc329cdc74aefac4d53d533b95946 name: 'Phase 3 Near Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.3.3 key: rPDULoadPhaseConfigNearOverloadThreshold.3 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 7182c2c1ca894430823e88a3e1a31d82 name: 'Phase 1 Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.4.1 key: rPDULoadPhaseConfigOverloadThreshold.1 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 244aa6f7f73948fb9694a5599b076760 name: 'Phase 2 Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.4.2 key: rPDULoadPhaseConfigOverloadThreshold.2 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 9cbf272d7a934a69b63c76ecf8c597e0 name: 'Phase 3 Overload Threshold' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.2.1.1.4.3 key: rPDULoadPhaseConfigOverloadThreshold.3 delay: 12h history: 30d units: A tags: - tag: Application value: Thresholds - uuid: 5085013dd3d7482da282a3b0c73ab214 name: 'Phase 1 Load' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1 key: rPDULoadStatusLoad.1 delay: 10s history: 30d value_type: FLOAT units: A preprocessing: - type: MULTIPLIER parameters: - '.1' tags: - tag: Application value: Phases - uuid: 7af3a44a207c4b8191abf8c399f8fecb name: 'Phase 2 Load' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.2 key: rPDULoadStatusLoad.2 delay: 10s history: 30d value_type: FLOAT units: A preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Phases - uuid: 51cc69fb271c45a1a2e89c363d5ce2f6 name: 'Phase 3 Load' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.3 key: rPDULoadStatusLoad.3 delay: 10s history: 30d value_type: FLOAT units: A preprocessing: - type: MULTIPLIER parameters: - '0.1' tags: - tag: Application value: Phases - uuid: a15a7ad5a3fd4dbc90184a962c00b3d9 name: 'System Up Time' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.3.0 key: sysUpTime.0 delay: 1h history: 30d value_type: FLOAT units: uptime preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: Information discovery_rules: - uuid: 6dba254483c045d1bb55e37c612ef8bb name: Outlets type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.318.1.1.26.9.2.1.1.1]' key: rPDU2Outlet delay: '3600' item_prototypes: - uuid: 4a79d7a7bf3442a2ab9e0c798d48beb3 name: 'Outlet $1 Name' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.318.1.1.26.9.2.1.1.3.{#SNMPINDEX}' key: 'rPDU2OutletSwitchedConfigName[{#SNMPINDEX}]' delay: '3600' trends: '0' value_type: CHAR - uuid: b621126e197b4ba68986ac5946cf5a44 name: 'Outlet $1 Bank' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.318.1.1.26.9.2.2.1.6.{#SNMPINDEX}' key: 'rPDU2OutletSwitchedPropertiesBank[{#SNMPINDEX}]' delay: '86400' - uuid: 736934db13f343a790637cc48fa09070 name: 'Outlet $1 State' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.318.1.1.26.9.2.3.1.5.{#SNMPINDEX}' key: 'rPDU2OutletSwitchedStatusState[{#SNMPINDEX}]' delay: '60' valuemap: name: 'APC Outlet State' trigger_prototypes: - uuid: 4ef69fee34e54fe7bfc4b5d1890f566e expression: '(last(/APC PDU/rPDU2OutletSwitchedStatusState[{#SNMPINDEX}],#1)<>last(/APC PDU/rPDU2OutletSwitchedStatusState[{#SNMPINDEX}],#2))=1' name: 'Outlet {#SNMPVALUE} State Change' priority: INFO macros: - macro: '{$SNMP_COMMUNITY}' value: public valuemaps: - uuid: 99988b7c3d30479ba1ef7806351a0ec1 name: 'APC Device Status Alarm' mappings: - value: '1' newvalue: normal - value: '2' newvalue: alarm - uuid: 90533bf8c761475d975843b704e285ad name: 'APC Outlet State' mappings: - value: '1' newvalue: 'off' - value: '2' newvalue: 'on' - uuid: 8c8783ad8ffc4e9c9ae4d90feb2bf65f name: 'APC Status Load State' mappings: - value: '1' newvalue: lowLoad - value: '2' newvalue: normal - value: '3' newvalue: nearOverload - value: '4' newvalue: overload triggers: - uuid: e8caee7c3d894601857410a7bc687c2c expression: 'last(/APC PDU/rPDU2DeviceStatusPower.1)>=last(/APC PDU/rPDU2DeviceConfigNearOverloadPowerThreshold.1)' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC PDU/rPDU2DeviceStatusPower.1)=last(/APC PDU/rPDU2DeviceConfigOverloadPowerThreshold.1)' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/APC PDU/rPDU2DeviceStatusPower.1)