librenms/includes/polling/mempools/powerconnect-cpu.inc.php
2015-04-28 22:58:03 +02:00

14 lines
574 B
PHP

<?php
# Dell-Vendor-MIB::dellLanExtension.6132.1.1.1.1.4.1.0 = INTEGER: 23127
# Dell-Vendor-MIB::dellLanExtension.6132.1.1.1.1.4.2.0 = INTEGER: 262144
// Simple hard-coded poller for Dell Powerconnect (tested on 6248P)
// Yes, it really can be this simple.
// Pity there's no matching MIB to be found.
$mempool['total'] = snmp_get($device, "dellLanExtension.6132.1.1.1.1.4.2.0", "-OvQ", "Dell-Vendor-MIB");
$mempool['free'] = snmp_get($device, "dellLanExtension.6132.1.1.1.1.4.1.0", "-OvQ", "Dell-Vendor-MIB");
$mempool['used'] = $mempool['total'] - $mempool['free'];
?>