mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2966 61d68cd4-352d-0410-923a-c4978735b2b8
20 lines
512 B
PHP
20 lines
512 B
PHP
<?php
|
|
|
|
if ($device['os'] == "avaya-ers")
|
|
{
|
|
# 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'];
|
|
|
|
$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;
|
|
}
|
|
}
|
|
|
|
?>
|