mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add PHP CS Fixer Based on https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200 * Apply PHP CS
15 lines
476 B
PHP
15 lines
476 B
PHP
%
|
|
<?php
|
|
|
|
if (! is_array($storage_cache['hpe-ilo'])) {
|
|
$storage_cache['hpe-ilo'] = snmpwalk_group($device, 'cpqHoFileSysEntry', 'CPQHOST-MIB');
|
|
echo 'HPE ILO4 ';
|
|
}
|
|
|
|
$entry = $storage_cache['hpe-ilo'][$storage['storage_index']];
|
|
|
|
$storage['units'] = 1024 * 1024;
|
|
$storage['size'] = ($entry['cpqHoFileSysSpaceTotal'] * $storage['units']);
|
|
$storage['used'] = ($entry['cpqHoFileSysSpaceUsed'] * $storage['units']);
|
|
$storage['free'] = ($storage['size'] - $storage['used']);
|