[-]
[+]
|
Changed |
nagios-plugins-snmp.changes
|
|
[-]
[+]
|
Changed |
nagios-plugins-snmp.spec
^
|
|
[-]
[+]
|
Changed |
check_snmp_apc_pdu.py
^
|
@@ -57,18 +57,20 @@
# rPDUPowerSupply.rPDUPowerSupplyDevice.rPDUPowerSupply1Status: 1
r_pdu_power_supply_status = apc_snmp_walk(".4.1")
apc_info['power1'] = r_pdu_power_supply_status[0].strip('\n')
- if len(r_pdu_power_supply_status) == 2:
+ if len(r_pdu_power_supply_status) == 3:
apc_info['power2'] = r_pdu_power_supply_status[1].strip('\n')
else:
apc_info['power2'] = "3"
# rPDUOutlet.rPDUOutletDevice.rPDUOutletDevNumCntrlOutlets
apc_info['ports'] = apc_snmp_get(".3.1.3.0")
# rPDULoadStatus.rPDULoadStatusTable.rPDULoadStatusEntry.rPDULoadStatusLoad: 155
- apc_info['load'] = int(apc_snmp_get(".2.3.1.1.2.1")) / 10
+ apc_info['load'] = int(apc_snmp_get(".2.3.1.1.2.3")) / 10
# rPDULoad.rPDULoadPhaseConfig.rPDULoadPhaseConfigTable.rPDULoadPhaseConfigEntry.rPDULoadPhaseConfigNearOverloadThreshold: 18
- apc_info['warning'] = apc_snmp_get(".2.2.1.1.3.1")
+ #apc_info['warning'] = apc_snmp_get(".2.2.1.1.3.1")
+ apc_info['warning'] = apc_snmp_get(".2.4.1.1.3.1")
# rPDULoad.rPDULoadPhaseConfig.rPDULoadPhaseConfigTable.rPDULoadPhaseConfigEntry.rPDULoadPhaseConfigOverloadThreshold: 24
- apc_info['critical'] = apc_snmp_get(".2.2.1.1.4.1")
+ #apc_info['critical'] = apc_snmp_get(".2.2.1.1.4.1")
+ apc_info['critical'] = apc_snmp_get(".2.4.1.1.4.1")
except:
print sys.exc_info()
errorexit()
|