Skip to content

Commit

Permalink
Merge pull request #2795 from arrmo/master
Browse files Browse the repository at this point in the history
Add Support for Lenovo EMC (NAS)
  • Loading branch information
laf committed Jan 18, 2016
2 parents ae4458e + d9857f8 commit 7c39cba
Show file tree
Hide file tree
Showing 5 changed files with 694 additions and 0 deletions.
Binary file added html/images/os/lenovo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions includes/definitions.inc.php
Expand Up @@ -1440,6 +1440,19 @@
$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'] = 'storage';
$config['os'][$os]['text'] = 'LenovoEMC';
$config['os'][$os]['icon'] = 'lenovo';
$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';

// Graph Types
require_once $config['install_dir'].'/includes/load_db_graph_types.inc.php';

Expand Down
15 changes: 15 additions & 0 deletions includes/discovery/os/lenovoemc.inc.php
@@ -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");
}
}
2 changes: 2 additions & 0 deletions includes/polling/os/lenovoemc.inc.php
@@ -0,0 +1,2 @@
<?php
$hardware = snmp_get($device, 'deviceDescr.0', '-Ovq', 'IOMEGANAS-MIB');

0 comments on commit 7c39cba

Please sign in to comment.