LenovoEMC (NAS) - initial code update.

This commit is contained in:
R. Morris
2016-01-17 14:45:53 -06:00
parent 54ca420e68
commit bc4b26e0df
5 changed files with 698 additions and 0 deletions
+14
View File
@@ -1435,6 +1435,20 @@ $config['os'][$os]['over'][1]['text'] = 'CPU Usage';
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
// Lenovo EMC (NAS)
$os = 'lenovoemc';
$config['os'][$os]['type'] = 'storage';
$config['os'][$os]['group'] = 'unix';
$config['os'][$os]['text'] = 'Linux';
$config['os'][$os]['ifXmcbc'] = 1;
$config['os'][$os]['ifname'] = 1;
$config['os'][$os]['over'][0]['graph'] = 'device_processor';
$config['os'][$os]['over'][0]['text'] = 'Processor Usage';
$config['os'][$os]['over'][1]['graph'] = 'device_ucd_memory';
$config['os'][$os]['over'][1]['text'] = 'Memory Usage';
$config['os'][$os]['over'][2]['graph'] = 'device_storage';
$config['os'][$os]['over'][2]['text'] = 'Storage Usage';
// Graph Types
require_once $config['install_dir'].'/includes/load_db_graph_types.inc.php';
+15
View File
@@ -0,0 +1,15 @@
<?php
if (!$os) {
if (strstr($sysDescr, 'EMC SOHO-NAS Storage.')) {
$os = 'lenovoemc';
$lenovoemc_mibs = array(
"fanValue" => "IOMEGANAS-MIB",
"tempValue" => "IOMEGANAS-MIB",
"raidStatus" => "IOMEGANAS-MIB",
"diskStatus" => "IOMEGANAS-MIB"
);
register_mibs($device, $lenovoemc_mibs, "includes/discovery/os/lenovoemc.inc.php");
}
}
+5
View File
@@ -0,0 +1,5 @@
<?php
$hardware = snmp_get($device, 'deviceDescr.0', '-Ovq', 'IOMEGANAS-MIB');
$version = 'N/A';
$serial = 'N/A';
?>