mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added basic support for Omnitron iConverters (#6336)
* Added basic support for Omnitron iConverters * Fixed discovery issue & cropped logo
This commit is contained in:
committed by
Tony Murray
parent
7d656ac4c4
commit
9b62ea2cbf
@@ -196,6 +196,7 @@ LibreNMS contributors:
|
||||
- Deeps (deepseth)
|
||||
- Jari Schäfer <jari.schaefer@gmail.com> (jarischaefer)
|
||||
- Jan-Philipp Litza <janphilipp@litza.de> (jplitza)
|
||||
- Lorenzo Zafra <zafra@ualberta.ca> (enzozafra)
|
||||
|
||||
Observium was written by:
|
||||
- Adam Armstrong
|
||||
|
||||
BIN
html/images/logos/omnitron.png
Normal file
BIN
html/images/logos/omnitron.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
BIN
html/images/os/omnitron.png
Normal file
BIN
html/images/os/omnitron.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 821 B |
12
includes/definitions/omnitron-iconverter.yaml
Normal file
12
includes/definitions/omnitron-iconverter.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
os: omnitron-iconverter
|
||||
text: 'Omnitron iConverter'
|
||||
type: management
|
||||
icon: omnitron
|
||||
mib_dir:
|
||||
- omnitron
|
||||
#over:
|
||||
#- { graph: device_current, text: 'Current' }
|
||||
#- { graph: device_voltage, text: 'Voltage' }
|
||||
discovery:
|
||||
- sysObjectId:
|
||||
- .1.3.6.1.4.1.7342.5.
|
||||
14
includes/polling/os/omnitron-iconverter.inc.php
Normal file
14
includes/polling/os/omnitron-iconverter.inc.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
// SNMPv2-MIB::sysDescr.1 = STRING: "Omnitron iConverter GM4-HPOE 8991T14F v4.5.28 s/n 00711452 - [x]"
|
||||
$description = $poll_device['sysDescr'];
|
||||
|
||||
preg_match('~Omnitron\siConverter\s(?\'hardware\'.*?)\s(?\'version\'v.*) s\/n~', $description, $matches);
|
||||
|
||||
if ($matches['hardware']) {
|
||||
$hardware = $matches['hardware'];
|
||||
}
|
||||
|
||||
if ($matches['version']) {
|
||||
$version = $matches['version'];
|
||||
}
|
||||
@@ -1250,6 +1250,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('okilan');
|
||||
}
|
||||
|
||||
public function testOmnitronIConverter()
|
||||
{
|
||||
$this->checkOS('omnitron-iconverter');
|
||||
}
|
||||
|
||||
public function testOnefs()
|
||||
{
|
||||
$this->checkOS('onefs');
|
||||
|
||||
2
tests/snmpsim/omnitron-iconverter.snmprec
Normal file
2
tests/snmpsim/omnitron-iconverter.snmprec
Normal file
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Omnitron iConverter GM4-HPOE 8991T11D v5.2.14 s/n 00827398 - GM4-PoE - x
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.7342.5.1
|
||||
Reference in New Issue
Block a user