mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added EMC data domain detection
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@@ -889,6 +889,20 @@ $config['os'][$os]['text'] = 'Dell PowerVault';
|
||||
$config['os'][$os]['icon'] = 'dell';
|
||||
$config['os'][$os]['type'] = 'storage';
|
||||
|
||||
// Data domain
|
||||
$os = 'datadomain';
|
||||
$config['os'][$os]['text'] = 'EMC Data Domain';
|
||||
$config['os'][$os]['type'] = 'storage';
|
||||
$config['os'][$os]['icon'] = 'emc';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
|
||||
$config['os'][$os]['over'][1]['graph'] = 'device_processor';
|
||||
$config['os'][$os]['over'][1]['text'] = 'CPU Usage';
|
||||
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
|
||||
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
|
||||
$config['os'][$os]['over'][3]['graph'] = 'device_storage';
|
||||
$config['os'][$os]['over'][3]['text'] = 'Storage Usage';
|
||||
|
||||
$os = 'equallogic';
|
||||
$config['os'][$os]['text'] = 'Dell EqualLogic';
|
||||
$config['os'][$os]['icon'] = 'dell';
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.19746.3.1')) {
|
||||
$os = 'datadomain';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
//iso.3.6.1.2.1.1.1.0 = STRING: "Data Domain OS 5.7.0.4-513368"
|
||||
|
||||
preg_match('/Data Domain OS (.*)/', $poll_device['sysDescr'], $matches);
|
||||
$version = $matches[1];
|
||||
$hardware = trim(snmp_get($device, "systemHardwareDevice", "-OQv", "DATA-DOMAIN-MIB"),'"');
|
||||
+14666
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user