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:
Neil Lathwood
2017-04-20 14:46:24 +01:00
committed by GitHub
parent 74b7926960
commit d77186ddc6
@@ -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);
}