From a15180333aa68505ebbd736b9b509ae8381af028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rosiak?= Date: Mon, 13 Apr 2015 23:11:27 +0200 Subject: [PATCH 1/2] Minor APC Polling Changes - Add InRow Serial ID - Convert from OID to MIB names --- includes/polling/os/apc.inc.php | 46 +++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/includes/polling/os/apc.inc.php b/includes/polling/os/apc.inc.php index 814860f4a..b64751d3d 100755 --- a/includes/polling/os/apc.inc.php +++ b/includes/polling/os/apc.inc.php @@ -1,58 +1,64 @@ Date: Mon, 13 Apr 2015 23:29:04 +0200 Subject: [PATCH 2/2] APC InfraStruxure Detection - Just basic s/n & hw detection --- includes/polling/os/apc.inc.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/includes/polling/os/apc.inc.php b/includes/polling/os/apc.inc.php index b64751d3d..001f536d0 100755 --- a/includes/polling/os/apc.inc.php +++ b/includes/polling/os/apc.inc.php @@ -27,6 +27,12 @@ if ($serial == "") $serial = trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentSerialNumber.0", "-OQv", "", ""),'"'); } +if ($serial == "") +{ + # InfraStruxure + $serial = trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentSerialNumber.0", "-OQv", "", ""),'"'); +} + ///////////////////// # PDU @@ -61,6 +67,13 @@ if ($hardware == " ") $hardware .= ' ' . trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentHardwareRevision.0", "-OQv", "", ""),'"'); } +if ($hardware == " ") +{ + # InfraStruxure + $hardware = trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentModelNumber.0", "-OQv", "", ""),'"'); + $hardware .= ' ' . trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentMonitorCardHardwareRev.0", "-OQv", "", ""),'"'); +} + ///////////////////// $AOSrev = trim(snmp_get($device, "1.3.6.1.4.1.318.1.4.2.4.1.4.1", "-OQv", "", ""),'"'); @@ -88,6 +101,12 @@ if ($AOSrev == '') # InRow chiller $version = trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentFirmwareRevision.0", "-OQv", "", ""),'"'); } + + if ($version == "") + { + # InfraStruxure + $version = trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentMonitorCardFirmwareAppRev.0", "-OQv", "", ""),'"'); + } } else {