mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	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:
		| @@ -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'; | ||||
|   | ||||
| @@ -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)) { | ||||
|   | ||||
| @@ -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']); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user