Equalogic patches

Detect Equalogics as storage device.

The units need to be set to 1000000 since the returned storage values are in MBs.
This commit is contained in:
Ahmed Sajid
2016-08-04 09:15:00 -04:00
parent beb5362bef
commit e62f4dcd6c
3 changed files with 3 additions and 2 deletions

View File

@@ -1048,6 +1048,7 @@ $config['os'][$os]['over'][3]['text'] = 'Storage Usage';
$os = 'equallogic';
$config['os'][$os]['text'] = 'Dell EqualLogic';
$config['os'][$os]['type'] = 'storage';
$config['os'][$os]['icon'] = 'dell';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';

View File

@@ -19,7 +19,7 @@ if (is_array($eql_storage)) {
foreach ($eql_storage as $index => $storage) {
$fstype = $storage['eqliscsiVolumeAdminStatus'];
$descr = $storage['eqliscsiVolumeName'];
$units = 1;
$units = 1000000;
$size = $storage['eqliscsiVolumeSize'] * $units;
$used = $storage['eqliscsiVolumeStatusAllocatedSpace'] * $units;
if (is_int($index)) {

View File

@@ -53,7 +53,7 @@ d_echo($storage_cache20);
$entry1 = $storage_cache10[$storage[storage_index]];
$entry2 = $storage_cache20[$storage[storage_index]];
$storage['units'] = 1;
$storage['units'] = 1000000;
$storage['size'] = ($entry1['eqliscsiVolumeSize'] * $storage['units']);
$storage['used'] = ($entry2['eqliscsiVolumeStatusAllocatedSpace'] * $storage['units']);
$storage['free'] = ($storage['size'] - $storage['used']);