mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Removed check for switch model or firmware version for Avaya ERS switches
* Added mempool support for Avaya ERS 3500 * Added mempool support for Avaya ERS 3500 * removed check for firmware version * removed check for switch model or firmware version * removed check for switch model or firmware version * removed check for switch model or firmware version * adding @laf suggested changes * made changes as suggested by @laf * removed blank line * removed blank line * added the snmpwalk back need this, or it's pointless
This commit is contained in:
committed by
Neil Lathwood
parent
de6af21131
commit
f8b795ec95
@@ -1,13 +1,10 @@
|
||||
<?php
|
||||
|
||||
// Memory information only known to work with 5500 and 5600 switches
|
||||
if (preg_match('/5[56][0-9][0-9]/', $device['sysDescr'])) {
|
||||
$index = $mempool['mempool_index'];
|
||||
$index = $mempool['mempool_index'];
|
||||
|
||||
$total = (snmp_get($device, ".1.3.6.1.4.1.45.1.6.3.8.1.1.12$index", '-Oqv') * 1048576);
|
||||
$avail = (snmp_get($device, ".1.3.6.1.4.1.45.1.6.3.8.1.1.13$index", '-Oqv') * 1048576);
|
||||
$total = (snmp_get($device, ".1.3.6.1.4.1.45.1.6.3.8.1.1.12$index", '-Oqv') * 1048576);
|
||||
$avail = (snmp_get($device, ".1.3.6.1.4.1.45.1.6.3.8.1.1.13$index", '-Oqv') * 1048576);
|
||||
|
||||
$mempool['total'] = $total;
|
||||
$mempool['free'] = $avail;
|
||||
$mempool['used'] = ($total - $avail);
|
||||
}
|
||||
$mempool['total'] = $total;
|
||||
$mempool['free'] = $avail;
|
||||
$mempool['used'] = ($total - $avail);
|
||||
|
Reference in New Issue
Block a user