mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added missing slot info in for Enterasys memory (#6481)
* fix: Updated enterasys mempools disco/polling to support multiple ram devices * added slot information
This commit is contained in:
@@ -18,6 +18,9 @@ if ($device['os'] == 'enterasys') {
|
||||
$free = $ram['etsysResourceStorageAvailable'];
|
||||
$total = $ram['etsysResourceStorageSize'];
|
||||
$descr = $ram['etsysResourceStorageDescr'];
|
||||
if ($index > 1000) {
|
||||
$descr = "Slot #" . substr($index, -1) . " $descr";
|
||||
}
|
||||
if (is_numeric($free) && is_numeric($total)) {
|
||||
discover_mempool($valid_mempool, $device, $index, 'enterasys', $descr, '1', $mem_id, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user