Merge pull request #1519 from Rosiak/ibm-tapelibrary

Basic IBM Tape Library Support
This commit is contained in:
Neil Lathwood 2015-07-22 16:21:53 +01:00
commit 1ef697ecc2
3 changed files with 39 additions and 0 deletions

View File

@ -786,6 +786,13 @@ $config['os'][$os]['icon'] = 'ibmnos';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Traffic';
$os = 'ibmtl';
$config['os'][$os]['text'] = 'IBM Tape Library';
$config['os'][$os]['type'] = 'storage';
$config['os'][$os]['icon'] = 'generic';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Traffic';
$os = 'comware';
$config['os'][$os]['text'] = 'HP Comware';
$config['os'][$os]['type'] = 'network';

View File

@ -0,0 +1,17 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2015 Søren Friis Rosiak <sorenrosiak@gmail.com>
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.2.6.182.1.0.401.1')) {
$os = 'ibmtl';
}
}

View File

@ -0,0 +1,15 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2015 Søren Friis Rosiak <sorenrosiak@gmail.com>
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
$hardware = trim(snmp_get($device, ".1.3.6.1.4.1.14851.3.1.4.2.0", "-Ovq") , '" ');
$serial = trim(snmp_get($device, ".1.3.6.1.4.1.14851.3.1.3.2.0", "-Ovq") , '" ');
$version = trim(snmp_get($device, ".1.3.6.1.4.1.14851.3.1.3.4.0", "-Ovq") , '" ');