newdevice: Updated Lancom LCOS detection (#6651)

* better Lancom LCOS detection, added LCOS-MIB

* added copyright, fixed mib placement, fixed definition
This commit is contained in:
Marcus Pink
2017-05-17 09:03:23 +02:00
committed by Neil Lathwood
parent e223ec3ff2
commit 26c17de7bb
3 changed files with 131396 additions and 9 deletions

View File

@@ -6,7 +6,9 @@ over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
mib_dir:
- lancom
discovery:
- sysObjectId:
- .1.3.6.1.4.1.2356.11.8.103
- .1.3.6.1.4.1.2356.600.6.
- .1.3.6.1.4.1.2356.11.8.

View File

@@ -1,8 +1,8 @@
<?php
/**
* lcos.inc.php
* locos.inc.php
*
* LibreNMS os poller module for Lancom
* LibreNMS os polling module for Lancom LCOS
*
* 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
@@ -19,13 +19,14 @@
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2016 Neil Lathwood
* @author Neil Lathwood <neil@lathwood.co.uk>
* @copyright 2017 Marcus Pink
* @author Marcus Pink <mpink@avantgarde-labs.de>
*/
$tmp_sysDescr = preg_replace('/LANCOM /', '', $poll_device['sysDescr']);
$lcos_data = snmp_get_multi_oid($device, 'lcsFirmwareVersionTableEntrySerialNumber.1 lcsFirmwareVersionTableEntryVersion.1 lcsFirmwareVersionTableEntryModule.1', '-OQs', 'LCOS-MIB');
list($harware, $dump1, $version, $dump2) = explode(' ', $tmp_sysDescr, 4);
$serial = $lcos_data['lcsFirmwareVersionTableEntrySerialNumber.eIfc'];
$version = $lcos_data['lcsFirmwareVersionTableEntryVersion.eIfc'];
$hardware = $lcos_data['lcsFirmwareVersionTableEntryModule.eIfc'];
unset($dump1);
unset($dump2);
unset($lcos_data);

131384
mibs/lancom/LCOS-MIB Normal file

File diff suppressed because it is too large Load Diff