created lantronix-os branch

This commit is contained in:
Chris A. Evans
2016-07-07 13:32:32 -05:00
parent 0f5cfb5af1
commit f60bccccc6
7 changed files with 7520 additions and 0 deletions

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -796,6 +796,17 @@ $config['os'][$os]['over'][1]['text'] = 'CPU Usage';
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
$os = 'lantronix-slc';
$config['os'][$os]['text'] = 'Lantronix SLC';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'lantronix';
$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';
$os = 'adtran-aos';
$config['os'][$os]['text'] = 'Adtran AOS';
$config['os'][$os]['type'] = 'network';

View File

@@ -0,0 +1,7 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.244.1.1')) {
$os = 'lantronix-slc';
}
}

View File

@@ -0,0 +1,19 @@
<?php
if ($device['os'] == 'lantronix-slc') {
echo("Lantronix SLC");
// Chassis temperature
$high_limit = 50;
$high_warn_limit = 45;
$low_warn_limit = 5;
$low_limit = 1;
$descr = "System Temperature:";
$valueoid = ".1.3.6.1.4.1.244.1.1.6.25.0"; // LANTRONIX-SLC-MIB::slcSystemInternalTemp.0
$value = snmp_get($device, $valueoid, '-Oqv');
if (is_numeric($value)) {
discover_sensor($valid['sensor'], 'temperature', $device, $valueoid, 1, 'lantronix-slc', $descr, '1', '1', $low_limit, $low_warn_limit, $high_warn_limit, $high_limit, $value);
}
}

View File

@@ -0,0 +1,9 @@
<?php
$hardware = snmp_get($device, '.1.3.6.1.4.1.244.1.1.6.28.0', '-Ovqs', ''); // LANTRONIX-SLC-MIB::slcSystemModelString.0
$hardware = str_replace('"', '', $hardware);
$version = snmp_get($device, '.1.3.6.1.4.1.244.1.1.6.3.0', '-Ovqs', ''); // LANTRONIX-SLC-MIB::slcSystemFWRev.0
$version = str_replace('"', '', $version);
$serial = snmp_get($device, '.1.3.6.1.4.1.244.1.1.6.2.0', '-Ovqs', ''); // LANTRONIX-SLC-MIB::slcSystemSerialNo.0
$serial = str_replace('"', '', $serial);
$features = '';

42
mibs/LANTRONIX-MIB.mib Normal file
View File

@@ -0,0 +1,42 @@
LANTRONIX-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, enterprises
FROM SNMPv2-SMI;
lantronix MODULE-IDENTITY
LAST-UPDATED "200703010000Z"
ORGANIZATION "Lantronix, Inc."
CONTACT-INFO "Lantronix Technical Support
15353 Barranca Parkway
Irvine, CA 92618 USA
+1 800 422-7044
snmp@lantronix.com"
DESCRIPTION
"The structure of Management Information for the Lantronix enterprise"
-- revision history
REVISION "200703010000Z" -- March 1, 2007
DESCRIPTION "Added legacy products."
REVISION "200611100000Z" -- November 10, 2006
DESCRIPTION "Added sls product."
REVISION "200412130000Z" -- December 13, 2004
DESCRIPTION "The initial version of the MIB module."
::= { enterprises 244 }
products OBJECT IDENTIFIER ::= { lantronix 1 }
slc OBJECT IDENTIFIER ::= { products 1 }
slk OBJECT IDENTIFIER ::= { products 8 }
slp OBJECT IDENTIFIER ::= { products 9 }
slm OBJECT IDENTIFIER ::= { products 10 }
sls OBJECT IDENTIFIER ::= { products 11 }
ltxlna OBJECT IDENTIFIER ::= { lantronix 10 }
ltxlrp OBJECT IDENTIFIER ::= { lantronix 11 }
ltxlsw OBJECT IDENTIFIER ::= { lantronix 12 }
END

7432
mibs/LANTRONIX-SLC-MIB.mib Normal file
View File

File diff suppressed because it is too large Load Diff